nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / lodash / lib / main / build-dist.js
1 'use strict';
2
3 var async = require('async'),
4     path = require('path');
5
6 var file = require('../common/file');
7
8 var basePath = path.join(__dirname, '..', '..'),
9     distPath = path.join(basePath, 'dist'),
10     filename = 'lodash.js';
11
12 var baseLodash = path.join(basePath, filename),
13     distLodash = path.join(distPath, filename);
14
15 /*----------------------------------------------------------------------------*/
16
17 function onComplete(error) {
18   if (error) {
19     throw error;
20   }
21 }
22
23 function build() {
24   async.series([
25     file.copy(baseLodash, distLodash),
26     file.min(distLodash)
27   ], onComplete);
28 }
29
30 build();