really npm module

This commit is contained in:
Tommy Parnell
2015-08-10 21:07:53 -04:00
parent 2d9ad8a347
commit 4a66bc3ef8
3 changed files with 12 additions and 16 deletions

View File

@@ -98,23 +98,12 @@ IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
call :SelectNodeVersion call :SelectNodeVersion
:: 3. Install npm packages :: 3. Install npm packages
IF EXIST "%DEPLOYMENT_TARGET%\package.json" (
pushd "%DEPLOYMENT_TARGET%" pushd "%DEPLOYMENT_TARGET%"
call :ExecuteCmd !NPM_CMD! install call :ExecuteCmd !NPM_CMD! install
IF !ERRORLEVEL! NEQ 0 goto error IF !ERRORLEVEL! NEQ 0 goto error
popd popd
)
:: 4. Install bower :: 4. Install gulp
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
pushd "%DEPLOYMENT_TARGET%"
call :ExecuteCmd !NPM_CMD! install bower
call .\node_modules\.bin\bower install
IF !ERRORLEVEL! NEQ 0 goto error
popd
)
:: 5. 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 call :ExecuteCmd !NPM_CMD! install gulp
@@ -123,7 +112,14 @@ IF EXIST "%DEPLOYMENT_TARGET%\gulpfile.js" (
popd popd
) )
:: 5. Install bower
IF EXIST "%DEPLOYMENT_TARGET%\bower.json" (
pushd "%DEPLOYMENT_TARGET%"
call :ExecuteCmd !NPM_CMD! install bower
call .\node_modules\.bin\bower install
IF !ERRORLEVEL! NEQ 0 goto error
popd
)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

View File

@@ -4,7 +4,7 @@ var gulp = require('gulp'),
livereload = require('gulp-livereload'), livereload = require('gulp-livereload'),
concatCss = require('gulp-concat-css'), concatCss = require('gulp-concat-css'),
uglify = require('gulp-uglify'), uglify = require('gulp-uglify'),
//cachebust = require('gulp-cache-bust'), cachebust = require('gulp-cache-bust'),
minifyCss = require('gulp-minify-css'); minifyCss = require('gulp-minify-css');
@@ -60,7 +60,7 @@ gulp.task('cachebust', function(){
gulp.task('publish', [ gulp.task('publish', [
'combineCss', 'combineCss',
'minifyJs', 'minifyJs',
//'cachebust', 'cachebust',
'develop' 'develop'
]); ]);

View File

@@ -22,7 +22,7 @@
}, },
"devDependencies": { "devDependencies": {
"gulp": "~3.8.10", "gulp": "~3.8.10",
"gulp-cache-bust": "^1.0.1",
"gulp-concat-css": "^2.2.0", "gulp-concat-css": "^2.2.0",
"gulp-less": "~3.0.1", "gulp-less": "~3.0.1",
"gulp-livereload": "~3.8.0", "gulp-livereload": "~3.8.0",