Add Hash util and split out file helper.

This commit is contained in:
John-David Dalton
2016-04-06 23:22:22 -07:00
parent 58afd8c364
commit 0588dcb3e9
9 changed files with 94 additions and 50 deletions

View File

@@ -4,7 +4,7 @@ var _ = require('lodash'),
async = require('async'),
path = require('path');
var util = require('../common/util');
var file = require('../common/file');
var basePath = path.join(__dirname, '..', '..'),
distPath = path.join(basePath, 'dist');
@@ -25,7 +25,7 @@ function onComplete(error) {
function build(target) {
var actions = _.map(filePairs, function(pair) {
return util.copyFile(pair[0], path.join(target, pair[1]));
return file.copy(pair[0], path.join(target, pair[1]));
});
async.series(actions, onComplete);