From 73b4b4488ed9dd0dcce5777f6428d25c5fcd5d8a Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 6 Dec 2017 16:18:35 -0600 Subject: Fix version and remove the UMD build --- packages/subproviders/package.json | 12 ++----- packages/subproviders/webpack.config.js | 56 --------------------------------- packages/website/package.json | 2 +- 3 files changed, 4 insertions(+), 66 deletions(-) delete mode 100644 packages/subproviders/webpack.config.js (limited to 'packages') 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", -- cgit