blob: 14b3fd3ce946a1cbddc8b613a1015aa18dbfeb71 [file] [log] [blame]
Matteo Scandolo280dcd32016-05-16 09:59:38 -07001'use strict';
2
3var async = require('async'),
4 path = require('path');
5
6var file = require('../common/file');
7
8var basePath = path.join(__dirname, '..', '..'),
9 distPath = path.join(basePath, 'dist'),
10 filename = 'lodash.js';
11
12var baseLodash = path.join(basePath, filename),
13 distLodash = path.join(distPath, filename);
14
15/*----------------------------------------------------------------------------*/
16
17function onComplete(error) {
18 if (error) {
19 throw error;
20 }
21}
22
23function build() {
24 async.series([
25 file.copy(baseLodash, distLodash),
26 file.min(distLodash)
27 ], onComplete);
28}
29
30build();