Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 978 Bytes

process-development.md

File metadata and controls

27 lines (16 loc) · 978 Bytes

Development process

This project makes use of npm workspaces.

Installation

In the project root, run:

npm i

This will install all dependencies for all workspaces. No need to install in any subdirectories.

Development

To watch changes in source code for specific packages (e.g. core and server), run:

npm run dev core server

When you make changes to these package's source code, Rollup will notice and re-bundle them.

Then navigate to an example project and run the npm run build or npm run dev commands as per usual. Example project dependencies will automagically be imported from the relevant package workspace, removing the need for npm link.

If you are working with a site outside of a workspace, then you'll still need to npm link. Make sure you're using the same Node version in the terminal windows you use since npm link works by symlinking to specific Node versions.