-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xuopled
committed
Oct 25, 2016
1 parent
79b3ef7
commit 18ec7f1
Showing
6 changed files
with
171 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
{ | ||
"stage": 0, | ||
"blacklist": [ | ||
"es6.tailCall", | ||
"spec.functionName" | ||
] | ||
"presets": [ | ||
["latest", { | ||
"es2015": { | ||
"loose": true, | ||
"modules": false | ||
} | ||
}], | ||
"react" | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
# Changelog | ||
|
||
## 1.2.0 | ||
|
||
* Added : Webpack build -> `webpack.config.js` | ||
* Updated : Babel config -> `.babelrc` | ||
* Updated : Eslint config -> `.eslintrc` | ||
* Updated : Dev dependencies -> `package.json` | ||
|
||
## 1.1.0 | ||
|
||
* Added : React in peer dependency | ||
|
||
## 1.0.0 | ||
|
||
* Initial release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
var webpack = require('webpack') | ||
var path = require('path') | ||
|
||
var sources = [ | ||
path.resolve(__dirname, 'src'), | ||
] | ||
|
||
module.exports = { | ||
entry: './src/index.js', | ||
output: { | ||
path: __dirname, | ||
filename: './lib/index.js', | ||
library: 'react-svg-piechart', | ||
libraryTarget: 'umd', | ||
}, | ||
resolve: { | ||
extensions: ['', '.js'] | ||
}, | ||
module: { | ||
preLoaders: [ | ||
{ | ||
test: /\.js?$/, | ||
include: sources, | ||
loader: 'eslint', | ||
query: { | ||
presets: ['latest'] | ||
}, | ||
}, | ||
], | ||
loaders: [ | ||
{ | ||
test: /\.js$/, | ||
include: sources, | ||
loader: 'babel', | ||
query: { | ||
presets: ['latest'] | ||
}, | ||
}, | ||
], | ||
}, | ||
externals: { | ||
react: { | ||
root: 'React', | ||
commonjs: 'react', | ||
commonjs2: 'react', | ||
amd: 'react', | ||
}, | ||
}, | ||
plugins: [ | ||
new webpack.NoErrorsPlugin(), | ||
new webpack.optimize.OccurenceOrderPlugin(), | ||
new webpack.optimize.DedupePlugin(), | ||
new webpack.optimize.AggressiveMergingPlugin(), | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compress: { | ||
warnings: false, | ||
}, | ||
}), | ||
] | ||
} |