Skip to content

Commit

Permalink
feat: update READMe.md; rm webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
huixisheng committed Jul 6, 2018
1 parent aef2afc commit c4a4744
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .gitmessage
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# <body>用于详细描述本次变更的内容
#
# <footer>提供解决问题的文章地址或者测试的链接地址
# 例如: closes #traup_id fix #traup_id
# 例如: closes #id fix #id
#
# <type类型>
# build: 构建工具生成资源
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# wepy-plugin-image

> wepy插件根据图片大小是否转base64、上传七牛
> wepy插件根据图片大小转base64或者上传七牛
## 配置 ##

Expand All @@ -10,12 +10,13 @@

```
module.exports.plugins = {
image: {
limit: 10240, // 大于10kb
},
image: {
debugMode, // 用于显示调试显示
limit: 10240, // 大于10kb
},
}
```

## TODO ##
- [ ] 测试用例
- [ ] 去除脚手架生成的webpack?
- [x] 测试用例
- [x] 去除脚手架生成的webpack
19 changes: 1 addition & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"name": "wepy-plugin-image",
"version": "0.0.3",
"description": "wepy插件根据图片大小是否转base64、上传七牛",
"description": "wepy插件根据图片大小转base64或者上传七牛",
"main": "src/index.js",
"scripts": {
"test": "npm run eslint && ./node_modules/mocha/bin/mocha --require babel-register --watch --timeout 30000",
"eslint:diff": "node_modules/eslint/bin/eslint.js $(git diff-index HEAD --name-only --diff-filter ACMR |grep '\\.\\(jsx\\|es6\\|js\\|vue\\)$')",
"eslint": "cross-env NODE_ENV=production node_modules/eslint/bin/eslint.js --max-warnings 10 --ext .js,.vue static src build config test fis-conf.js",
"build:dev": "cross-env NODE_ENV=development webpack --progress --hide-modules --colors",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules --colors",
"commitmsg": "commitlint -e $GIT_PARAMS"
},
"keywords": [],
Expand All @@ -32,34 +30,19 @@
"autoprefixer": "^8.1.0",
"babel-core": "^6.0.0",
"babel-eslint": "^8.2.2",
"babel-loader": "^7.1.4",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.26.0",
"chai": "^4.1.2",
"clean-webpack-plugin": "^0.1.19",
"compression-webpack-plugin": "^1.1.10",
"cross-env": "^5.0.5",
"eslint": "^4.18.2",
"eslint-config-style-guide": "0.0.6",
"eslint-friendly-formatter": "^3.0.0",
"eslint-import-resolver-webpack": "^0.8.4",
"eslint-loader": "^2.0.0",
"file-loader": "^1.1.11",
"husky": "^0.15.0-rc.13",
"mocha": "^5.0.4",
"node-plus-string": "^1.0.1",
"stylefmt": "^6.0.0",
"stylelint": "^9.1.1",
"stylelint-config-standard": "^18.2.0",
"stylelint-config-style-guide": "0.0.3",
"stylelint-processor-html": "^1.0.0",
"stylelint-webpack-plugin": "^0.10.3",
"vue-loader": "^14.2.1",
"vue-template-compiler": "^2.4.4",
"webpack": "^3.8.1",
"webpack-stats-plugin": "^0.2.1",
"x-config-deploy": "^0.0.3"
},
"engines": {
Expand Down
125 changes: 0 additions & 125 deletions webpack.config.js

This file was deleted.

0 comments on commit c4a4744

Please sign in to comment.