react-d3-shape
Advanced tools
Comparing version 0.1.3 to 0.2.0
{ | ||
"name": "react-d3-shape", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "react shape component", | ||
@@ -11,3 +11,3 @@ "main": "./lib/index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"watch": "NODE_ENV=0 webpack -w", | ||
"prepublish": "npm run build && npm run prod", | ||
"build": "rm -rf ./lib && babel -w --stage 0 src --out-dir lib", | ||
@@ -19,24 +19,37 @@ "prod": "NODE_ENV=0 webpack --config webpack.prod.config.js && NODE_ENV=1 webpack --config webpack.prod.config.js" | ||
"devDependencies": { | ||
"babel": "^5.8.23", | ||
"babel-core": "^5.8.24", | ||
"babel-loader": "^5.3.2", | ||
"babel": "^6.0.0", | ||
"babel-core": "^6.5.2", | ||
"babel-eslint": "^3.1.9", | ||
"babel-loader": "^6.2.3", | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-plugin-react-transform": "^2.0.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.2.2", | ||
"babel-plugin-transform-runtime": "^6.5.2", | ||
"babel-polyfill": "^6.5.0", | ||
"babel-preset-es2015": "^6.5.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-react-hmre": "1.0.1", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"css-loader": "^0.18.0", | ||
"dsv-loader": "^1.0.0", | ||
"express": "^4.13.4", | ||
"extract-text-webpack-plugin": "^1.0.1", | ||
"json-loader": "^0.5.3", | ||
"jsx-loader": "^0.13.2", | ||
"react": "^0.14.3", | ||
"react-hot-loader": "^1.3.0", | ||
"react-bootstrap": "^0.28.3", | ||
"react-router": "^2.0.0", | ||
"style-loader": "^0.12.4", | ||
"webpack": "^1.12.2", | ||
"webpack-dev-server": "^1.11.0" | ||
"webpack-dev-middleware": "^1.5.1", | ||
"webpack-dev-server": "^1.11.0", | ||
"webpack-hot-middleware": "^2.9.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^0.14.0" | ||
"react": "^0.14.7" | ||
}, | ||
"dependencies": { | ||
"d3": "^3.5.6", | ||
"react-d3-core": "^1.1.4", | ||
"react-dom": "^0.14.0", | ||
"react-faux-dom": "^2.1.0" | ||
"d3-shape": "^0.5.1", | ||
"react-d3-core": "^1.1.6", | ||
"react-dom": "^0.14.0" | ||
} | ||
} |
@@ -62,7 +62,7 @@ # react-d3-shape | ||
$ sudo npm i | ||
$ sudo npm i -g babel@5.8.23 | ||
$ sudo npm run build | ||
$ webpack -w | ||
$ node devServer.js | ||
``` | ||
and open `localhost:5000/example` | ||
Build production `js`, `min.js` code | ||
@@ -69,0 +69,0 @@ |
@@ -1,52 +0,50 @@ | ||
'use strict'; | ||
var path = require('path'); | ||
var webpack = require('webpack'); | ||
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
var path = require('path'), | ||
webpack = require('webpack'), | ||
nodeModulesPath = path.join(__dirname, 'node_modules'); | ||
var js_root = './example/src'; | ||
var js_dist = path.join(__dirname, './example/dist/origin'); | ||
module.exports = [{ | ||
name: 'shape', | ||
module.exports = { | ||
devtool: 'eval-source-map', | ||
entry: { | ||
line: js_root + '/line.jsx', | ||
scatter: js_root + '/scatter.jsx', | ||
area_stack: js_root + '/area_stack.jsx', | ||
bar: js_root + '/bar.jsx', | ||
bar_horizontal: js_root + '/bar_horizontal.jsx', | ||
bar_group: js_root + '/bar_group.jsx', | ||
bar_group_horizontal: js_root + '/bar_group_horizontal.jsx', | ||
bar_stack: js_root + '/bar_stack.jsx', | ||
bar_stack_horizontal: js_root + '/bar_stack_horizontal.jsx', | ||
pie: js_root + '/pie.jsx', | ||
donut: js_root + '/donut.jsx' | ||
index: ['webpack-hot-middleware/client', './example/index.js'] | ||
}, | ||
output: { | ||
path: js_dist, | ||
filename: '[name].js' | ||
filename: '[name].js', | ||
publicPath: '/static/' | ||
}, | ||
resolve: { | ||
extensions: ['', '.webpack.js', '.web.js', '.js', '.jsx'] | ||
}, | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new webpack.NoErrorsPlugin(), | ||
new webpack.DefinePlugin({ | ||
"process.env": { | ||
NODE_ENV: JSON.stringify("development") | ||
} | ||
}), | ||
new ExtractTextPlugin('[name].css', { allChunks: true }) | ||
], | ||
module: { | ||
loaders: [ | ||
{ | ||
test: [/\.jsx$/], | ||
loaders: ["jsx-loader?insertPragma=React.DOM&harmony"], | ||
test: [/\.jsx$/, /\.js$/], | ||
loaders: ["babel"], | ||
exclude: /node_modules/ | ||
}, | ||
{ | ||
test: /\.css$/, | ||
loader: 'style-loader!css-loader' | ||
loader: 'style-loader!css-loader', | ||
exclude: /node_modules/ | ||
}, | ||
{ | ||
test: /\.json$/, | ||
loader: "json-loader" | ||
loader: "json-loader", | ||
exclude: /node_modules/ | ||
} | ||
], | ||
}, | ||
resolve: { | ||
extensions: ['', '.webpack.js', '.web.js', '.js', '.jsx'] | ||
} | ||
}]; | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
6314
25
7
128
2
1
+ Addedd3-shape@^0.5.1
+ Addedd3-path@0.1.5(transitive)
+ Addedd3-shape@0.5.1(transitive)
- Removedreact-faux-dom@^2.1.0
Updatedreact-d3-core@^1.1.6