You will need:
- Fork the project
- Clone your forked project by running
git clone git@github.com:{ YOUR_USERNAME }/shepherd.git - Run
pnpm ito install node modules - Test that you can build the source by running
pnpm buildand ensure thedistdirectory appears.
We use rollup to facilitate things like transpilation, minification, etc. so
you can focus on writing relevant code. If there is a fix or feature you would like
to contribute, we ask that you take the following steps:
-
Most of the editable code lives in the
srcdirectory while built code will end up in thedistdirectory upon runningpnpm build. -
The demo app is served out of the
landingdirectory. Runningpnpm startwill open it in your browser and initiate a live-reloading session as you make changes.
-
Please Provide a thoughtful commit message and push your changes to your fork using
git push origin main(assuming your forked project is usingoriginfor the remote name and you are on themainbranch). -
Open a Pull Request on GitHub with a description of your changes.
All PRs that change code functionality are required to have accompanying tests.
Acceptance tests are run using cypress. A number of different testing configurations can be found in package.json, but you can simply run pnpm test:cy:watch to build your latest changes and begin running the tests inside a Chrome browser instance.
localhost port 9002. If you'd like to change this port, make sure to change the baseUrl option inside of cypress.json, and change any references to port 9002 in package.json accordingly.