-
Notifications
You must be signed in to change notification settings - Fork 2k
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 a889c99
Showing
156 changed files
with
8,741 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,16 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
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 @@ | ||
/examples |
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,17 @@ | ||
module.exports = { | ||
extends: [require.resolve('@umijs/fabric/dist/eslint')], | ||
rules: { | ||
'@typescript-eslint/prefer-interface': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }], | ||
'no-return-assign': 0, | ||
semi: ['error', 'always'], | ||
'no-confusing-arrow': 0, | ||
'no-console': 0, | ||
'max-len': ['error', { code: 120, ignoreComments: true, ignoreStrings: true }], | ||
// see https://github.com/prettier/prettier/issues/3847 | ||
'space-before-function-paren': ['error', { anonymous: 'never', named: 'never', asyncArrow: 'always' }], | ||
'no-underscore-dangle': 0, | ||
'no-plusplus': 0, | ||
}, | ||
}; |
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 @@ | ||
export default { | ||
target: 'browser', | ||
esm: 'babel', | ||
cjs: 'babel', | ||
runtimeHelpers: true, | ||
extraBabelPlugins: [ | ||
[ | ||
'babel-plugin-import', | ||
{ | ||
libraryName: 'lodash', | ||
libraryDirectory: '', | ||
camel2DashComponentName: 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,29 @@ | ||
--- | ||
name: 'Bug report' | ||
about: 'Report a bug to help us improve' | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
## What happens? | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
## Mini Showcase Repository(REQUIRED) | ||
|
||
> Provide a mini GitHub repository which can reproduce the issue. | ||
<!-- https://github.com/YOUR_REPOSITORY_URL --> | ||
|
||
## How To Reproduce | ||
|
||
**Steps to reproduce the behavior:** 1. 2. | ||
|
||
**Expected behavior** 1. 2. | ||
|
||
## Context | ||
|
||
- **qiankun Version**: | ||
- **Platform Version**: | ||
- **Browser Version**: |
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,33 @@ | ||
--- | ||
name: '缺陷问题反馈' | ||
about: '反馈问题以帮助我们改进' | ||
title: '[Bug]请遵循下文模板提交问题,否则您的问题会被关闭' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
# 提问之前强烈建立您能先阅读一下[《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md) | ||
|
||
<!-- | ||
感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: | ||
--> | ||
|
||
## What happens? | ||
|
||
<!-- 清晰的描述下遇到的问题。--> | ||
|
||
## 最小可复现仓库 | ||
|
||
为节约大家的时间,无复现步骤的 ISSUE 会被关闭,提供之后再 REOPEN | ||
<!-- https://github.com/YOUR_REPOSITORY_URL --> | ||
|
||
## 复现步骤,错误日志以及相关配置 | ||
|
||
<!-- 请提供复现步骤,错误日志以及相关配置 --> | ||
<!-- 可以尝试不要锁版本,重新安装依赖试试先 --> | ||
|
||
## 相关环境信息 | ||
|
||
- **qiankun 版本** | ||
- **浏览器版本**: | ||
- **操作系统**: |
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,19 @@ | ||
--- | ||
name: 'Feature request' | ||
about: 'Suggest an idea for this project' | ||
title: '[Feature Request] say something' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
## Background | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
## Proposal | ||
|
||
Describe the solution you'd like, better to provide some pseudo code. | ||
|
||
## Additional context | ||
|
||
Add any other context or screenshots about the feature request here. |
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,20 @@ | ||
--- | ||
name: 'RFC Proposals' | ||
about: 'Provide a solution for this project' | ||
title: '[RFC] say something' | ||
labels: 'type: proposals' | ||
assignees: '' | ||
--- | ||
|
||
## 背景 | ||
|
||
> 描述你希望解决的问题的现状,附上相关的 issue 地址 | ||
## 思路 | ||
|
||
> 描述大概的解决思路,可以包含 API 设计和伪代码等 | ||
## 跟进 | ||
|
||
- [ ] some task | ||
- [ ] PR URL |
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,25 @@ | ||
<!-- | ||
Thank you for your pull request. Please review below requirements. | ||
Bug fixes and new features should include tests. | ||
Contributors guide: https://github.com/umijs/qiankun/blob/master/CONTRIBUTING.md | ||
感谢您贡献代码。请确认下列 checklist 的完成情况。 | ||
Bug 修复和新功能必须包含测试。 | ||
Contributors guide: https://github.com/umijs/qiankun/blob/master/CONTRIBUTING.md | ||
--> | ||
|
||
##### Checklist | ||
|
||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
|
||
- [ ] `npm test` passes | ||
- [ ] tests are included | ||
- [ ] documentation is changed or added | ||
- [ ] commit message follows commit guidelines | ||
|
||
##### Description of change | ||
|
||
<!-- Provide a description of the change below this comment. --> | ||
|
||
- any feature? | ||
- close https://github.com/umijs/qiankun/ISSUE_URL |
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,26 @@ | ||
name: qiankun - deploy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build | ||
env: | ||
NOW_DEPLOY: true | ||
run: | | ||
yarn install | ||
yarn docs:build | ||
- uses: amondnet/vercel-action@v19 | ||
id: vercel-deployment-production | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-token: ${{ secrets.ZEIT_TOKEN }} | ||
vercel-org-id: ${{ secrets.NOW_ORG_ID }} | ||
vercel-project-id: ${{ secrets.NOW_PROJECT_ID }} | ||
working-directory: dist | ||
vercel-args: '--prod' | ||
scope: umijs |
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,51 @@ | ||
name: Release notify | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send DingGroup1 Notify | ||
uses: zcong1993/actions-ding@master | ||
with: | ||
dingToken: ${{ secrets.DING_GROUP_1_TOKEN }} | ||
secret: ${{ secrets.DING_GROUP_1_SIGN }} | ||
body: | | ||
{ | ||
"msgtype": "markdown", | ||
"markdown": { | ||
"title": "qiankun ${{github.event.release.tag_name}} 发布公告", | ||
"text": "# qiankun [${{github.event.release.tag_name}}](${{github.event.release.html_url}}) 发布公告\n${{github.event.release.body}}", | ||
} | ||
} | ||
- name: Send DingGroup2 Notify | ||
uses: zcong1993/actions-ding@master | ||
with: | ||
dingToken: ${{ secrets.DING_GROUP_2_TOKEN }} | ||
secret: ${{ secrets.DING_GROUP_2_SIGN }} | ||
body: | | ||
{ | ||
"msgtype": "markdown", | ||
"markdown": { | ||
"title": "qiankun ${{github.event.release.tag_name}} 发布公告", | ||
"text": "# qiankun [${{github.event.release.tag_name}}](${{github.event.release.html_url}}) 发布公告\n${{github.event.release.body}}", | ||
} | ||
} | ||
- name: Send DingGroupInc Notify | ||
uses: zcong1993/actions-ding@master | ||
with: | ||
dingToken: ${{ secrets.DING_GROUP_INC_TOKEN }} | ||
secret: ${{ secrets.DING_GROUP_INC_SIGN }} | ||
body: | | ||
{ | ||
"msgtype": "markdown", | ||
"markdown": { | ||
"title": "qiankun ${{github.event.release.tag_name}} 发布公告", | ||
"text": "# qiankun [${{github.event.release.tag_name}}](${{github.event.release.html_url}}) 发布公告\n${{github.event.release.body}}", | ||
} | ||
} |
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 @@ | ||
pids | ||
logs | ||
node_modules | ||
npm-debug.log | ||
coverage/ | ||
run | ||
dist | ||
.DS_Store | ||
.nyc_output | ||
config.local.js | ||
.umi | ||
.umi-production | ||
.idea/ | ||
.cache | ||
yarn.lock | ||
es | ||
lib | ||
package-lock.json | ||
.eslintcache | ||
.history | ||
.now |
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,6 @@ | ||
/test/fixtures | ||
**/*.gif | ||
/dist | ||
/docs | ||
/es | ||
/lib |
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,6 @@ | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
...fabric.prettier, | ||
printWidth: 120, | ||
}; |
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,41 @@ | ||
language: node_js | ||
node_js: | ||
- lts/* | ||
install: | ||
- yarn install | ||
cache: | ||
directories: | ||
- node_modules | ||
script: | ||
- yarn ci | ||
- yarn docs:build | ||
|
||
#after_success: | ||
# - npm run codecov | ||
|
||
before_deploy: | | ||
function npm_dist_tag() { | ||
if [[ "$TRAVIS_TAG" = *"-"* ]]; then | ||
echo "next" | ||
else | ||
echo "latest" | ||
fi | ||
} | ||
deploy: | ||
- edge: true | ||
provider: npm | ||
email: [email protected] | ||
api_key: $NPM_AUTH_TOKEN | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
tag: $(npm_dist_tag) | ||
|
||
- provider: pages | ||
skip_cleanup: true | ||
local_dir: dist | ||
github_token: $GITHUB_TOKEN | ||
keep_history: true | ||
on: | ||
branch: master |
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 @@ | ||
import { defineConfig } from 'dumi'; | ||
|
||
export default defineConfig({ | ||
mode: 'site', | ||
hash: true, | ||
ssr: {}, | ||
publicPath: process.env.NOW_DEPLOY ? '/' : '/qiankun/', | ||
base: process.env.NOW_DEPLOY ? '/' : '/qiankun', | ||
resolve: { | ||
includes: ['docs'], | ||
previewLangs: [], | ||
}, | ||
locales: [ | ||
['en', 'English'], | ||
['zh', '中文'], | ||
], | ||
navs: { | ||
en: [ | ||
null, | ||
{ title: 'Changelog', path: 'https://github.com/umijs/qiankun/releases' }, | ||
{ title: '1.x', path: 'https://v1.qiankun.umijs.org/' }, | ||
{ title: 'GitHub', path: 'https://github.com/umijs/qiankun' }, | ||
], | ||
zh: [ | ||
null, | ||
{ title: '发布日志', path: 'https://github.com/umijs/qiankun/releases' }, | ||
{ title: '1.x', path: 'https://v1.qiankun.umijs.org/zh/' }, | ||
{ title: 'GitHub', path: 'https://github.com/umijs/qiankun' }, | ||
], | ||
}, | ||
metas: [ | ||
{ | ||
name: 'keywords', | ||
content: | ||
'microfrontend, micro frontend, micro frontends, micro-frontend, micro-frontends, microservice, javascript', | ||
}, | ||
], | ||
analytics: { | ||
ga: 'UA-157295698-1', | ||
baidu: '0f738d9b0ac90574c09183ea85bcfa2e', | ||
}, | ||
exportStatic: {}, | ||
logo: false, | ||
}); |
Oops, something went wrong.