Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: host via vercel #467

Merged
merged 12 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"build": "react-scripts build",
"build:wasm": "cd quadratic-core && wasm-pack build --target web --out-dir pkg",
"build:wasm:nodejs": "cd quadratic-core && wasm-pack build --target nodejs --out-dir pkg",
"build:ci": "./scripts/run-ci-build.sh",
"test:all": "concurrently \"npm run test:unit:ci\" \"npm run test:e2e\" \"npm run test:python\"",
"test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:unit:dev": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watchAll",
Expand Down
12 changes: 12 additions & 0 deletions scripts/run-ci-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
echo 'Installing rustup...'
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"

echo 'Installing wasm-pack...'
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

echo 'Building wasm...'
npm run build:wasm

echo 'Building front-end...'
npm run build