3 var _ = require('lodash'),
4 async = require('async'),
5 path = require('path');
7 var file = require('../common/file');
9 var basePath = path.join(__dirname, '..', '..'),
10 distPath = path.join(basePath, 'dist');
13 [path.join(distPath, 'lodash.core.js'), 'core.js'],
14 [path.join(distPath, 'lodash.core.min.js'), 'core.min.js'],
15 [path.join(distPath, 'lodash.min.js'), 'lodash.min.js']
18 /*----------------------------------------------------------------------------*/
20 function onComplete(error) {
26 function build(target) {
27 var actions = _.map(filePairs, function(pair) {
28 return file.copy(pair[0], path.join(target, pair[1]));
31 async.series(actions, onComplete);
34 build(_.last(process.argv));