chore(grunt): run gulp directly rather than through npm
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user