Before contributing, please read our community guidelines and terms of service.
This project is a Javascript monorepo. To get started, you must first install the dependencies:
npm install
Heads up 👋
Running
npm install
installs dependencies for the rootpackage.json
file, and allpackage.json
files in thepackages/
folder. You do not need to do this yourself.
To develop for this project, you can run:
npm run develop
Or to work on a specific package or unit of this monorepo, you can run:
npm run develop -- --scope @spike/package-name
Or to work on a set of specific packages or units of this monorepo, you can run:
npm run develop -- --scope @spike/package-name,npm run develop -- --scope @spike/package-name-2
Heads up 👋
The
develop
script starts thedevelop
script of every package inside thepackages
folder, or for the scope specified.
To create a production build of each package, you can run:
npm run build
Heads up 👋
The
build
script starts thebuild
script of every package inside thepackages
folder, or for the scope specified, and runs them in the correct order for you!
We're not there yet, we're just an alpha project. Stay tuned!
To add a new dependency to all packages of the monorepo, run:
npm run add -- package-name
To add a new dependency to only certain packages of the monorepo, run:
npm run add -- package-name --scope=@spike/package-name
To create a new package to the monorepo, you can run:
npm run create -- @spike/package-name
To run a CLI command on all packages, run:
npm run exec -- "command args"
To run a CLI command on specific packages, run:
npm run exec -- "command args" --scope=@spike/package-name
Don't be a jerk!