Skip to content

Instantly share code, notes, and snippets.

@felixzapata
Created October 25, 2013 18:32
Show Gist options
  • Save felixzapata/7159552 to your computer and use it in GitHub Desktop.
Save felixzapata/7159552 to your computer and use it in GitHub Desktop.
copia ficheros via Node
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