Move __version__ to a script
This commit is contained in:
parent
2b01bb75dc
commit
314e756ef1
4 changed files with 28 additions and 13 deletions
|
@ -12,7 +12,7 @@
|
|||
"cross-env": "^5.0.1",
|
||||
"express": "^4.15.3",
|
||||
"express-handlebars": "^3.0.0",
|
||||
"git-rev-sync": "1.9.1",
|
||||
"git-rev-sync": "^1.9.1",
|
||||
"helmet": "^3.6.1",
|
||||
"jquery": "^3.2.1",
|
||||
"mozlog": "^2.1.1",
|
||||
|
@ -42,9 +42,9 @@
|
|||
"license": "MPL-2.0",
|
||||
"repository": "mozilla/something-awesome",
|
||||
"scripts": {
|
||||
"bundle": "browserify frontend/src/main.js | uglifyjs > public/bundle.js",
|
||||
"bundle": "browserify frontend/src/main.js | uglifyjs > public/bundle.js && node scripts/version",
|
||||
"dev": "watchify frontend/src/main.js -o public/bundle.js -d | node server/portal_server",
|
||||
"format": "prettier 'frontend/src/*.js' 'public/*.css' 'server/*.js' 'test/*.js' --single-quote --write",
|
||||
"format": "prettier '{frontend/src/,scripts/,server/,test/}*.js' 'public/*.css' --single-quote --write",
|
||||
"lint": "npm-run-all lint:*",
|
||||
"lint:css": "stylelint 'public/*.css'",
|
||||
"lint:js": "eslint .",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue