Add build script

This commit is contained in:
Andras Schmelczer 2025-07-07 22:09:36 +01:00
parent fb3c14b6ef
commit 258c1e6ff0
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 14 additions and 8 deletions

View file

@ -30,14 +30,7 @@ jobs:
- name: Build wasm - name: Build wasm
run: | run: |
cargo install wasm-pack cargo install wasm-pack
wasm-pack build --target web --features wasm scripts/build-website.sh
cd reconcile-js
npm ci
npm run build
cd ../examples/website
npm ci
npm run build
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:

View file

@ -167,6 +167,7 @@ Here's the key insight: whilst incorrect merges in source code can introduce dev
- **Run tests**: `scripts/test.sh` - **Run tests**: `scripts/test.sh`
- **Lint and format**: `scripts/lint.sh` - **Lint and format**: `scripts/lint.sh`
- **Build demo website**: `scripts/dev-website.sh` - **Build demo website**: `scripts/dev-website.sh`
- **Build demo website**: `scripts/build-website.sh`
- **Publish new version**: `scripts/bump-version.sh patch` - **Publish new version**: `scripts/bump-version.sh patch`
TODO: license TODO: license

12
scripts/build-website.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -e
wasm-pack build --target web --features wasm
cd reconcile-js
npm ci
npm run build
cd ../examples/website
npm ci
npm run build
cd -