refactor lock warning and add tests
This commit is contained in:
parent
fb3a7191e5
commit
35ab711846
13 changed files with 632 additions and 557 deletions
|
|
@ -97,14 +97,14 @@ var createBundle = function(opts) {
|
|||
expose: '../js/models/core/HDPath'
|
||||
});
|
||||
|
||||
if (opts.dontminify) {
|
||||
if (opts.debug) {
|
||||
//include dev dependencies
|
||||
b.require('sinon');
|
||||
b.require('blanket');
|
||||
b.require('soop');
|
||||
}
|
||||
|
||||
if (!opts.dontminify) {
|
||||
if (!opts.debug) {
|
||||
b.transform({
|
||||
global: true
|
||||
}, 'uglifyify');
|
||||
|
|
@ -120,7 +120,7 @@ if (require.main === module) {
|
|||
var program = require('commander');
|
||||
program
|
||||
.version('0.0.1')
|
||||
.option('-d, --dontminify', 'Development. Don\'t minify the code.')
|
||||
.option('-d, --debug', 'Development. Don\'t minify the codem and include debug packages.')
|
||||
.option('-o, --stdout', 'Specify output as stdout')
|
||||
.parse(process.argv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue