mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
32 lines
647 B
JavaScript
32 lines
647 B
JavaScript
'use strict';
|
|
|
|
var _ = require('lodash'),
|
|
async = require('async'),
|
|
path = require('path');
|
|
|
|
var util = require('../common/util');
|
|
|
|
var basePath = path.join(__dirname, '..', '..'),
|
|
distPath = path.join(basePath, 'dist'),
|
|
filename = 'lodash.js';
|
|
|
|
var baseLodash = path.join(basePath, filename),
|
|
distLodash = path.join(distPath, filename);
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
function onComplete(error) {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
}
|
|
|
|
function build() {
|
|
async.series([
|
|
util.copyFile(baseLodash, distLodash),
|
|
util.minFile(distLodash)
|
|
], onComplete);
|
|
}
|
|
|
|
build();
|