Built motion from commit 1038d87.|0.0.141
[motion.git] / public / bower_components / lodash / lib / main / build-dist.js
1 'use strict';
2
3 var _ = require('lodash'),
4     async = require('async'),
5     path = require('path');
6
7 var util = require('../common/util');
8
9 var basePath = path.join(__dirname, '..', '..'),
10     distPath = path.join(basePath, 'dist'),
11     filename = 'lodash.js';
12
13 var baseLodash = path.join(basePath, filename),
14     distLodash = path.join(distPath, filename);
15
16 /*----------------------------------------------------------------------------*/
17
18 function onComplete(error) {
19   if (error) {
20     throw error;
21   }
22 }
23
24 function build() {
25   async.series([
26     util.copyFile(baseLodash, distLodash),
27     util.minFile(distLodash)
28   ], onComplete);
29 }
30
31 build();