File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
var bower = require ( 'bower' ) ;
6
6
var util = require ( './utils.js' ) ;
7
- var shelljs = require ( 'shelljs ' ) ;
7
+ var npmRun = require ( 'npm-run ' ) ;
8
8
9
9
module . exports = function ( grunt ) {
10
10
@@ -39,10 +39,7 @@ module.exports = function(grunt) {
39
39
40
40
41
41
grunt . registerTask ( 'docs' , 'create angular docs' , function ( ) {
42
- var gruntProc = shelljs . exec ( 'yarn run gulp -- --gulpfile docs/gulpfile.js' ) ;
43
- if ( gruntProc . code !== 0 ) {
44
- throw new Error ( 'doc generation failed' ) ;
45
- }
42
+ npmRun . execSync ( 'gulp --gulpfile docs/gulpfile.js' , { stdio : 'inherit' } ) ;
46
43
} ) ;
47
44
48
45
Original file line number Diff line number Diff line change 16
16
"scripts" : {
17
17
"commit" : " git-cz" ,
18
18
"test-i18n" : " jasmine-node i18n/spec" ,
19
- "test-i18n-ucd" : " jasmine-node i18n/ucd/spec" ,
20
- "gulp" : " gulp"
19
+ "test-i18n-ucd" : " jasmine-node i18n/ucd/spec"
21
20
},
22
21
"devDependencies" : {
23
22
"angular-benchpress" : " 0.x.x" ,
You can’t perform that action at this time.
0 commit comments