diff --git a/gulpfile.js b/gulpfile.js index c53289b1a6..675fe9a1e8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -39,7 +39,8 @@ the current session. gulp.task('help', taskListing); gulp.task('serve-and-sync', function (cb) { - execCommands(['harp server'], {}, cb); + // execCommands(['harp server'], {}, cb); + execCommands(['npm run harp'], {}, cb); var browserSync = require('browser-sync').create(); browserSync.init({ diff --git a/package.json b/package.json index b5b29af132..25692eae46 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "description": "Angular 2 documentation", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "harp": "harp server ." }, "repository": { "type": "git", @@ -34,6 +35,7 @@ "gulp-watch": "^4.3.4", "html2jade": "^0.8.4", "indent-string": "^2.1.0", + "harp": "^0.18.0", "jasmine-core": "^2.3.4", "karma": "^0.13.8", "karma-chrome-launcher": "^0.2.0",