Skip to content

Commit

Permalink
move webpack config to scripts files
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Aug 8, 2017
1 parent 030d004 commit 8dd42f2
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 版本更新日志

## v1.0.8
- Break Change
- `Stepper`新增onInputChange属性,input默认将不触发onChange事件而触发onInputChange事件。([c6eb5de](https://github.com/ZhonganTechENG/zarm/commit/c6eb5de9a235942b612d3ea1abd90b62e41bbecf))

- Bug Fix
- 修复Input为textarea多行文本时的defaultValue设置位置不正确。修复autoHeight功能在组件不可见转变为可见的情况下不更新的bug。([#60](https://github.com/ZhonganTechENG/zarm/pull/60))
- 修复`Input`为textarea多行文本时的defaultValue设置位置不正确。修复autoHeight功能在组件不可见转变为可见的情况下不更新的bug。([#60](https://github.com/ZhonganTechENG/zarm/pull/60))
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"scripts": {
"start": "npm run deploy && npm run dev",
"clean": "rm -rf lib && rm -rf dist",
"dev": "node devServer.js",
"pro": "rm -rf assets && webpack --config webpack.config.pro.js",
"dev": "node scripts/devServer.js",
"pro": "rm -rf assets && webpack --config scripts/webpack.config.pro.js",
"lint:js": "eslint components --ext '.js,.jsx'",
"lint:style": "stylelint styles/**/*.scss --syntax scss",
"lint": "npm run lint:js && npm run lint:style",
"test": "exit 0",
"build:lib": "babel components --out-dir lib --presets=es2015,react,stage-0",
"build:umd": "webpack --config webpack.config.umd.js && WEBPACK_ENV=production webpack --config webpack.config.umd.js",
"build:umd": "webpack --config scripts/webpack.config.umd.js && WEBPACK_ENV=production webpack --config scripts/webpack.config.umd.js",
"build": "npm run clean && npm run build:lib && npm run build:umd",
"docs": "cd docs && gitbook install && gitbook serve"
},
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack.config.base.js → scripts/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {

output: {
path: path.resolve(__dirname, 'assets'),
path: path.resolve(__dirname, '../assets'),
filename: 'js/[name].[hash:8].js',
chunkFilename: 'js/[name].[chunkhash:8].js',
publicPath: '/',
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack.config.umd.js → scripts/webpack.config.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ config.entry = {
config.output = {
library: 'Zarm',
libraryTarget: 'umd',
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, '../dist'),
filename: '[name].js',
};

Expand Down

0 comments on commit 8dd42f2

Please sign in to comment.