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",