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
while true; do
read -p "Do you want to copy dist to ../../public/static/dist? (Y/n): " yn
case $yn in
[Yy]* cp dist ../../public/static/dist; break;;
[Nn]* break;;
[]* ) cp dist ../../public/static/dist; break;;
* ) echo "(Y/n)";;
esac
read -p "Do you want to copy dist to ../../public/static? (type n for no): " answer
if [ $answer = 'n' ] || [ $answer = 'N' ]; then exit 0; fi
cp dist ../../public/static
done

View File

@ -1,7 +1,7 @@
{
"name": "resume",
"version": "1.0.0",
"source": "src/resume.html",
"source": "src/resume.js",
"author": "blek",
"license": "MIT",
"devDependencies": {
@ -32,7 +32,13 @@
"xterm-js-shell": "^1.1.3"
},
"scripts": {
"prestart": "rm -f parcelrc",
"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"
}
}