Fix dependencies and commands

- Fix 'gulp-scp2' dependencies problem
- Add serve-win gulp command (for thoose want to contribute with a
windows dev environment)
This commit is contained in:
Toxicat
2015-05-30 14:16:28 +02:00
parent 6ed0c0be3f
commit 3ad698058b
2 changed files with 12 additions and 0 deletions

View File

@@ -159,6 +159,17 @@ gulp.task('serve', function(cb) {
}); });
}); });
// Windows command to launch nginx serv
gulp.task('serve-win', function(cb) {
exec('nginx -p %cd% -c nginx.conf', function (err, stdout, stderr) {
if (stderr) {
console.warn(stderr);
console.warn('Is NGINX already running?\n');
}
cb();
});
});
gulp.task('serve-stop', function(cb) { gulp.task('serve-stop', function(cb) {
exec('kill -QUIT $(cat nginx.pid)', function (err, stdout, stderr) { exec('kill -QUIT $(cat nginx.pid)', function (err, stdout, stderr) {
if (stderr) console.log(stderr); else cb(err); if (stderr) console.log(stderr); else cb(err);

View File

@@ -20,6 +20,7 @@
"gulp-manifest": "0.0.6", "gulp-manifest": "0.0.6",
"gulp-minify-css": "^1.0.0", "gulp-minify-css": "^1.0.0",
"gulp-rev-all": "^0.8.18", "gulp-rev-all": "^0.8.18",
"gulp-scp2": "^0.1.3",
"gulp-sourcemaps": "^1.5.1", "gulp-sourcemaps": "^1.5.1",
"gulp-svgmin": "^1.1.2", "gulp-svgmin": "^1.1.2",
"gulp-svgstore": "^5.0.1", "gulp-svgstore": "^5.0.1",