1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

prebuild:prod task

This commit is contained in:
Kyle Spearrin 2018-09-11 17:49:43 -04:00
parent 6f8352033b
commit 7ab56a9616
2 changed files with 8 additions and 8 deletions

View File

@ -34,8 +34,8 @@ function version() {
gulp.task('clean', clean);
gulp.task('webfonts', ['clean'], webfonts);
gulp.task('prebuild', ['webfonts']);
gulp.task('cleanupNodeTypes', cleanupNodeTypes);
gulp.task('predist', ['cleanupNodeTypes']);
gulp.task('prebuild', ['webfonts']);
gulp.task('prebuild:prod', ['prebuild', 'cleanupNodeTypes']);
gulp.task('version', version);
gulp.task('postdist', ['version']);

View File

@ -8,15 +8,15 @@
"postinstall": "npm run sub:init",
"build": "gulp prebuild && webpack --config webpack.config.js",
"build:watch": "gulp prebuild && webpack-serve --config webpack.config.js",
"build:prod": "gulp prebuild && cross-env NODE_ENV=production webpack --config webpack.config.js",
"build:prod:watch": "gulp prebuild && cross-env NODE_ENV=production webpack-serve --config webpack.config.js",
"build:prod": "gulp prebuild:prod && cross-env NODE_ENV=production webpack --config webpack.config.js",
"build:prod:watch": "gulp prebuild:prod && cross-env NODE_ENV=production webpack-serve --config webpack.config.js",
"build:selfhost": "gulp prebuild && cross-env SELF_HOST=true webpack-serve --config webpack.config.js",
"build:selfhost:watch": "gulp prebuild && cross-env SELF_HOST=true webpack-serve --config webpack.config.js",
"build:selfhost:prod": "gulp prebuild && cross-env SELF_HOST=true NODE_ENV=production webpack --config webpack.config.js",
"build:selfhost:prod:watch": "gulp prebuild && cross-env SELF_HOST=true NODE_ENV=production webpack-serve --config webpack.config.js",
"build:selfhost:prod": "gulp prebuild:prod && cross-env SELF_HOST=true NODE_ENV=production webpack --config webpack.config.js",
"build:selfhost:prod:watch": "gulp prebuild:prod && cross-env SELF_HOST=true NODE_ENV=production webpack-serve --config webpack.config.js",
"clean:l10n": "git push origin --delete l10n_master",
"dist": "gulp predist && npm run build:prod && gulp postdist",
"dist:selfhost": "gulp predist && npm run build:selfhost:prod && gulp postdist",
"dist": "npm run build:prod && gulp postdist",
"dist:selfhost": "npm run build:selfhost:prod && gulp postdist",
"deploy": "npm run dist && gh-pages -d build",
"lint": "tslint src/**/*.ts || true",
"lint:fix": "tslint src/**/*.ts --fix"