Skip to content

Commit 59d05ba

Browse files
stefanhuberclaude
andcommitted
chore: switch engraft to @smartcompanion/engraft npm package
Replaces the pip-installed engraft (Python) with the published npm package, removing the Python toolchain from CI. Renames the examples/ directory to customization/ to better reflect its purpose. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 44432c0 commit 59d05ba

9 files changed

Lines changed: 511 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ jobs:
3333
with:
3434
node-version: 22
3535
cache: npm
36-
- uses: actions/setup-python@v5
37-
with:
38-
python-version: '3.12'
3936
- run: npm ci
40-
- run: pip install engraft
4137

4238
# Build default "animals" variant
4339
- run: npm run build
@@ -47,7 +43,7 @@ jobs:
4743
- run: mv www animals
4844

4945
# Build "leon" variant via engraft
50-
- run: engraft apply --template engraft.template.yml --values examples/leon/engraft.variables.yml
46+
- run: npx engraft apply --template engraft.template.yml --values customization/leon/engraft.variables.yml
5147
- run: npm run build
5248
- run: |
5349
sed -i 's|"/build/|"build/|g' www/index.html

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ npm run test:dev # Continuous test watching
4848

4949
## Customization
5050

51-
Customization is handled via [engraft](https://github.com/smartcompanion-app/engraft) using the `engraft.template.yml` file. All configurable variables are listed below:
51+
Customization is handled via [engraft](https://github.com/smartcompanion-app/engraft), which is included as the `@smartcompanion/engraft` devDependency. After `npm install`, apply a values file with:
52+
53+
```bash
54+
npx engraft apply --template engraft.template.yml --values customization/leon/engraft.variables.yml
55+
```
56+
57+
A ready-to-use example lives in [`customization/leon/`](customization/leon/) — copy that directory to start your own variant. All configurable variables defined in `engraft.template.yml` are listed below:
5258

5359
| Variable | Description | Default |
5460
|---|---|---|
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)