Compare commits

..

2 Commits

Author SHA1 Message Date
b1ek ec0d716bde
fix install and build script 2023-03-22 20:35:22 +10:00
b1ek 27792add04
prestart and prebuild scripts 2023-03-22 20:35:04 +10:00
2 changed files with 11 additions and 9 deletions

View File

@ -5,11 +5,7 @@ yarn install
yarn run build yarn run build
while true; do while true; do
read -p "Do you want to copy dist to ../../public/static/dist? (Y/n): " yn read -p "Do you want to copy dist to ../../public/static? (type n for no): " answer
case $yn in if [ $answer = 'n' ] || [ $answer = 'N' ]; then exit 0; fi
[Yy]* cp dist ../../public/static/dist; break;; cp dist ../../public/static
[Nn]* break;;
[]* ) cp dist ../../public/static/dist; break;;
* ) echo "(Y/n)";;
esac
done done

View File

@ -1,7 +1,7 @@
{ {
"name": "resume", "name": "resume",
"version": "1.0.0", "version": "1.0.0",
"source": "src/resume.html", "source": "src/resume.js",
"author": "blek", "author": "blek",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
@ -32,7 +32,13 @@
"xterm-js-shell": "^1.1.3" "xterm-js-shell": "^1.1.3"
}, },
"scripts": { "scripts": {
"prestart": "rm -f parcelrc",
"start": "parcel", "start": "parcel",
"build": "parcel build --no-source-maps"
"prebuild": "cp .build.config .parcelrc > /dev/null 2>&1",
"build": "parcel build --no-source-maps",
"postbuild": "rm -f .parcelrc"
} }
} }