| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
If you'd like to contribute to Pattern Lab Node, please do so! There is always a lot of ground to cover and something for your wheelhouse.
No pull request is too small. Check out any help wanted 🆘 or good first issues 🎓as a good way to get your feet wet, or add some more unit tests.
To get started, you'll need Node installed. Managing Node with nvm is recommended. Once installed, you can target the version of Node we specify within the .nvmrc file.
nvm install <<version>>
nvm use <<version>>The best way to make changes to the Pattern Lab Node core and test them is through an edition.
To ensure that developers can bootstrap the repo from a fresh clone, do this in your working copy:
git reset --hard && git clean -dfx && npm install && npm run bootstrapThis ensures that any changes you've made will still result in a clean and functional developer experience. Note: be sure you've committed any outstanding work before doing this -- it will blow away whatever's still outstanding, including anything staged but not commited.
Formatting is automated via Prettier, setup to run on precommit. We suggest editor integration for this and for eslint. Prettier is further configured within .prettierrc. Eslint validates syntax and usage that Prettier doesn't handle. Configuration for both is found within the .eslintrc.json file.
The .editorconfig controls spaces / tabs within supported editors. Check out their site.
Add unit and integration tests if you can. It's always nice if our code coverage improves bit by bit (literally!). We are using Node Tap as test framework and Rewire for mocking things like file system access.
Currently Pattern Lab has the following branches:
New features are typically cut off of dev branch. When dev is stable cut releases by merging dev to master and creating a release tag.
If you have any questions or you would like to help, feel free to ask on our Gitter.im channel 😃
| Back | FazBrowse Home | New Git URL |