reduce publish time

This commit is contained in:
Tommy Parnell
2018-06-17 11:01:37 -04:00
parent ea9208a2a4
commit 34baa913ad
4 changed files with 11 additions and 7 deletions

View File

@@ -109,8 +109,7 @@ IF EXIST "%DEPLOYMENT_TARGET%\package.json" (
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
pushd "%DEPLOYMENT_TARGET%"
IF EXIST ".\components" (call rmdir .\components /S /Q)
call :ExecuteCmd !NPM_CMD! install bower
call .\node_modules\.bin\bower install
call :ExecuteCmd !NPM_CMD! run bower install
IF !ERRORLEVEL! NEQ 0 goto error
popd
)
@@ -119,9 +118,7 @@ IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
:: 4. Install gulp
IF EXIST "%DEPLOYMENT_TARGET%\gulpfile.js" (
pushd "%DEPLOYMENT_TARGET%"
call :ExecuteCmd !NPM_CMD! install gulp gulp-cache-bust gulp-concat-css gulp-uglify html-minifier gulp-concat gulp-rimraf
call .\node_modules\.bin\gulp clean
call .\node_modules\.bin\gulp publish
call :ExecuteCmd !NPM_CMD! run gulp publish
IF !ERRORLEVEL! NEQ 0 goto error
popd
)

View File

@@ -78,7 +78,7 @@ gulp.task('combineJs',['clean'], function() {
});
gulp.task('cachebust', function(){
gulp.task('cachebust', ['clean'], function(){
return gulp.src('index.html')
.pipe(cachebust({
type: 'timestamp'

5
package-lock.json generated
View File

@@ -441,6 +441,11 @@
"hoek": "2.x.x"
}
},
"bower": {
"version": "1.8.4",
"resolved": "https://registry.npmjs.org/bower/-/bower-1.8.4.tgz",
"integrity": "sha1-54dqB23rgTf30GUl3F6MZtuC8oo="
},
"boxen": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz",

View File

@@ -3,9 +3,11 @@
"version": "0.0.1",
"private": true,
"scripts": {
"start": ""
"gulp": "gulp",
"bower": "bower"
},
"dependencies": {
"bower": "^1.8.4",
"html-minifier": "^0.7.2"
},
"devDependencies": {