Clear dist dir before building for deploy.

pull/1/head
Atul Varma 2021-02-03 20:35:19 -05:00
rodzic d55c03fcc5
commit 67d8c8f3e2
2 zmienionych plików z 3 dodań i 2 usunięć

1
.gitignore vendored
Wyświetl plik

@ -1,4 +1,5 @@
node_modules
dist
dist-watch
.cache
lib/svg-vocabulary.json

Wyświetl plik

@ -5,8 +5,8 @@
"main": "index.js",
"scripts": {
"deploy": "npm run build && gh-pages -d dist",
"build": "node build-vocabulary.js && parcel build index.html --public-url .",
"watch": "node build-vocabulary.js && parcel index.html"
"build": "node build-vocabulary.js && rm -rf dist && parcel build index.html -d dist --public-url .",
"watch": "node build-vocabulary.js && parcel index.html -d dist-watch"
},
"author": "",
"license": "ISC",