� Finished the deploy script

This commit is contained in:
Matei Adriel 2019-05-27 20:59:13 +03:00
parent 87a5a5a9bc
commit 2443ebd1fd
2 changed files with 1 additions and 3 deletions

View file

@ -2,8 +2,6 @@ import { publish } from "gh-pages"
import { exec } from "child_process"
const args = process.argv.splice(2)
const argsNoFlags = args.filter(val => val[0] !== "-")
const mFlag = ((args.indexOf("--message") + 1) || (args.indexOf("-m") + 1)) - 1
const message = (mFlag) ? args[mFlag + 1] : "automated update"

View file

@ -6,7 +6,7 @@
"scripts": {
"dev": "webpack-dev-server --open --mode development",
"build": "webpack --mode production",
"deploy": "#needs node 12.2.0 && npm run build && ts-node deploy"
"deploy": "ts-node deploy"
},
"sideEffects": [
"*.scss"