You will need:
Windows users will need additional setup to enable build capabilities in NPM. From an administrative command window:
pnpm global add windows-build-tools- Fork the project
- Clone your forked project by running
git clone git@github.com:{ YOUR_USERNAME }/tether.git - Run
pnpmto 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. -
Some examples are served out of the
examplesdirectory. Runningpnpm startwill open the list 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 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.
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: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.