-
Notifications
You must be signed in to change notification settings - Fork 83
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 2796cf0
Showing
67 changed files
with
9,333 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,14 @@ | ||
# Don't allow people to merge changes to these generated files, because the result | ||
# may be invalid. You need to run "rush update" again. | ||
pnpm-lock.yaml merge=text | ||
shrinkwrap.yaml merge=binary | ||
npm-shrinkwrap.json merge=binary | ||
yarn.lock merge=binary | ||
|
||
# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic | ||
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor | ||
# may also require a special configuration to allow comments in JSON. | ||
# | ||
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088 | ||
# | ||
*.json linguist-language=JSON-with-Comments |
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 @@ | ||
name: Bug 反馈 | ||
description: 提交 Bug 反馈 | ||
labels: [bug] | ||
body: | ||
- type: markdown | ||
id: preface | ||
attributes: | ||
value: | | ||
感谢你花时间填写此错误报告!在开始之前,我们非常推荐阅读一遍[《Elog 常见问题》](https://elog.1874.cool/notion/qa),这会在很大程度上提高我们彼此的效率。 | ||
- type: markdown | ||
id: environment | ||
attributes: | ||
value: "## 环境信息" | ||
- type: input | ||
id: version | ||
attributes: | ||
label: "你当前使用的Elog版本" | ||
description: "运行 `elog --version` 命令获取当前 Elog 版本。" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: config | ||
attributes: | ||
label: "Elog配置文件" | ||
description: "请提供你Elog 配置文件内容,一般为`elog.config.ts`。但请勿提交你的账号相关敏感信息" | ||
render: javascript | ||
validations: | ||
required: true | ||
- type: markdown | ||
id: details | ||
attributes: | ||
value: "## 详细信息" | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: "发生了什么?" | ||
description: "为了方便我们管理,请不要在同一个 issue 下报告多个不相关的问题。" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: "Elog错误日志" | ||
description: "请复制并粘贴任何相关的日志输出。这将自动格式化为代码,因此无需反引号。" | ||
render: shell | ||
- type: textarea | ||
id: additional-information | ||
attributes: | ||
label: "附加信息" | ||
description: "如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。" |
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,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 对 Elog 有其他想法 | ||
url: https://github.com/LetTTGACO/elog/discussions | ||
about: 如果你对 Elog 有其他想法,欢迎到 Elog 讨论区讨论。 |
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,35 @@ | ||
name: 新特性建议 | ||
description: 提交新特性建议 | ||
labels: [enhancement] | ||
body: | ||
- type: markdown | ||
id: preface | ||
attributes: | ||
value: "你好!感谢你为 Elog 提交新特性建议。在开始之前,我们非常推荐阅读一遍[《Elog文档》](https://elog.1874.cool),这会在很大程度上提高我们彼此的效率。" | ||
- type: markdown | ||
id: environment | ||
attributes: | ||
value: "## 环境信息" | ||
- type: input | ||
id: version | ||
attributes: | ||
label: "你当前使用的Elog版本" | ||
description: "运行 elog --version 命令获取当前 Elog 版本。" | ||
validations: | ||
required: true | ||
- type: markdown | ||
id: details | ||
attributes: | ||
value: "## 详细信息" | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: "描述一下此特性" | ||
description: "为了方便我们管理,请不要在同一个 issue 下提交多个没有相关性的特性。" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additional-information | ||
attributes: | ||
label: "附加信息" | ||
description: "如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。" |
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,27 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ "1.0" ] | ||
pull_request: | ||
branches: [ "1.0" ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- name: Git config user | ||
uses: snow-actions/git-config-user@v1.0.0 | ||
with: | ||
name: LetTTGACO | ||
email: 1225751694@qq.com | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Verify Change Logs | ||
run: node common/scripts/install-run-rush.js change --verify | ||
- name: Rush Install | ||
run: node common/scripts/install-run-rush.js install | ||
- name: Rush rebuild | ||
run: node common/scripts/install-run-rush.js rebuild --verbose --production |
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,76 @@ | ||
# Logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# OS X temporary files | ||
.DS_Store | ||
|
||
# IntelliJ IDEA project files; if you want to commit IntelliJ settings, this recipe may be helpful: | ||
# https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore | ||
.idea/ | ||
*.iml | ||
|
||
# Rush temporary files | ||
common/deploy/ | ||
common/temp/ | ||
common/autoinstallers/*/.npmrc | ||
**/.rush/temp/ | ||
*.lock | ||
|
||
# Heft temporary files | ||
.cache | ||
.heft | ||
dist |
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,106 @@ | ||
#------------------------------------------------------------------------------------------------------------------- | ||
# Keep this section in sync with .gitignore | ||
#------------------------------------------------------------------------------------------------------------------- | ||
# Logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# OS X temporary files | ||
.DS_Store | ||
|
||
# Rush temporary files | ||
common/deploy/ | ||
common/temp/ | ||
common/autoinstallers/*/.npmrc | ||
**/.rush/temp/ | ||
packages/*/dist | ||
packages/*/temp | ||
examples/*/dist | ||
examples/*/temp | ||
|
||
# Heft | ||
.heft | ||
|
||
# private | ||
packages/factory-designer/app-template/config | ||
packages/factory-designer/app-template/engine.html | ||
packages/factory-designer/app-template/index.html | ||
packages/generator/src/generate/component-aggregation.ts | ||
|
||
|
||
#------------------------------------------------------------------------------------------------------------------- | ||
# Prettier-specific overrides | ||
#------------------------------------------------------------------------------------------------------------------- | ||
|
||
|
||
# Rush files | ||
common/changes/ | ||
common/scripts/ | ||
common/config/ | ||
CHANGELOG.* | ||
|
||
# Package manager files | ||
pnpm-lock.yaml | ||
yarn.lock | ||
package-lock.json | ||
shrinkwrap.json | ||
|
||
# Build outputs | ||
dist | ||
lib | ||
|
||
# Prettier reformats code blocks inside Markdown, which affects rendered output | ||
*.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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
module.exports = { | ||
// 一行最多 100 字符 | ||
printWidth: 100, | ||
// 使用 2 个空格缩进 | ||
tabWidth: 2, | ||
// 不使用缩进符,而使用空格 | ||
useTabs: false, | ||
// 行尾需要有分号 | ||
semi: false, | ||
// 使用单引号 | ||
singleQuote: true, | ||
// 对象的 key 仅在必要时用引号 | ||
quoteProps: 'as-needed', | ||
// jsx 不使用单引号,而使用双引号 | ||
jsxSingleQuote: false, | ||
// 末尾需要有逗号 | ||
trailingComma: 'all', | ||
// 大括号内的首尾需要空格 | ||
bracketSpacing: true, | ||
// jsx 标签的反尖括号需要换行 | ||
bracketSameLine: false, | ||
// 箭头函数,只有一个参数的时候,也需要括号 | ||
arrowParens: 'always', | ||
// 每个文件格式化的范围是文件的全部内容 | ||
rangeStart: 0, | ||
rangeEnd: Infinity, | ||
// 不需要写文件开头的 @prettier | ||
requirePragma: false, | ||
// 不需要自动在文件开头插入 @prettier | ||
insertPragma: false, | ||
// 使用默认的折行标准 | ||
proseWrap: 'preserve', | ||
// 根据显示样式决定 html 要不要折行 | ||
htmlWhitespaceSensitivity: 'css', | ||
// vue 文件中的 script 和 style 内不用缩进 | ||
vueIndentScriptAndStyle: false, | ||
// 换行符使用 lf | ||
endOfLine: 'lf', | ||
// 格式化嵌入的内容 | ||
embeddedLanguageFormatting: 'auto', | ||
// html, vue, jsx 中每个属性占一行 | ||
singleAttributePerLine: false, | ||
}; |
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,9 @@ | ||
{ | ||
"name": "rush-prettier", | ||
"version": "1.0.0", | ||
"private": true, | ||
"dependencies": { | ||
"prettier": "^2.7.1", | ||
"pretty-quick": "^3.1.3" | ||
} | ||
} |
Oops, something went wrong.