This is my experiment with monorepo. It should make code reuse between apps easier, and it should make it easier to start new apps.
Current setup is
root
apps/
tvhelper/
...
packages/
component/
...
The apps folder contains my apps, and packages contains packages that support the apps. Probably I should merge them into a structure like 🤔
root
src/
tvhelper/
component/
Clone the repo and do yarn install
.
Apps can be run from the monorepo root like yarn workspace @tbergq/tvhelper dev
, or you can navigate to the workspace and do yarn dev
.
The monorepo will by default only lint the files you have changed. Run yarn lint --all
if you want to lint all files. This is useful when you change an eslint rule, or upgrade eslint it self.
The tests will by default only test dirty workspaces
, in other words, only workspaces affected by your changes. If you wish to run all tests, please do yarn test --all