-
Notifications
You must be signed in to change notification settings - Fork 14
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
0 parents
commit 40f4062
Showing
34 changed files
with
19,541 additions
and
0 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,7 @@ | ||
/.nyc_output | ||
/coverage | ||
/node_modules | ||
/tests/fixtures | ||
/sign | ||
/dist | ||
/build |
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,7 @@ | ||
/.nyc_output | ||
/coverage | ||
/node_modules | ||
/sign | ||
/dist | ||
/build | ||
.husky/ |
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,16 @@ | ||
node_modules | ||
build | ||
dist | ||
|
||
.DS_Store | ||
Thumbs.db | ||
|
||
*.log | ||
*.iml | ||
.idea/ | ||
.vscode/ | ||
|
||
.nyc_output | ||
/coverage | ||
|
||
/logs |
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,22 @@ | ||
module.exports = { | ||
printWidth: 100, // 指定代码长度,超出换行 | ||
tabWidth: 2, // tab 键的宽度 | ||
useTabs: false, // 使用空格替代tab | ||
semi: false, // 结尾加上分号 | ||
singleQuote: false, // 使用单引号 | ||
quoteProps: "consistent", // 要求对象字面量属性是否使用引号包裹,(‘as-needed’: 没有特殊要求,禁止使用,'consistent': 保持一致 , preserve: 不限制,想用就用) | ||
trailingComma: "none", // 不添加对象和数组最后一个元素的逗号 | ||
bracketSpacing: false, // 对象中对空格和空行进行处理 | ||
jsxBracketSameLine: false, // 在多行JSX元素的最后一行追加 > | ||
requirePragma: false, // 是否严格按照文件顶部的特殊注释格式化代码 | ||
insertPragma: false, // 是否在格式化的文件顶部插入Pragma标记,以表明该文件被prettier格式化过了 | ||
proseWrap: "preserve", // 按照文件原样折行 | ||
htmlWhitespaceSensitivity: "ignore", // html文件的空格敏感度,控制空格是否影响布局 | ||
endOfLine: "auto", // 结尾是 \n \r \n\r auto | ||
overrides: [ | ||
{ | ||
files: "*.ux", | ||
options: {parser: "vue"} | ||
} | ||
] | ||
} |
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,44 @@ | ||
module.exports = { | ||
extends: [ | ||
"stylelint-config-standard", | ||
"stylelint-config-recess-order" | ||
// "stylelint-selector-bem-pattern" | ||
], | ||
ignoreFiles: ["node_modules", "test", "dist", "**/*.js"], | ||
rules: { | ||
"no-descending-specificity": null, | ||
"color-hex-case": "lower", | ||
"color-hex-length": "short", | ||
"at-rule-no-unknown": null, | ||
"block-no-empty": null, | ||
"selector-pseudo-class-no-unknown": [ | ||
true, | ||
{ | ||
ignorePseudoClasses: ["blur"] | ||
} | ||
], | ||
"property-no-unknown": [ | ||
true, | ||
{ | ||
ignoreProperties: [ | ||
"placeholder-color", | ||
"gradient-start", | ||
"gradient-center", | ||
"gradient-end", | ||
"caret-color", | ||
"selected-color", | ||
"block-color" | ||
] | ||
} | ||
], | ||
"max-line-length": null, | ||
// "indentation": 2, | ||
// "no-empty-source": null, | ||
"selector-type-no-unknown": [ | ||
true, | ||
{ | ||
ignoreTypes: ["selected-color", "block-color"] | ||
} | ||
] | ||
} | ||
} |
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 @@ | ||
# Lordly·阅读 | ||
|
||
## 简介 | ||
|
||
支持「开源阅读」规则的手环在线阅读工具 | ||
|
||
## 开发手册 | ||
|
||
### 1. 开发 | ||
|
||
``` | ||
npm install | ||
npm run start | ||
``` | ||
|
||
### 2. 构建 | ||
|
||
``` | ||
npm run build | ||
npm run release | ||
``` | ||
|
||
### 3. 调试 | ||
|
||
``` | ||
npm run watch | ||
``` | ||
### 4. 代码规范化配置 | ||
代码规范化可以帮助开发者在git commit前进行代码校验、格式化、commit信息校验 | ||
|
||
使用前提:必须先关联git | ||
|
||
macOS or Linux | ||
``` | ||
sh husky.sh | ||
``` | ||
|
||
windows | ||
``` | ||
./husky.sh | ||
``` | ||
|
||
|
||
## 了解更多 | ||
|
||
你可以通过我们的[官方文档](https://iot.mi.com/vela/quickapp)熟悉和了解快应用。 |
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,21 @@ | ||
module.exports = { | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"bug", // 此项特别针对bug号,用于向测试反馈bug列表的bug修改情况 | ||
"feat", // 新功能(feature) | ||
"fix", // 修补bug | ||
"docs", // 文档(documentation) | ||
"style", // 格式(不影响代码运行的变动) | ||
"refactor", // 重构(即不是新增功能,也不是修改bug的代码变动) | ||
"test", // 增加测试 | ||
"chore", // 构建过程或辅助工具的变动 | ||
"revert", // feat(pencil): add ‘graphiteWidth’ option (撤销之前的commit) | ||
"merge" // 合并分支, 例如: merge(前端页面): feature-xxxx修改线程地址 | ||
] | ||
] | ||
} | ||
} |
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,3 @@ | ||
npx husky install | ||
npx husky add .husky/pre-commit 'npx lint-staged' | ||
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}' |
Oops, something went wrong.