reduce publish time
This commit is contained in:
@@ -109,8 +109,7 @@ IF EXIST "%DEPLOYMENT_TARGET%\package.json" (
|
|||||||
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
|
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
|
||||||
pushd "%DEPLOYMENT_TARGET%"
|
pushd "%DEPLOYMENT_TARGET%"
|
||||||
IF EXIST ".\components" (call rmdir .\components /S /Q)
|
IF EXIST ".\components" (call rmdir .\components /S /Q)
|
||||||
call :ExecuteCmd !NPM_CMD! install bower
|
call :ExecuteCmd !NPM_CMD! run bower install
|
||||||
call .\node_modules\.bin\bower install
|
|
||||||
IF !ERRORLEVEL! NEQ 0 goto error
|
IF !ERRORLEVEL! NEQ 0 goto error
|
||||||
popd
|
popd
|
||||||
)
|
)
|
||||||
@@ -119,9 +118,7 @@ IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
|
|||||||
:: 4. Install gulp
|
:: 4. Install gulp
|
||||||
IF EXIST "%DEPLOYMENT_TARGET%\gulpfile.js" (
|
IF EXIST "%DEPLOYMENT_TARGET%\gulpfile.js" (
|
||||||
pushd "%DEPLOYMENT_TARGET%"
|
pushd "%DEPLOYMENT_TARGET%"
|
||||||
call :ExecuteCmd !NPM_CMD! install gulp gulp-cache-bust gulp-concat-css gulp-uglify html-minifier gulp-concat gulp-rimraf
|
call :ExecuteCmd !NPM_CMD! run gulp publish
|
||||||
call .\node_modules\.bin\gulp clean
|
|
||||||
call .\node_modules\.bin\gulp publish
|
|
||||||
IF !ERRORLEVEL! NEQ 0 goto error
|
IF !ERRORLEVEL! NEQ 0 goto error
|
||||||
popd
|
popd
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ gulp.task('combineJs',['clean'], function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
gulp.task('cachebust', function(){
|
gulp.task('cachebust', ['clean'], function(){
|
||||||
return gulp.src('index.html')
|
return gulp.src('index.html')
|
||||||
.pipe(cachebust({
|
.pipe(cachebust({
|
||||||
type: 'timestamp'
|
type: 'timestamp'
|
||||||
|
|||||||
5
package-lock.json
generated
5
package-lock.json
generated
@@ -441,6 +441,11 @@
|
|||||||
"hoek": "2.x.x"
|
"hoek": "2.x.x"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"bower": {
|
||||||
|
"version": "1.8.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/bower/-/bower-1.8.4.tgz",
|
||||||
|
"integrity": "sha1-54dqB23rgTf30GUl3F6MZtuC8oo="
|
||||||
|
},
|
||||||
"boxen": {
|
"boxen": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz",
|
||||||
|
|||||||
@@ -3,9 +3,11 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": ""
|
"gulp": "gulp",
|
||||||
|
"bower": "bower"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"bower": "^1.8.4",
|
||||||
"html-minifier": "^0.7.2"
|
"html-minifier": "^0.7.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user