mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-14 15:40:39 +00:00
Follow-up
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
OUTPUT="dist" # Relative to script directory
|
||||
TARGET="../docs" # Relative to script directory
|
||||
SRC="../WebConfigGenerator" # Path between $OUTPUT and $TARGET
|
||||
|
||||
cd "$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
@@ -12,15 +10,7 @@ git pull
|
||||
npm install
|
||||
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 add -A -f "$OUTPUT" "$TARGET"
|
||||
git add -A -f "$TARGET"
|
||||
git commit -m "WebConfigGenerator build"
|
||||
git push
|
||||
|
||||
@@ -4,8 +4,8 @@ var path = require('path')
|
||||
module.exports = {
|
||||
build: {
|
||||
env: require('./prod.env'),
|
||||
index: path.resolve(__dirname, '../dist/index.html'),
|
||||
assetsRoot: path.resolve(__dirname, '../dist'),
|
||||
index: path.resolve(__dirname, '../../docs/index.html'),
|
||||
assetsRoot: path.resolve(__dirname, '../../docs'),
|
||||
assetsSubDirectory: 'static',
|
||||
assetsPublicPath: '',
|
||||
productionSourceMap: true,
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../WebConfigGenerator/dist/index.html
|
||||
@@ -1 +0,0 @@
|
||||
../WebConfigGenerator/dist/service-worker.js
|
||||
@@ -1 +0,0 @@
|
||||
../WebConfigGenerator/dist/static
|
||||
Reference in New Issue
Block a user