You will need:
- Node.js and npm
- webpack
Windows users will need additional setup to enable build capabilities in NPM. From an administrative command window:
npm install --global --production windows-build-tools
- Fork the project
- Clone your forked project by running
git clone git@github.com:{ YOUR_USERNAME }/shepherd.git - Run
npm installto install node modules - Test that you can build the source by moving/renaming the existing
distdirectory and runningnpm run build - Assuming everything went well, you should now have a
distdirectory that matches the one you moved in step 4
We use webpack 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 runningnpm run build. -
Provide a thoughtful commit message and push your changes to your fork using
git push origin master(assuming your forked project is usingoriginfor the remote name and you are on themasterbranch). -
Open a Pull Request on GitHub with a description of your changes.
All PRs, that change code functionality, are required to have accompanying tests.