- No React, just some tokens in
theme
- The first TS attempt
- Docs with Better Docs
- Lerna monorepo
- Introduces the linear and modular scale
- Nothing really
A design system for Os Equi in React.
- Every package / tool added introduces infinite complexity.
- The examples are plenty, occuring daily over the past weeks or months. The latest is: jestjs/jest#9021, an open Jest error. Tests run fine in their repo but broke sometimes when run from a monorepo root.
- The general DX workflow is:
- You figure out you need something.
- Try a lot of packages until you find the best.
- Read lots of posts how to make it work.
- Make it work, finally,
- Then it breaks in a new context when you've added a new tool.
- This gives continuous frustration + extends project time infinitely.
lerna create <package-name>
- Remove
__tests__
- Add
tsconfig.json
- Update the
package.json
. lerna bootstrap
- Add code into
/src
yarn tsc
yarn test
yarn docs
yarn readme
- Run the global task:
"tsc": "lerna exec --parallel -- tsc --watch"
- Which needs the local
tsconfig.json
files for the relativeoutDir
(./lib
) - The global
tsconfig.json
must exclude all.test.ts
files, otherwise the tests will be compiled too.
- Run the global task:
"test": "yarn jest --watchAll",
- Run the global task:
"readme": "lerna exec --parallel -- yarn readme",
- This will generate the README from the compiled
.js
. Make sure first the.ts
files ar ecompile dto.js
the generate the README. - If want to generate from
.ts
change the local task to :"readme": "jsdoc2md --configure ../../jsdoc2md.json src/breakpoints.ts > README.md"
- For now generating from
js
makes a better result than generating from.ts
- Run the global task:
"docs": "jsdoc -c jsdoc.json",