2019-01-19 06:24:32 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Build the demo
|
|
|
|
|
|
|
|
# Stop on errors
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
OUTPUT_DIR=dist
|
|
|
|
|
|
|
|
rm -rf $OUTPUT_DIR
|
2019-01-30 20:42:09 +01:00
|
|
|
mkdir $OUTPUT_DIR
|
|
|
|
node script/gen-icons.js
|
2019-01-19 06:24:32 +01:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
DEMO=1 ./node_modules/.bin/gulp build-translations gen-icons
|
|
|
|
cd demo
|
|
|
|
|
|
|
|
NODE_ENV=production ../node_modules/.bin/webpack -p --config webpack.config.js
|