1'use strict'; 2 3const async = require('async'); 4const path = require('path'); 5 6const file = require('../common/file'); 7const util = require('../common/util'); 8 9const basePath = path.join(__dirname, '..', '..'); 10const distPath = path.join(basePath, 'dist'); 11const filename = 'lodash.js'; 12 13const baseLodash = path.join(basePath, filename); 14const distLodash = path.join(distPath, filename); 15 16/*----------------------------------------------------------------------------*/ 17 18/** 19 * Creates browser builds of Lodash at the `target` path. 20 * 21 * @private 22 * @param {string} target The output directory path. 23 */ 24function build() { 25 async.series([ 26 file.copy(baseLodash, distLodash), 27 file.min(distLodash) 28 ], util.pitch); 29} 30 31build(); 32