chore(grunt): run gulp directly rather than through npm

This commit is contained in:
Peter Bacon Darwin
2016-11-28 14:12:18 +00:00
parent 3205e1c08c
commit 0b81a26045
2 changed files with 3 additions and 7 deletions
+2 -5
View File
@@ -4,7 +4,7 @@
var bower = require('bower');
var util = require('./utils.js');
var shelljs = require('shelljs');
var npmRun = require('npm-run');
module.exports = function(grunt) {
@@ -39,10 +39,7 @@ module.exports = function(grunt) {
grunt.registerTask('docs', 'create angular docs', function() {
var gruntProc = shelljs.exec('yarn run gulp -- --gulpfile docs/gulpfile.js');
if (gruntProc.code !== 0) {
throw new Error('doc generation failed');
}
npmRun.execSync('gulp --gulpfile docs/gulpfile.js', {stdio: 'inherit'});
});
+1 -2
View File
@@ -16,8 +16,7 @@
"scripts": {
"commit": "git-cz",
"test-i18n": "jasmine-node i18n/spec",
"test-i18n-ucd": "jasmine-node i18n/ucd/spec",
"gulp": "gulp"
"test-i18n-ucd": "jasmine-node i18n/ucd/spec"
},
"devDependencies": {
"angular-benchpress": "0.x.x",