Simplify build scripts
This commit is contained in:
parent
47479896d5
commit
03856fe868
1 changed files with 300 additions and 634 deletions
19
scripts/setup.sh
Executable file
19
scripts/setup.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
node_version=$(node --version | cut -d'.' -f1 | tr -d 'v')
|
||||
if [ "$node_version" != "22" ]; then
|
||||
echo "Error: Node.js version 22 is required, but found version $node_version"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
command -v wasm-pack || cargo install --locked wasm-pack
|
||||
command -v cargo-machete || cargo install --locked cargo-machete
|
||||
|
||||
npm ci --prefix reconcile-js
|
||||
npm ci --prefix examples/website
|
||||
cp README.md LICENSE reconcile-js/
|
||||
cp README.md LICENSE reconcile-python/
|
||||
uv sync --directory reconcile-python --frozen --no-install-project
|
||||
Loading…
Reference in a new issue