Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5dd3a35

Browse files
chore(grunt): run gulp directly rather than through npm
1 parent ca139de commit 5dd3a35

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/grunt/plugins.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
var bower = require('bower');
66
var util = require('./utils.js');
7-
var shelljs = require('shelljs');
7+
var npmRun = require('npm-run');
88

99
module.exports = function(grunt) {
1010

@@ -39,10 +39,7 @@ module.exports = function(grunt) {
3939

4040

4141
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'});
4643
});
4744

4845

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"scripts": {
1717
"commit": "git-cz",
1818
"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"
2120
},
2221
"devDependencies": {
2322
"angular-benchpress": "0.x.x",

0 commit comments

Comments
 (0)