-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create-qiankun #2700
Merged
Merged
feat: create-qiankun #2700
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
025a93b
feat: create-qiankun init
hakushinring 1fc049e
chore: change package name
b51c831
chore: setup
b6865e7
chore: init cli template
5ec6a26
chore: 还原 examples旧模板
e8523d0
chore: 重新上传模板删除子git信息
8dc4a56
feat: 开发创建主应用流程
5e03f8f
feat: create sub app
hakushinring de68cca
fix: 解决高版本execa打包后报错
96929f8
chore: resolve conflict
2e1b8d6
feat: render main application
e0dfc28
chore: add create Kind
931f7c3
chore: create sub app
hakushinring 7881a48
chore: 完善子应用创建逻辑,修改若干变量类型
fab2ae6
feat: 同时创建主子应用,注入子应用信息
d5b65a8
feat: 完善整体流程
f090561
chore: 添加注释
89ff3d2
chore: 增加应用模板
4696d33
chore: 包管理器类型区分pnpm和pnpm workspace
ad78d7b
chore: 去除vue项目报错的全屏提示
f2e7e84
chore: 统一模板启动命令
9b62bd8
chore: 添加调试 Readme
e344f84
chore: 修改 sub 变量名
1700bb7
chore: 添加子模板
520089c
Merge branch 'feat/create-qiankun' of github.com:hakushinring/qiankun…
cabf62c
chore: vite-vue rename
579528b
feat: 增加校验端口钩子
4c8219b
fix: 解决交互时取消程序依旧执行的问题
bb8f974
chore: pnpm 添加启动脚本
44c03c8
fix: 增加项目启动脚本
48408bf
feat: 增加react18主应用
772f54b
feat: monorepo add npmrc
89452c1
chore: subapp webpack config change
hakushinring 89a790e
Merge branch 'feat/create-subapp' into feat/create-qiankun
hakushinring d4a3d52
feat: template add qiankun dependencies
qiYuei a8e6683
Merge branch 'feat/create-qiankun' of https://github.com/hakushinring…
qiYuei cd478fa
fix: 调整模板渲染逻辑
qiYuei f5dfad7
chore: child app increase scoped
qiYuei 8f6ae30
chore: react18-sub add react router
hakushinring c56fba1
Merge branch 'feat/create-qiankun' of https://github.com/hakushinring…
qiYuei 9fe295e
feat: main app add check port script
qiYuei f8cd2fd
fix: main add check port script
qiYuei e5835e3
chore: 更新模板内容
qiYuei 1e3c79a
fix: react router
hakushinring 87781f9
chore: update ignore for create-qiankun
hakushinring 792a473
Merge branch 'next' into feat/create-qiankun
hakushinring 9681b70
Merge branch 'next' into fix-1209
hakushinring 8ad068c
feat: adjust plugin import and increase render component
qiYuei a391970
chore: add readme
qiYuei f856098
chore: increase .npmrc for vue
qiYuei 99cbb82
fix: reat18-sub config
hakushinring 9e8d439
Merge branch 'feat/create-qiankun' of github.com:hakushinring/qiankun…
hakushinring 11f4b15
chore: 删除无用模板
hakushinring 3f12d66
feat: increase umi templates
qiYuei c7094ca
chore: Merge branch
qiYuei 4bc59a3
chore: 优化vue主应用样式
qiYuei 9ee07e0
Merge remote-tracking branch 'upstream/next' into next
hakushinring 964446a
Merge branch 'next' into feat/create-qiankun
hakushinring f87cdf7
Create lovely-colts-decide.md
kuitos c6484d5
Merge remote-tracking branch 'upstream/next' into feat/create-qiankun
hakushinring c35e950
chore: change package name to create-qiankun
hakushinring 50f247b
chore: change version
hakushinring ac2e6bd
docs(changeset): feat: introduce qiankun scaffold
hakushinring 280d8d0
Merge branch 'next' of https://github.com/umijs/qiankun into feat/cre…
qiYuei 03b5015
chore: regenerate lock and increase clean script
qiYuei a2e539b
chore: update the version of qiankun related libraries for templates
qiYuei 30304fc
chore: Merge branch 'next' of into feat/create-qiankun
qiYuei 00a65d2
chore: change react18-main style
hakushinring fd0d28a
Merge branch 'feat/create-qiankun' of https://github.com/hakushinring…
qiYuei f146b17
chore: react18-main add router
qiYuei cf135ea
Update .changeset/empty-jars-vanish.md
kuitos 00f3c48
chore: update the readme recommended node version
qiYuei 1bdeef3
Merge branch 'feat/create-qiankun' of https://github.com/hakushinring…
qiYuei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,5 @@ | ||
--- | ||
'create-qiankun': minor | ||
--- | ||
|
||
feat: introduce qiankun scaffold |
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 @@ | ||
--- | ||
"@qiankunjs/create-qiankun": patch | ||
--- | ||
|
||
feat: introduce qiankun scaffold |
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,6 +1,7 @@ | ||
examples | ||
dist | ||
writable-dom | ||
template | ||
|
||
# TODO not linting test files temporary | ||
__tests__/ |
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
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 @@ | ||
export default { | ||
platform: 'node', | ||
cjs: { | ||
input: 'src', | ||
output: '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,65 @@ | ||
# @qiankunjs/create-qiankun | ||
|
||
`@qiankunjs/create-qiankun` 是一个为 [qiankun](https://github.com/umijs/qiankun) 微前端框架设计的脚手架功能。旨在快速启动示例项目,方便开发者快速上手。 | ||
|
||
## 功能 | ||
|
||
- 支持选择一个或多个子应用来创建一个新的项目 | ||
- 支持主,子应用路由模式 `(hash, history)` 选择 | ||
- 支持一键生成 `npm/yarn/pnpm/pnpm workspace` 工程 | ||
- 注入启动应用脚本以及端口冲突检测 | ||
|
||
## 环境要求 | ||
|
||
1. 建议使用 Node.js 版本 v18 或更高版本。,推荐使用 [fnm](https://github.com/Schniz/fnm) 管理 node 版本 | ||
|
||
## 安装 | ||
|
||
使用 npm: | ||
|
||
```bash | ||
npx create-qiankun@latest | ||
``` | ||
|
||
或使用 yarn: | ||
|
||
```bash | ||
yarn create qiankun@latest | ||
``` | ||
|
||
或使用 pnpm: | ||
|
||
```bash | ||
pnpm dlx create-qiankun@latest | ||
``` | ||
|
||
## 使用 | ||
|
||
## 模板列表 | ||
|
||
### 主应用模板 | ||
|
||
| 模板名称 | | | ||
| --------------- | --- | | ||
| React18+Webpack | | | ||
| Vue3+Webpack | | | ||
| React18+umi | | | ||
|
||
### 子应用模板 | ||
|
||
| 模板名称 | | | ||
| --------------- | --------------------------- | | ||
| React18+Webpack | | | ||
| React16+Webpack | | | ||
| Vue3+Webpack | | | ||
| Vue2+Webpack | ❗ 在 pnpm workspace 有问题 | | ||
| Vite+Vue3 | 🚧 建设中 | | ||
| Vite+React18 | 🚧 建设中 | | ||
|
||
## 贡献 | ||
|
||
欢迎任何形式的贡献!请提交 PR 或开启 issue 讨论。 | ||
|
||
## 许可证 | ||
|
||
MIT |
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": "create-qiankun", | ||
kuitos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"version": "0.0.1-rc.1", | ||
"description": "An easy way to start a qiankun project", | ||
"bin": { | ||
"create-qiankun": "./dist/index.js" | ||
}, | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
"dev": "father dev", | ||
"build": "father build" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"ejs": "^3.1.9", | ||
"execa": "^5.1.1", | ||
"fs-extra": "^10.1.0", | ||
"kolorist": "^1.8.0", | ||
"minimist": "^1.2.6", | ||
"prompts": "^2.4.2" | ||
}, | ||
"devDependencies": { | ||
"@types/ejs": "^3.1.3", | ||
"@types/fs-extra": "^11.0.2", | ||
"@types/minimist": "^1.2.3", | ||
"@types/prompts": "^2.4.4" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我重新add一下,版本号是不是应该先改成rc版发个测试