Scaffold/README.md

44 lines
692 B
Markdown

# Scaffold
## Build
```bash
./gradlew installShadowDist
cd app/build/install/app-shadow
```
Move the executable somewhere in your $PATH
Or build a native image with GraalVM
```bash
./gradlew installShadowDist
cd app/build/install/app-shadow/lib
native-image --no-fallback -R:MaxNewSize=32 -jar scaffold.jar
```
## Usage
### Create a generator
```bash
scaffold new generator-name
cd generator-directory
```
You can then add [Pebble templates](https://pebbletemplates.io/) and files in the tree directory
An example is present in this repo
### List generators
```bash
scaffold list
```
### Generate a project
```bash
scaffold generate generator-name --output output-directory
```