Created
October 25, 2013 18:32
-
-
Save felixzapata/7159552 to your computer and use it in GitHub Desktop.
copia ficheros via Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var grunt = require('grunt'); | |
var path = require('path'); | |
var ncp = require('ncp').ncp; | |
//grunt.file.copy(path.normalize(__dirname + '/tasks/copy_all_docs.js'), path.normalize(__dirname + '/tasks2/copy_all_docs.js')); | |
grunt.file.mkdir(path.normalize(__dirname + '/.tmp/docs/rp1')); | |
ncp(path.normalize(__dirname + '/test/fixtures/repos/rp1/docs'), '.tmp/docs/rp1', function(err) { | |
if (err) { | |
return console.error(err); | |
} | |
console.log('done!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment