-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
build: add secondary entries #3234
Conversation
Circular importsThese modules have circular imports:
Reasons for circular imports are the same: component B wants to know if it's wrapped in component A:
CSS
Official website
|
803c5d7
to
8e51b77
Compare
Deploy preview for ng-zorro-master ready! Built with commit 3982d19 |
2e90d53
to
789d532
Compare
Codecov Report
@@ Coverage Diff @@
## master #3234 +/- ##
==========================================
+ Coverage 97.51% 97.52% +<.01%
==========================================
Files 562 607 +45
Lines 11852 11864 +12
Branches 866 867 +1
==========================================
+ Hits 11558 11570 +12
Misses 183 183
Partials 111 111
Continue to review full report at Codecov.
|
@vthinkxie stackblitz 能改成按需引入吗?这样可能会提高加载速度,也许还能暴露一些 bug,可以先发 next 测试一下 |
可以的,你们先review完,我这边还有一些工作,合并完之后可以先发next |
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.
avatar 组件 .spec.ts 文件改漏了
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.
core/style/index.less 也需要编译,并且在 【快速上手/二级入口】 中说明,因为里面对有些组件样式进行了覆盖。
a504b55
to
093d291
Compare
d53eb47
to
bbdf0e6
Compare
c443b15
to
ba28816
Compare
close NG-ZORRO#700 fix: fix imports in components and specs fix: circular import of tree and tree-select fix(module:menu,dropdown): fix circular import fix(module:*): fix imports build: fix build build: fix primary important docs: fix doc site build fix: build build: add css secondary entries docs: update doc fix: imports in tests fix: fix updatehostservice in submenu component docs: change docs on gettings started docs: specify version fix: fix styles and update docs docs: update docs fix: fix tooltip and patch files build: fix primary entry fix: core export bug fix: fix nz_i18n injection error fix: fix dropdownservice provide position fix: fix missing import docs: fix CONTRIBUTING.md fix
32b5c0c
to
4068e5b
Compare
* build: add secondary entries close NG-ZORRO#700 fix: fix imports in components and specs fix: circular import of tree and tree-select fix(module:menu,dropdown): fix circular import fix(module:*): fix imports build: fix build build: fix primary important docs: fix doc site build fix: build build: add css secondary entries docs: update doc fix: imports in tests fix: fix updatehostservice in submenu component docs: change docs on gettings started docs: specify version fix: fix styles and update docs docs: update docs fix: fix tooltip and patch files build: fix primary entry fix: core export bug fix: fix nz_i18n injection error fix: fix dropdownservice provide position fix: fix missing import docs: fix CONTRIBUTING.md fix * fix: fix import in breadcrumb * fix: some lint * fix: some lint * fix: less import in component.less * docs: fix some docs * docs: notice ngzorroantdmodule
* build: add secondary entries close NG-ZORRO#700 fix: fix imports in components and specs fix: circular import of tree and tree-select fix(module:menu,dropdown): fix circular import fix(module:*): fix imports build: fix build build: fix primary important docs: fix doc site build fix: build build: add css secondary entries docs: update doc fix: imports in tests fix: fix updatehostservice in submenu component docs: change docs on gettings started docs: specify version fix: fix styles and update docs docs: update docs fix: fix tooltip and patch files build: fix primary entry fix: core export bug fix: fix nz_i18n injection error fix: fix dropdownservice provide position fix: fix missing import docs: fix CONTRIBUTING.md fix * fix: fix import in breadcrumb * fix: some lint * fix: some lint * fix: less import in component.less * docs: fix some docs * docs: notice ngzorroantdmodule
* build: add secondary entries close NG-ZORRO#700 fix: fix imports in components and specs fix: circular import of tree and tree-select fix(module:menu,dropdown): fix circular import fix(module:*): fix imports build: fix build build: fix primary important docs: fix doc site build fix: build build: add css secondary entries docs: update doc fix: imports in tests fix: fix updatehostservice in submenu component docs: change docs on gettings started docs: specify version fix: fix styles and update docs docs: update docs fix: fix tooltip and patch files build: fix primary entry fix: core export bug fix: fix nz_i18n injection error fix: fix dropdownservice provide position fix: fix missing import docs: fix CONTRIBUTING.md fix * fix: fix import in breadcrumb * fix: some lint * fix: some lint * fix: less import in component.less * docs: fix some docs * docs: notice ngzorroantdmodule
close #700
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #700
Users could only import
NgZorroAntdModule
to their modules, thus bundles are not optimized enough for projects that only use several the components.What is the new behavior?
Secondary modules and entries are available now. Say a user only wants to render a
NzButton
on the screen, he can importNzButtonModule
instead of `NgZorroAntdModule. Building is faster and the bundle's size is reduced from 432KB to 242KB.Does this PR introduce a breaking change?
Other information