Address feedback
This commit is contained in:
parent
fa156531bf
commit
7bd3d87f7a
@ -20,7 +20,7 @@
|
||||
"docs:generate": "typedoc --out docs .",
|
||||
"docs:open": "opn docs/index.html",
|
||||
|
||||
"clean": "shx rm -rf _bundles lib",
|
||||
"clean": "shx rm -rf _bundles lib test_temp",
|
||||
"build:dev": "npm run clean && run-p build:*:dev",
|
||||
"build:umd:dev": "webpack",
|
||||
"build:umd:prod": "webpack -p",
|
||||
|
2
src/globals.d.ts
vendored
2
src/globals.d.ts
vendored
@ -15,7 +15,7 @@ declare interface Schema {
|
||||
declare namespace Chai {
|
||||
interface Assertion {
|
||||
bignumber: Assertion;
|
||||
// HACK: In order t comply with chai-as-promised we make eventually a PromisedAssertion not an assertion
|
||||
// HACK: In order to comply with chai-as-promised we make eventually a `PromisedAssertion` not an `Assertion`
|
||||
eventually: PromisedAssertion;
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +1,16 @@
|
||||
/**
|
||||
* This is to generate the umd bundle only
|
||||
*/
|
||||
const lodash = require('lodash');
|
||||
const webpack = require('webpack');
|
||||
const path = require('path');
|
||||
const PROD = process.env.NODE_ENV === 'production';
|
||||
const production = process.env.NODE_ENV === 'production';
|
||||
|
||||
let entry = {
|
||||
'0x': './src/0x.js.ts',
|
||||
};
|
||||
if (PROD) {
|
||||
entry = Object.assign({}, entry, {'0x.min': './src/0x.js.ts'});
|
||||
if (production) {
|
||||
entry = _.assign({}, entry, {'0x.min': './src/0x.js.ts'});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user