Scaffold/README.md

43 lines
660 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 buildNative
cd app/build/native
```
## 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 kotlin example is present [here](https://git.simplenotes.be/hubert/Kotlin-scaffold)
### List generators
```bash
scaffold list
```
### Generate a project
```bash
scaffold generate generator-name --output output-directory
```