Creating a new component
To scaffold a new component run the following command (replace my-component-name with your own component name):
npm run create:component my-component-name
Once created, see the printout in the console for the next steps.
If you want to add a dependency to a package, you can add it by running npm install <dependency> in the package's directory.
NPM workspaces will be able to work out where and how to install the dependency.
For example: if you wanted to add the @content-collections/core package to the docs site:
- Navigate to <reporoot>/docs
- npm install @content-collections/core