Changeset 516 for Dev/trunk/node_modules/grunt-exec/test/Gruntfile.js
- Timestamp:
- 03/14/14 12:36:58 (11 years ago)
- Location:
- Dev/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk
- Property svn:ignore
-
old new 1 1 build 2 quod-erat.git
-
- Property svn:ignore
-
Dev/trunk/node_modules/grunt-exec/test/Gruntfile.js
r484 r516 21 21 cmd: function(){ 22 22 return 'echo "you can use callback, and error, stdout, stderr can be used as arguments"'; 23 }, 24 callback: function(error, stdout, stderr){ 25 var fs = require('fs'); 26 var path = require('path'); 27 var outputPath = path.resolve(process.cwd(), 'test4'); 23 } 24 , callback: function(error, stdout, stderr){ 25 var fs = require('fs') 26 , path = require('path') 27 , outputPath = path.resolve(process.cwd(), 'test4'); 28 28 29 console.log('outputPath : ' + outputPath); 29 30 fs.writeFileSync(outputPath, stdout, 'utf-8'); 30 31 } 31 32 } 33 , test5: { 34 cmd: 'exit 8' 35 , exitCodes: 8 36 } 37 , test6: { 38 cmd: 'exit 9' 39 , exitCodes: [8, 9] 40 } 41 , test7: 'echo "you don\'t even need an object" > test7' 32 42 } 33 43 });
Note: See TracChangeset
for help on using the changeset viewer.