|
|
|
@ -1,18 +1,16 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
mkdir -p build |
|
|
|
|
|
|
|
if [ -f "build/cluarData.js" ]; then |
|
|
|
mv build/cluarData.js .cluarData.js |
|
|
|
fi |
|
|
|
|
|
|
|
cp src/config-prod.json src/config.json |
|
|
|
|
|
|
|
rsync -av build/images/ public/images/ |
|
|
|
|
|
|
|
yarn install |
|
|
|
|
|
|
|
yarn build |
|
|
|
npm install --force |
|
|
|
|
|
|
|
cp src/config-dev.json src/config.json |
|
|
|
npm run build |
|
|
|
|
|
|
|
if [ -f ".cluarData.js" ]; then |
|
|
|
mv .cluarData.js build/cluarData.js |
|
|
|
|