Link KDS to Kolibri via webpack aliases rather than using yarn link #10847
Labels
help wanted
Open source contributors welcome
TAG: dev experience
Build performance, linting, debugging...
Add commands to Kolibri's package.json (e.g.
yarn run devserver-with-kds
andyarn run devserver-hot-with-kds
) that will run Kolibri's development server but with a localkolibri-design-system
repository (KDS) instead of node_modules KDS. Using these commands removes the need to useyarn link
completely for developing with a local version of KDS in Kolibri.This would also close #10809 since if a new approach works well for developers, we won't need to use
yarn link
anymore.Motivation
There's currently a problem with using
yarn link
to link KDS to Kolibri (#10809). Also,yarn link
is inefficient, especially when there's a need to switch between KDS version defined in Kolibri's package.json and local KDS frequently. I believe this would also help us to encourage contributors to work on KDS, since you'd need one simple command to run Kolibri with local KDS instead of several steps needed toyarn link
.Implementation
kolibri-design-system
that will resolve to a local location of the KDS repository (this should override node_modules KDS). You can see A better alternative to npm/yarn link for front-end web development.The text was updated successfully, but these errors were encountered: