Compare commits
2 Commits
6b180dbaeb
...
ec0d716bde
Author | SHA1 | Date |
---|---|---|
b1ek | ec0d716bde | |
b1ek | 27792add04 |
|
@ -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
|
||||||
|
|
10
package.json
10
package.json
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue