22 lines
437 B
Bash
Executable File
22 lines
437 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Yonexus install script
|
|
# - Registers plugin name: yonexus
|
|
# - Places build output in dist/yonexus
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
DIST_DIR="$ROOT_DIR/dist/yonexus"
|
|
|
|
cd "$ROOT_DIR"
|
|
|
|
if [ ! -d node_modules ]; then
|
|
npm install
|
|
fi
|
|
|
|
npm run build
|
|
mkdir -p "$DIST_DIR"
|
|
cp -f "$ROOT_DIR/plugin.json" "$DIST_DIR/plugin.json"
|
|
|
|
echo "[yonexus] install complete -> $DIST_DIR"
|