44 lines
758 B
Markdown
44 lines
758 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 --language:js -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 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
|
|
```
|