-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
13 changed files
with
17,135 additions
and
15,700 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,46 @@ | ||
'use strict' | ||
module.exports = { | ||
types: [ | ||
{ value: '✨ feat', name: '新增: 新的内容' }, | ||
{ value: '🎨 fix', name: '修复: 修复一个Bug' }, | ||
{ value: '📝 docs', name: '文档: 变更的只有文档' }, | ||
{ value: '💄 style', name: '格式: 空格, 分号等格式修复' }, | ||
{ value: '♻️ refactor', name: '重构: 代码重构,注意和特性、修复区分开' }, | ||
{ value: '⚡️ pref', name: '性能: 提升性能' }, | ||
{ value: '✅ test', name: '测试: 添加一个测试' }, | ||
{ value: '🔧 util', name: '工具: 开发工具变动(构建、脚手架工具等)' }, | ||
{ value: '⏪ revert', name: '回滚: 代码回退' } | ||
], | ||
// scopes: [ | ||
// { name: "leetcode" }, | ||
// { name: "javascript" }, | ||
// { name: "typescript" }, | ||
// { name: "Vue" }, | ||
// { name: "node" }, | ||
// ], | ||
// it needs to match the value for field type. Eg.: 'fix' | ||
/* scopeOverrides: { | ||
fix: [ | ||
{name: 'merge'}, | ||
{name: 'style'}, | ||
{name: 'e2eTest'}, | ||
{name: 'unitTest'} | ||
] | ||
}, */ | ||
// override the messages, defaults are as follows | ||
messages: { | ||
type: '选择一种你的提交类型:', | ||
scope: '选择一个scope (可选):', | ||
// used if allowCustomScopes is true | ||
customScope: 'Denote the SCOPE of this change:', | ||
subject: '短说明:\n', | ||
body: '长说明,使用"|"换行(可选):\n', | ||
breaking: '非兼容性说明 (可选):\n', | ||
footer: '关联关闭的issue,例如:#31, #34(可选):\n', | ||
confirmCommit: '确定提交说明?(yes/no)' | ||
}, | ||
allowCustomScopes: true, | ||
allowBreakingChanges: ['特性', '修复'], | ||
// limit subject length | ||
subjectLimit: 100 | ||
} |
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,4 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx}": ["prettier --write .", "eslint --fix", "git add"], | ||
"*.md": ["prettier --write"] | ||
} |
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,9 +1,9 @@ | ||
registry=https://registry.npmmirror.com | ||
disturl=https://npmmirror.com/mirrors/node/ | ||
sass_binary_site=http://npm.taobao.org/mirrors/node-sass/ | ||
sass_binary_site=http://npmmirror.com/mirrors/node-sass/ | ||
phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/ | ||
profiler_binary_host_mirror=https://npmmirror.com/mirrors/node-inspector/ | ||
fse_binary_host_mirror=https://npmmirror.com/mirrors/fsevents/ | ||
chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver/ | ||
selenium_cdnurl=http://npm.taobao.org/mirrorss/selenium/ | ||
chromedriver_cdnurl=http://npmmirror.com/mirrors/chromedriver/ | ||
selenium_cdnurl=http://npmmirror.com/mirrorss/selenium/ | ||
electron_mirror=https://npmmirror.com/mirrors/electron/ |
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 +1 @@ | ||
10 | ||
14 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.