Epic
This is an Epic which will track implementation of issues pointed out in following documents:
Problem
- need to build before run/test/demo
- unified/explicit TSConfigs
- missing co-located demos via storybook
Solution
- we'll use TSConfig path aliases as the only source of truth for converged components.
Implementation:
Pre-requirements
Requirements:
Risks (Rabbit holes)
- No idea about plop AST capabilities (might get into issues when I'll need to add new package to
monorepoRoot/jest.config.js)
- plop is not very testable AFAIR (will need to try it out)
Out of scope (No-gos)
- using solution TS config style (project references per package) to explicitly distinguish between environments (story/implementation/test)
- revamping all npm:scripts and how we build/publish
- use babel for transpilation
- use babel-jest for testing
- use rollup as main bundler
Epic
This is an Epic which will track implementation of issues pointed out in following documents:
Problem
Solution
Implementation:
Pre-requirements
Requirements:
tsconfig.base.jsonwith all existing converged component paths (chore: create new tsconfig.base with path aliases #16976)- for
npm:testuse jest binary directly insteadjust-scriptnpm:startuse storybook binary directly insteadjust-script<monorepoRoot>/.storybook<packageFolder>/.storybook[ ] implement root storybook app (running it will render all converged stories)<monorepoRoot>/apps/storybook- 💡 this was applied on react-components package. Additional setup will be needed for react-components -> will be implemented in separate issue/PR
- should update tsconfig.base.json#paths
- should update jest.config.js projects
Risks (Rabbit holes)
monorepoRoot/jest.config.js)Out of scope (No-gos)