ethjs-util
Advanced tools
Comparing version 0.0.5 to 0.1.0
var webpack = require('webpack'); // eslint-disable-line | ||
var env = process.env.NODE_ENV; // eslint-disable-line | ||
var filename = 'ethjs-util'; // eslint-disable-line | ||
var library = 'ethUtil'; // eslint-disable-line | ||
var config = { // eslint-disable-line | ||
@@ -20,3 +22,5 @@ module: { | ||
output: { | ||
library: 'ethUtil', | ||
path: 'dist', | ||
filename: filename + '.js', // eslint-disable-line | ||
library: library, // eslint-disable-line | ||
libraryTarget: 'umd', | ||
@@ -27,3 +31,2 @@ umdNamedDefine: true, | ||
new webpack.BannerPlugin({ banner: ' /* eslint-disable */ ', raw: true, entryOnly: true }), | ||
new webpack.BannerPlugin({ banner: ' /* eslint-disable */ ', raw: true }), | ||
new webpack.optimize.OccurrenceOrderPlugin(), | ||
@@ -37,2 +40,3 @@ new webpack.DefinePlugin({ | ||
if (env === 'production') { | ||
config.output.filename = filename + '.min.js'; // eslint-disable-line | ||
config.plugins | ||
@@ -39,0 +43,0 @@ .push(new webpack.optimize.UglifyJsPlugin({ |
{ | ||
"name": "ethjs-util", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "A simple set of Ethereum JS utilties.", | ||
@@ -14,4 +14,4 @@ "main": "./lib/index.js", | ||
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files", | ||
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js ./dist/ethjs-util.js", | ||
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js ./lib/index.js ./dist/ethjs-util.min.js", | ||
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress", | ||
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress", | ||
"build": "npm run build:commonjs && npm run test:lib && npm run build:umd && npm run build:umd:min", | ||
@@ -120,4 +120,4 @@ "lint": "npm run lint:js", | ||
"chai": "3.5.0", | ||
"eslint": "2.10.1", | ||
"coveralls": "2.11.9", | ||
"eslint": "2.10.1", | ||
"eslint-config-airbnb": "9.0.1", | ||
@@ -124,0 +124,0 @@ "eslint-import-resolver-webpack": "0.2.4", |
@@ -79,10 +79,8 @@ ## ethjs-util | ||
<!-- | ||
## Guides | ||
You'll find more detailed information on using default and tailoring it to your needs in our guides: | ||
You'll find more detailed information on using `ethjs-util` and tailoring it to your needs in our guides: | ||
- [User guide](docs/user-guide.md) - Usage, configuration, FAQ and complementary tools. | ||
- [Developer guide](docs/developer-guide.md) - Contributing to wafr and writing your own plugins & formatters. | ||
--> | ||
- [Developer guide](docs/developer-guide.md) - Contributing to `ethjs-util` and writing your own code and coverage. | ||
@@ -89,0 +87,0 @@ ## Help out |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
244897
21
2995
0
135