aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-07 06:18:35 +0800
committerFabio Berger <me@fabioberger.com>2017-12-07 06:18:35 +0800
commit73b4b4488ed9dd0dcce5777f6428d25c5fcd5d8a (patch)
treef0abadbc2c66eec36166a9529b04c5bd621a21ce /packages
parentf23071a214161858f389514f42b7cc3ed4efe66b (diff)
downloaddexon-sol-tools-73b4b4488ed9dd0dcce5777f6428d25c5fcd5d8a.tar.gz
dexon-sol-tools-73b4b4488ed9dd0dcce5777f6428d25c5fcd5d8a.tar.zst
dexon-sol-tools-73b4b4488ed9dd0dcce5777f6428d25c5fcd5d8a.zip
Fix version and remove the UMD build
Diffstat (limited to 'packages')
-rw-r--r--packages/subproviders/package.json12
-rw-r--r--packages/subproviders/webpack.config.js56
-rw-r--r--packages/website/package.json2
3 files changed, 4 insertions, 66 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',
- },
- ],
- },
-};
diff --git a/packages/website/package.json b/packages/website/package.json
index fc7d65d05..ac6e61a88 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -18,7 +18,7 @@
"author": "Fabio Berger",
"license": "Apache-2.0",
"dependencies": {
- "@0xproject/subproviders": "0.0.0",
+ "@0xproject/subproviders": "0.0.1",
"0x.js": "0xproject/0x.js/packages/0x.js#0x.js@0.27.1",
"accounting": "^0.4.1",
"basscss": "^8.0.3",