� Finished the deploy script
This commit is contained in:
parent
87a5a5a9bc
commit
2443ebd1fd
|
@ -2,8 +2,6 @@ import { publish } from "gh-pages"
|
||||||
import { exec } from "child_process"
|
import { exec } from "child_process"
|
||||||
|
|
||||||
const args = process.argv.splice(2)
|
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 mFlag = ((args.indexOf("--message") + 1) || (args.indexOf("-m") + 1)) - 1
|
||||||
const message = (mFlag) ? args[mFlag + 1] : "automated update"
|
const message = (mFlag) ? args[mFlag + 1] : "automated update"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "webpack-dev-server --open --mode development",
|
"dev": "webpack-dev-server --open --mode development",
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
"deploy": "#needs node 12.2.0 && npm run build && ts-node deploy"
|
"deploy": "ts-node deploy"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"*.scss"
|
"*.scss"
|
||||||
|
|
Loading…
Reference in a new issue