You will need:
Windows users will need additional setup to enable build capabilities in NPM. From an administrative command window:
yarn global add windows-build-tools
- Fork the project
- Clone your forked project by running
git clone git@github.com:{ YOUR_USERNAME }/shepherd.git
- Run
yarn
to install node modules - Test that you can build the source by moving/renaming the existing
dist
directory and runningyarn build
- Assuming everything went well, you should now have a
dist
directory that matches the one you moved in step 4
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
src
directory while built code will end up in thedist
directory upon runningyarn build
. -
The demo app is served out of the
demo
directory. Runningyarn start
will 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 master
(assuming your forked project is usingorigin
for the remote name and you are on themaster
branch). -
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 yarn test:ci: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.