Make scripts executable

This commit is contained in:
coolreader18
2018-12-22 23:08:05 -06:00
parent 2ea9dca40c
commit d54d2b1c03
2 changed files with 20 additions and 4 deletions

12
wasm/build.sh Normal file → Executable file
View File

@@ -1,3 +1,11 @@
#!/bin/sh
set -e
(cd lib; wasm-pack build --debug)
(cd demo; npm install && node_modules/.bin/webpack-dev-server)
(
cd lib
wasm-pack build --debug
)
(
cd demo
npm install && node_modules/.bin/webpack-dev-server
)

12
wasm/release.sh Normal file → Executable file
View File

@@ -1,4 +1,12 @@
#!/bin/sh
set -e
(cd lib; wasm-pack build)
(cd demo; npm install && node_modules/.bin/webpack --mode production)
(
cd lib
wasm-pack build
)
(
cd demo
npm install && node_modules/.bin/webpack --mode production
)
echo "Output saved to demo/dist"