Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- var cloneRoot, ncp, path;
- path = require('path');
- ncp = require('ncp').ncp;
- ncp.limit = 512;
- module.exports = cloneRoot = function (grunt) {
- var helpers;
- helpers = require('../../helpers')(grunt);
- return {
- run: function (fn) {
- var phonegapPath, rootPath;
- grunt.log.writeln('Cloning a porra do root directory');
- rootPath = helpers.config('root');
- phonegapPath = helpers.config('path');
- return ncp(rootPath, path.join(phonegapPath, 'www'), {
- stopOnError: true
- }, (function (_this) {
- return function (err) {
- if (err) {
- grunt.warn(err);
- }
- if (fn) {
- return fn(err);
- }
- };
- })(this));
- }
- };
- };
- }).call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement