-
Notifications
You must be signed in to change notification settings - Fork 2
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
huixisheng
authored and
huixisheng
committed
Mar 23, 2018
1 parent
88b5bc2
commit 22d9eb9
Showing
15 changed files
with
15,960 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"presets": [ | ||
["env", { | ||
"targets": { | ||
"browsers": [ | ||
"Android >= 4.0", | ||
"ios >= 6", | ||
"Edge >= 10", | ||
"Firefox >= 20", | ||
"Safari >= 6", | ||
"Chrome >= 12", | ||
"ChromeAndroid >= 4.0", | ||
"QQAndroid >= 1.2" | ||
] | ||
} | ||
}] | ||
] | ||
} |
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,24 @@ | ||
# EditorConfig is awesome: <a onclick="javascript:pageTracker._trackPageview('/outgoing/EditorConfig.org');" href="http://EditorConfig.org">http://EditorConfig.org</a> | ||
|
||
# https://github.com/Jocs/EditorConfig_guideline | ||
# http://blog.csdn.net/echo_follow_heart/article/details/48314523 | ||
# https://github.com/cssmagic/blog/issues/22 | ||
|
||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = false | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,html,css,json}] | ||
|
||
tab_width = 2 | ||
indent_style = space | ||
indent_size = 2 |
Empty file.
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,37 @@ | ||
module.exports = { | ||
root: true, | ||
// parser: 'babel-eslint', | ||
// parserOptions: { | ||
// sourceType: 'module' | ||
// }, | ||
extends: 'style-guide', | ||
plugins: [ | ||
|
||
], | ||
env: { | ||
browser: true, | ||
node: true, | ||
mocha: true, | ||
}, | ||
globals: { | ||
CONFIG: true, | ||
}, | ||
settings: { | ||
|
||
}, | ||
rules: { | ||
'wrap-iife': ['error', 'any'], | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
// This rule warns the usage of `console` | ||
// 不禁用 console | ||
'no-console': 'off', | ||
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
// 'no-unused-vars': 'off', | ||
'global-require': 'off', | ||
'prefer-destructuring': 'off', | ||
// https://eslint.cn/docs/rules/guard-for-in | ||
'guard-for-in': 'off', | ||
// specify the maximum length of a line in your program | ||
}, | ||
}; |
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,4 @@ | ||
.DS_Store | ||
node_modules/ | ||
dist/ | ||
npm-debug.log |
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,28 @@ | ||
|
||
# <type类型>(<scope提交代码影响范围>): <subject主题,概括提交的内容> | ||
# | ||
# <body>用于详细描述本次变更的内容 | ||
# | ||
# <footer>提供解决问题的文章地址或者测试的链接地址 | ||
# 例如: closes #traup_id fix #traup_id http://test.h5.cosmeapp.net/group/thread/250411 | ||
# | ||
# <type类型> | ||
# build: 构建工具生成资源 | ||
# feat: 新功能 | ||
# fix : 修补bug | ||
# docs: 文档 | ||
# style: 不影响代码含义的变化(空白,格式化,缺少分号等) | ||
# refactor: 代码更改,既不修复错误也不添加功能 | ||
# test: 添加缺失测试或更正现有测试 | ||
# perf: 改进性能的代码更改 | ||
# chore: 构建过程或辅助工具的变动(范围:gulp,webpack,npm) | ||
# ci: 更改我们的持续集成文件和脚本(范围:Jenkins Travis) | ||
# | ||
# <scope提交代码影响范围。如果存在多个用、分割> | ||
# ops、h5、(api|apiApp)、mhome、library、config(配置修改)、scripts、b2b、shop、apiClock、apiDocs、 | ||
# | ||
# https://segmentfault.com/a/1190000004282514 | ||
# https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-git-commit-guidelines | ||
# https://www.phodal.com/blog/how-to-write-a-better-git-commit-message/ | ||
# | ||
# |
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,2 @@ | ||
* | ||
!README.md |
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,2 +1,3 @@ | ||
# wepy-plugin-image | ||
wepy插件根据图片大小是否转base64、上传七牛 | ||
|
||
> wepy插件根据图片大小是否转base64、上传七牛 |
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,50 @@ | ||
// eslint-disable | ||
module.exports = { | ||
extends: ['@commitlint/config-angular'], | ||
rules: { | ||
'body-leading-blank': [1, 'always'], // body开始于空白行 | ||
'footer-leading-blank': [1, 'always'], // footer开始于空白行 | ||
'header-max-length': [2, 'always', 72], | ||
'scope-case': [2, 'always', 'camel-case'], // scope驼峰 | ||
'subject-empty': [2, 'never'], // subjec不为空 | ||
'subject-full-stop': [2, 'never', '.'], // subject结尾不加'.' | ||
'subject-tense': [1, 'always', ['present-imperative']], //以动词开头,使用第一人称现在时,比如change,而不是changed或changes | ||
'type-case': [2, 'always', 'lowerCase'], // type小写 | ||
'type-empty': [2, 'never'], // type不为空 | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'ci', // 更改我们的持续集成文件和脚本(示例范围:Travis,Circle,BrowserStack,SauceLabs) | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test' | ||
] | ||
] | ||
} | ||
}; | ||
/** | ||
* ref | ||
* - https://mrzhang123.github.io/2017/10/18/git-commint-norm/ | ||
* - https://www.phodal.com/blog/how-to-write-a-better-git-commit-message/ | ||
* - http://marionebl.github.io/commitlint/#/reference-rules | ||
*/ | ||
/** | ||
Must be one of the following: | ||
feat: A new feature | ||
fix: A bug fix | ||
docs: Documentation only changes | ||
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | ||
refactor: A code change that neither fixes a bug nor adds a feature | ||
perf: A code change that improves performance | ||
test: Adding missing or correcting existing tests | ||
chore: Changes to the build process or auxiliary tools and libraries such as documentation generation | ||
*/ |
Oops, something went wrong.