Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stackotter/swift-bundler-templates
Swift Bundler's in-built package templates
https://github.com/stackotter/swift-bundler-templates
Last synced: 20 days ago
JSON representation
Swift Bundler's in-built package templates
- Host: GitHub
- URL: https://github.com/stackotter/swift-bundler-templates
- Owner: stackotter
- Created: 2022-03-26T04:52:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T08:13:51.000Z (5 months ago)
- Last Synced: 2024-10-04T22:06:46.938Z (about 1 month ago)
- Language: Swift
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Swift Bundler templates
This repository houses Swift Bundler's built-in templates.
## Overview
### Templates
A valid template must contain a `Template.toml` metadata file in its root directory.
**All indentation must be tabs (not spaces) so that the `create` command's `--indentation` option functions correctly**
If a file or directory contains `{{PACKAGE}}` in its name, that will get replaced with the new package's name before copying. If a file ends with `.template`, any occurrences of `{{PACKAGE}}` within its contents will be updated before copying. All other files are copied as is.
Regular templates must not be named `Base` ([see Base template](#base-template)) and must not start with a `.`.
### Base template
The `Base` folder contains files that are copied into every new project (with the same processing applied as files from a regular template). Note that the `Base` template should not contain a `Template.toml` file. To override the contents of a file in `Base` for a specific template, just provide the modified version in the template.
## Contributing
If you want to fix/tweak an existing template or add a new one, feel free! Just make sure to read [the contributing guidelines](CONTRIBUTING.md) first.