Separate generate from build.
This commit is contained in:
@@ -47,7 +47,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "NODE_ENV=development webpack --mode=development --config=webpack.config.js --watch",
|
||||
"build": "NODE_ENV=production webpack --mode=production --config=webpack.config.js && CGO_ENABLED=0 go build -ldflags \"-s -w -X github.com/niruix/sshwifty/application.version=$(git describe --always --abbrev=8 --dirty='*' --tag)\"",
|
||||
"generate": "NODE_ENV=production webpack --mode=production --config=webpack.config.js",
|
||||
"build": "npm run generate && CGO_ENABLED=0 go build -ldflags \"-s -w -X github.com/niruix/sshwifty/application.version=$(git describe --always --abbrev=8 --dirty='*' --tag)\"",
|
||||
"lint": "eslint --ext .js,.vue ui",
|
||||
"test": "mocha --require @babel/register --recursive --timeout 3s ./ui/**/*_test.js && go test ./..."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user