aboutsummaryrefslogtreecommitdiffstats
path: root/lib/grunt/plugins.js
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-02-12 22:47:42 +0000
committerPeter Bacon Darwin2014-02-16 19:03:41 +0000
commit389d4879da4aa620ee95d789b19ff9be44eb730a (patch)
tree93352ddc8738a975904a1774d51b93d585ca1075 /lib/grunt/plugins.js
parenta564160511bf1bbed5a4fe5d2981fae1bb664eca (diff)
downloadangular.js-389d4879da4aa620ee95d789b19ff9be44eb730a.tar.bz2
chore(doc-gen): new docs
chore(doc-gen): implement dgeni
Diffstat (limited to 'lib/grunt/plugins.js')
-rw-r--r--lib/grunt/plugins.js19
1 files changed, 3 insertions, 16 deletions
diff --git a/lib/grunt/plugins.js b/lib/grunt/plugins.js
index 59fee2e4..56836aae 100644
--- a/lib/grunt/plugins.js
+++ b/lib/grunt/plugins.js
@@ -1,6 +1,6 @@
var bower = require('bower');
var util = require('./utils.js');
-var spawn = require('child_process').spawn;
+var shelljs = require('shelljs');
module.exports = function(grunt) {
@@ -34,21 +34,8 @@ module.exports = function(grunt) {
});
- grunt.registerMultiTask('docs', 'create angular docs', function(){
- var done = this.async();
- var files = this.data;
- var docs = spawn('node', ['docs/src/gen-docs.js']);
- docs.stdout.pipe(process.stdout);
- docs.stderr.pipe(process.stderr);
- docs.on('exit', function(code){
- if(code !== 0) grunt.fail.warn('Error creating docs');
- grunt.file.expand(files).forEach(function(file){
- var content = util.process(grunt.file.read(file), grunt.config('NG_VERSION'), false);
- grunt.file.write(file, content);
- });
- grunt.log.ok('docs created');
- done();
- });
+ grunt.registerTask('docs', 'create angular docs', function(){
+ shelljs.exec('node_modules/gulp/bin/gulp.js --gulpfile docs/gulpfile.js');
});