From d0bfed6c9863ef247e2e1fb3ec1ca278ec7caee3 Mon Sep 17 00:00:00 2001 From: Jay Traband Date: Fri, 25 Sep 2015 02:21:56 -0700 Subject: [PATCH] updated so that all command executions use local npm packages. ( and added live-server). --- gulpfile.js | 8 ++++---- package.json | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 35e8d910a4..d9a68bfe38 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -57,7 +57,7 @@ gulp.task('help', taskListing.withFilters(function(taskName) { gulp.task('serve-and-sync', ['build-docs'], function (cb) { // execCommands(['harp server'], {}, cb); - execCommands(['npm run harp'], {}, cb); + execCommands(['npm run harp -- server .'], {}, cb); var browserSync = require('browser-sync').create(); browserSync.init({ @@ -78,7 +78,7 @@ gulp.task('serve-and-sync', ['build-docs'], function (cb) { }); gulp.task('serve-and-watch', function (cb) { - execCommands(['harp server'], {}, cb); + execCommands(['npm run harp -- server .'], {}, cb); devGuideExamplesWatch(_devguideShredOptions); }); @@ -168,8 +168,8 @@ gulp.task('git-changed-examples', ['_shred-devguide-examples'], function(){ }); gulp.task('check-deploy', function() { - return execPromise(['harp compile . ./deploy'], {}).then(function() { - execPromise('live-server', {cwd: './deploy'}); + return execPromise(['npm run harp -- compile . ./deploy'], {}).then(function() { + execPromise('npm run live-server ./deploy'); return askDeploy(); }).then(function(shouldDeploy) { if (shouldDeploy) { diff --git a/package.json b/package.json index e3d82398fa..4e94a60606 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "harp": "harp server .", + "harp": "harp", + "live-server": "live-server", "test-api-builder": "jasmine-node public/api-builder" }, "repository": { @@ -43,6 +44,7 @@ "karma": "^0.13.9", "karma-chrome-launcher": "^0.2.0", "karma-jasmine": "^0.3.6", + "live-server": "^0.8.1", "lodash": "^3.10.1", "marked": "^0.3.5", "minimatch": "^2.0.10",