Gruntfile-execArgv.js 417 B

1234567891011121314151617
  1. module.exports = function(grunt) {
  2. var util = require('../../');
  3. grunt.registerTask('default', function(text) {
  4. var done = this.async();
  5. util.spawn({
  6. grunt: true,
  7. args: ['--gruntfile', 'Gruntfile-execArgv-child.js'],
  8. }, function(err, result, code) {
  9. var matches = result.stdout.match(/^(OUTPUT: .*)/m);
  10. console.log(matches ? matches[1] : '');
  11. done();
  12. });
  13. });
  14. };