diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js new file mode 100644 index 00000000..14b3fd3c --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js @@ -0,0 +1,30 @@ +'use strict'; + +var async = require('async'), + path = require('path'); + +var file = require('../common/file'); + +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([ + file.copy(baseLodash, distLodash), + file.min(distLodash) + ], onComplete); +} + +build(); |