We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by wewoor November 24, 2021 拆分 src 源码为多个子包,后期可单独发布 ui、react 等不同的包,目录结构类似:
├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README-koKR.md ├── README-zhCN.md ├── README.md ├── babel.config.json ├── build ├── codecov.yml ├── commitlint.config.js ├── coverage ├── docs ├── jest.config.js ├── mock ├── node_modules ├── package.json ├── packages ├── common ├── react ├── ui ├── ide ├── stories ├── test ├── tsconfig.base.json ├── tsconfig.build.json ├── tsconfig.json ├── website └── yarn.lock
The text was updated successfully, but these errors were encountered:
技术选型:pnpm + turbo 拆依赖包如下:
@dtinsight/molecule
@dtinsight/molecule/glue
@dtinsight/molecule/ide
@dtinsight/molecule/ui
@dtinsight/molecule/website
@dtinsight/molecule/common
@dtinsight/molecule/extensions
对应目录结构如下
├── ... ├── packages ├── molecule # 对应依赖包为 `@dtinsight/molecule` ├── glue # `@dtinsight/molecule/glue` ├── ui # `@dtinsight/molecule/ui` ├── ide # `@dtinsight/molecule/ide` ├── common # `@dtinsight/molecule/common` ├── ...
对用户侧的影响: 期望用户依然通过 import xxx from '@dtinsight/molecule',故无影响 对开发侧的影响:
start
build
Sorry, something went wrong.
@mortalYoung webiste 应该不用做 package 的抽象。拆包更多还是为了后面需要独立发包来考虑。 extensions 我觉得可以多考虑下。
webiste
extensions
那我再改下
mortalYoung
Successfully merging a pull request may close this issue.
Discussed in #681
Originally posted by wewoor November 24, 2021
拆分 src 源码为多个子包,后期可单独发布 ui、react 等不同的包,目录结构类似:
├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README-koKR.md ├── README-zhCN.md ├── README.md ├── babel.config.json ├── build ├── codecov.yml ├── commitlint.config.js ├── coverage ├── docs ├── jest.config.js ├── mock ├── node_modules ├── package.json ├── packages ├── common ├── react ├── ui ├── ide ├── stories ├── test ├── tsconfig.base.json ├── tsconfig.build.json ├── tsconfig.json ├── website └── yarn.lock
The text was updated successfully, but these errors were encountered: