Skip to content
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: support init template from npm #10833

Merged
merged 5 commits into from
Mar 23, 2023
Merged

Conversation

fz6m
Copy link
Contributor

@fz6m fz6m commented Mar 23, 2023

支持用 --template 初始化 npm 包的模板项目,以便支持 #10805 的 electron 需求。

  pnpm create umi --template electron

模板格式:

  • umi-xxx-template

  • @umijs/xxx-template

不精确指定会查找。

暂不支持注入数据,后续再支持。

@vercel
Copy link

vercel bot commented Mar 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
umi ⬜️ Ignored (Inspect) Visit Preview Mar 23, 2023 at 2:11PM (UTC)

@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Patch coverage: 24.21% and project coverage change: -0.21 ⚠️

Comparison is base (ad82b89) 29.49% compared to head (cc59711) 29.28%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10833      +/-   ##
==========================================
- Coverage   29.49%   29.28%   -0.21%     
==========================================
  Files         464      469       +5     
  Lines       14035    14179     +144     
  Branches     3304     3336      +32     
==========================================
+ Hits         4139     4153      +14     
- Misses       9204     9319     +115     
- Partials      692      707      +15     
Impacted Files Coverage Δ
packages/create-umi/src/template.ts 10.71% <10.71%> (ø)
packages/create-umi/src/index.ts 56.48% <43.58%> (-3.52%) ⬇️

... and 4 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sorrycc sorrycc merged commit e9b29bf into umijs:master Mar 23, 2023
@xiaohuoni
Copy link
Member

卧槽,角度清奇!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants