aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
diff options
context:
space:
mode:
Diffstat (limited to 'packages/subproviders')
-rw-r--r--packages/subproviders/package.json12
-rw-r--r--packages/subproviders/webpack.config.js56
2 files changed, 3 insertions, 65 deletions
diff --git a/packages/subproviders/package.json b/packages/subproviders/package.json
index 74d1ba8c9..5a3fc99ec 100644
--- a/packages/subproviders/package.json
+++ b/packages/subproviders/package.json
@@ -1,23 +1,17 @@
{
"name": "@0xproject/subproviders",
- "version": "0.0.0",
+ "version": "0.0.1",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"license": "Apache-2.0",
"scripts": {
"prebuild": "npm run clean",
- "build": "run-p build:umd:dev build:commonjs; exit 0;",
"clean": "shx rm -rf lib",
- "build:umd:dev": "webpack",
- "build:umd:prod": "NODE_ENV=production webpack",
- "build:commonjs": "tsc",
+ "build": "tsc",
"lint": "tslint --project . 'src/**/*.ts' 'test/**/*.ts'",
- "pretest:umd": "run-s clean build:umd:dev build:commonjs",
- "substitute_umd_bundle": "shx mv _bundles/* lib/src",
- "run_mocha_all": "mocha lib/test/**/*_test.js --timeout 10000 --bail --exit",
"run_mocha_unit": "mocha lib/test/unit/**/*_test.js --timeout 10000 --bail --exit",
"run_mocha_integration": "mocha lib/test/integration/**/*_test.js --timeout 10000 --bail --exit",
- "test": "run-s clean build:commonjs run_mocha_all",
+ "test": "run-s test:unit test:integration",
"test:unit": "run-s clean build:commonjs run_mocha_unit",
"test:integration": "run-s clean build:commonjs run_mocha_integration"
},
diff --git a/packages/subproviders/webpack.config.js b/packages/subproviders/webpack.config.js
deleted file mode 100644
index a73489704..000000000
--- a/packages/subproviders/webpack.config.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * This is to generate the umd bundle only
- */
-const _ = require('lodash');
-const webpack = require('webpack');
-const path = require('path');
-const production = process.env.NODE_ENV === 'production';
-
-let entry = {
- 'index': './src/index.ts',
-};
-if (production) {
- entry = _.assign({}, entry, {'index.min': './src/index.ts'});
-}
-
-module.exports = {
- entry,
- output: {
- path: path.resolve(__dirname, '_bundles'),
- filename: '[name].js',
- libraryTarget: 'umd',
- library: '0x Subproviders',
- umdNamedDefine: true,
- },
- resolve: {
- extensions: ['.ts', '.js', '.json'],
- },
- devtool: 'source-map',
- plugins: [
- new webpack.optimize.UglifyJsPlugin({
- minimize: true,
- sourceMap: true,
- include: /\.min\.js$/,
- }),
- ],
- module: {
- rules: [
- {
- test: /\.ts$/,
- use: [
- {
- loader: 'awesome-typescript-loader',
- query: {
- declaration: false,
- },
- },
- ],
- exclude: /node_modules/,
- },
- {
- test: /\.json$/,
- loader: 'json-loader',
- },
- ],
- },
-};