Follow-up

This commit is contained in:
JustArchi
2018-04-27 05:17:13 +02:00
parent 35f67c4dc5
commit 693ac9252f
5 changed files with 3 additions and 16 deletions

View File

@@ -1,9 +1,7 @@
#!/bin/bash #!/bin/bash
set -eu set -eu
OUTPUT="dist" # Relative to script directory
TARGET="../docs" # Relative to script directory TARGET="../docs" # Relative to script directory
SRC="../WebConfigGenerator" # Path between $OUTPUT and $TARGET
cd "$(dirname "$(readlink -f "$0")")" cd "$(dirname "$(readlink -f "$0")")"
@@ -12,15 +10,7 @@ git pull
npm install npm install
npm run build npm run build
while read -r FILE; do
rm -f "$FILE"
done < <(find "$TARGET" -mindepth 1 -maxdepth 1 -type l)
while read -r FILE; do
ln -s "${SRC}/${FILE}" "$TARGET"
done < <(find "$OUTPUT" -mindepth 1 -maxdepth 1)
git reset git reset
git add -A -f "$OUTPUT" "$TARGET" git add -A -f "$TARGET"
git commit -m "WebConfigGenerator build" git commit -m "WebConfigGenerator build"
git push git push

View File

@@ -4,8 +4,8 @@ var path = require('path')
module.exports = { module.exports = {
build: { build: {
env: require('./prod.env'), env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'), index: path.resolve(__dirname, '../../docs/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'), assetsRoot: path.resolve(__dirname, '../../docs'),
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '', assetsPublicPath: '',
productionSourceMap: true, productionSourceMap: true,

View File

@@ -1 +0,0 @@
../WebConfigGenerator/dist/index.html

View File

@@ -1 +0,0 @@
../WebConfigGenerator/dist/service-worker.js

View File

@@ -1 +0,0 @@
../WebConfigGenerator/dist/static