Add build script
This commit is contained in:
parent
fb3c14b6ef
commit
258c1e6ff0
3 changed files with 14 additions and 8 deletions
9
.github/workflows/gh-pages.yml
vendored
9
.github/workflows/gh-pages.yml
vendored
|
|
@ -30,14 +30,7 @@ jobs:
|
|||
- name: Build wasm
|
||||
run: |
|
||||
cargo install wasm-pack
|
||||
wasm-pack build --target web --features wasm
|
||||
cd reconcile-js
|
||||
npm ci
|
||||
npm run build
|
||||
cd ../examples/website
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
scripts/build-website.sh
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ Here's the key insight: whilst incorrect merges in source code can introduce dev
|
|||
- **Run tests**: `scripts/test.sh`
|
||||
- **Lint and format**: `scripts/lint.sh`
|
||||
- **Build demo website**: `scripts/dev-website.sh`
|
||||
- **Build demo website**: `scripts/build-website.sh`
|
||||
- **Publish new version**: `scripts/bump-version.sh patch`
|
||||
|
||||
TODO: license
|
||||
|
|
|
|||
12
scripts/build-website.sh
Executable file
12
scripts/build-website.sh
Executable 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 -
|
||||
Loading…
Add table
Add a link
Reference in a new issue