Skip to content

Commit

Permalink
chore(grunt): run gulp directly rather than through npm
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Nov 29, 2016
1 parent ca139de commit 5dd3a35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions lib/grunt/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down Expand Up @@ -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'});
});


Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5dd3a35

Please sign in to comment.