UNPKG

hazdev-webutils

Version:

Utilities commonly used in web applications developed by the EHP HazDev team.

64 lines (53 loc) 1.06 kB
'use strict'; var config = require('./config'); var EXPORTS = [ 'math/Camera', 'math/Matrix', 'math/Vector', 'mvc/Collection', 'mvc/CollectionSelectBox', 'mvc/CollectionTable', 'mvc/CollectionView', 'mvc/DataTable', 'mvc/DownloadView', 'mvc/FileInputView', 'mvc/ModalView', 'mvc/Model', 'mvc/SelectView', 'mvc/SortView', 'mvc/View', 'util/Events', 'util/FileIO', 'util/Message', 'util/Util', 'util/Xhr' ]; var browserify = { options: { browserifyOptions: { debug: true, paths: [ process.cwd() + '/' + config.src ] } }, // source bundle source : { src: [], dest: config.build + '/' + config.src + '/hazdev-webutils.js', options: { alias: EXPORTS.map(function (path) { return './' + config.src + '/' + path + '.js:' + path; }) } }, // test bundle test: { src: config.test + '/test.js', dest: config.build + '/' + config.test + '/test.js', options: { external: EXPORTS } } }; module.exports = browserify;