Fix deploy script

This commit is contained in:
Vincent Jousse 2017-05-04 09:18:13 +02:00
parent bff92549a2
commit 3ecb1a2ad3

View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "An alternative Web client for Mastodon.",
"scripts": {
"build": "node_modules/.bin/elm-make src/Main.elm --warn --output=build/app.js && npm run copy-assets",
"build": "npm run copy-assets && node_modules/.bin/elm-make src/Main.elm --output=build/app.js",
"copy-assets": "rimraf build && mkdir build && cp -r public/* build",
"debug": "node_modules/.bin/elm-live src/Main.elm --warn --dir=public/ --output=public/app.js --debug",
"deploy": "npm run build && node_modules/.bin/gh-pages --dist build/",