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: add individual declaration task #666

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

XGHeaven
Copy link
Collaborator

  • 新增一个独立的 declaration 任务,专门用于构建声明文件
  • 此任务和其他任务并行运行,提升构建速度,拿单测测试,大约可以用 8.04s 提升到 6.69s。
  • 新的任务支持两种模式
    • 传统的方式,将声明文件直接写入到各个 transform 的 format 的产物中
    • 单例的方式,将声明文件只写入到统一的 typings 文件内,不再和 trasnform 的任务关联,也就是说没有 transform 任务的时候也可以进行构建声明文件
    • 但是第二种对 alias 处理有一些问题,tsc-alias 这个包强依赖构建产物,导致现阶段依旧要和 transform 任务绑定。后续尝试替换一下这个包

Copy link

pkg-pr-new bot commented Nov 13, 2024

Open in Stackblitz

More templates

@ice/create-pkg

pnpm add https://pkg.pr.new/ice-lab/icepkg/@ice/create-pkg@666

@ice/pkg

pnpm add https://pkg.pr.new/ice-lab/icepkg/@ice/pkg@666

@ice/pkg-plugin-docusaurus

pnpm add https://pkg.pr.new/ice-lab/icepkg/@ice/pkg-plugin-docusaurus@666

ice-npm-utils

pnpm add https://pkg.pr.new/ice-lab/icepkg/ice-npm-utils@666

@ice/pkg-plugin-rax-component

pnpm add https://pkg.pr.new/ice-lab/icepkg/@ice/pkg-plugin-rax-component@666

@ice/pkg-plugin-jsx-plus

pnpm add https://pkg.pr.new/ice-lab/icepkg/@ice/pkg-plugin-jsx-plus@666

@ice/remark-react-docgen-docusaurus

pnpm add https://pkg.pr.new/ice-lab/icepkg/@ice/remark-react-docgen-docusaurus@666

commit: 69e5a01

@XGHeaven XGHeaven merged commit 073a6cb into main Nov 15, 2024
4 checks passed
@XGHeaven XGHeaven deleted the feat/individual-declaration branch November 15, 2024 08:48
@XGHeaven XGHeaven mentioned this pull request Nov 15, 2024
17 tasks
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.

2 participants