diff options
| author | Peter Bacon Darwin | 2014-02-12 22:47:42 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:41 +0000 |
| commit | 389d4879da4aa620ee95d789b19ff9be44eb730a (patch) | |
| tree | 93352ddc8738a975904a1774d51b93d585ca1075 /lib/grunt/plugins.js | |
| parent | a564160511bf1bbed5a4fe5d2981fae1bb664eca (diff) | |
| download | angular.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.js | 19 |
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'); }); |
