Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fastapi-mvc/copier-generator
Copier template for scaffolding new generator for fastapi-mvc
https://github.com/fastapi-mvc/copier-generator
copier-template generator generator-template metaprogramming scaffolding
Last synced: 5 days ago
JSON representation
Copier template for scaffolding new generator for fastapi-mvc
- Host: GitHub
- URL: https://github.com/fastapi-mvc/copier-generator
- Owner: fastapi-mvc
- License: mit
- Created: 2022-10-06T20:49:46.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-03T14:09:52.000Z (11 months ago)
- Last Synced: 2024-01-03T15:34:11.556Z (11 months ago)
- Topics: copier-template, generator, generator-template, metaprogramming, scaffolding
- Language: Jinja
- Homepage: https://github.com/fastapi-mvc/fastapi-mvc
- Size: 89.8 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Copier Generator
Copier template for scaffolding new generator upon [fastapi-mvc](https://github.com/fastapi-mvc/fastapi-mvc) project.
## Quickstart
### Using fastapi-mvc
Prerequisites:
* fastapi-mvc
* Git 2.27 or newer```shell
git clone "https://github.com/fastapi-mvc/copier-generator.git"
FMVC_PATH="$PWD:$FMVC_PATH" fastapi-mvc generate generator /path/to/your/new/generator
```### Using copier
To use this template outside `fastapi-mvc`:
Prerequisites:
* Python 3.8 or later [How to install python](https://docs.python-guide.org/starting/installation)
* Git 2.27 or newer
* copier 6.2.0 or later```shell
copier copy "https://github.com/fastapi-mvc/copier-generator.git" /path/to/your/new/generator
```## Using Nix
Prerequisites:
* Nix 2.8.x or later installed [How to install Nix](https://nixos.org/download.html)
```shell
nix develop
copier copy "https://github.com/fastapi-mvc/copier-generator.git" /path/to/your/new/generator
```## Updating
To update your generator with the changes from the [upstream](https://github.com/fastapi-mvc/copier-generator) run:
```shell
./update.sh
# Or
nix run .#update
```This action will not update/override your template and its configuration, but rather generators common files:
* Nix expression files
* `README.md`
* dotfiles
* `LICENSE`List of excluded files/paths:
* `template/**`
* `copier.yml`
* `*.py`
* `CHANGELOG.md`Lastly, you can pass extra copier CLI options should you choose:
```shell
./update.sh -x README.md --vcs-ref=custom_branch
# Or
nix run .#update -- -x README.md --vcs-ref=custom_branch
```