feat: initial import (exclude templates and runtime temp files)
This commit is contained in:
17
app/scripts/sync_vue_vendor.sh
Executable file
17
app/scripts/sync_vue_vendor.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
VUE_SRC="$ROOT_DIR/node_modules/vue/dist/vue.global.prod.js"
|
||||
VUE_DST_DIR="$ROOT_DIR/static/vendor"
|
||||
VUE_DST="$VUE_DST_DIR/vue.global.prod.js"
|
||||
|
||||
if [[ ! -f "$VUE_SRC" ]]; then
|
||||
echo "vue.global.prod.js not found. Run: npm install" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$VUE_DST_DIR"
|
||||
cp "$VUE_SRC" "$VUE_DST"
|
||||
|
||||
echo "Synced Vue vendor: $VUE_DST"
|
||||
Reference in New Issue
Block a user