Reorg build, fp, and lib files.

This commit is contained in:
John-David Dalton
2016-01-16 11:18:56 -08:00
parent f555cd2303
commit 9d2d4f39bc
13 changed files with 45 additions and 160 deletions

28
lib/main/build-dist.js Normal file
View File

@@ -0,0 +1,28 @@
'use strict';
var _ = require('lodash'),
async = require('async'),
fs = require('fs-extra'),
path = require('path');
var minify = require('../common/minify.js');
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;
}
}
async.series([
_.partial(fs.copy, baseLodash, distLodash),
_.partial(minify, distLodash)
], onComplete);