HI! Thanks you for your interest in Jamstack Deploy! We'd love to accept your patches and contributions.
When authoring new features or extending existing ones, consider the following:
- All new features should be accompanied first with a Github issues describing the feature and its necessity.
- We aim for simplicity. Too many options, buttons, panels etc. detract from that.
- Features should serve the general public. Very specific things for your use case are frowned upon.
- Clone this repository
$ git clone https://github.com/checkly/jamstack-deploy
$ cd jamstack-deploy
- Install dependencies
$ npm install
- Run the project
$ npm run serve
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests.
Note: one pull request should cover one, atomic feature and/or bug fix. Do not submit pull requests with a plethora of updates, tweaks, fixes and new features.
- Coding style is fully defined in .eslintrc
- Comments should be generally avoided. If the code would not be understood without comments, consider re-writing the code to make it self-explanatory.
To run code linter, use:
npm run lint
Commit messages should follow the Semantic Commit Messages format:
label(namespace): title
description
footer
- label is one of the following:
fix
- bug fixes.feat
- features.docs
- changes to docs, e.g.docs(api.md): ..
to change documentation.test
- changes to tests infrastructure.style
- code style: spaces/alignment/wrapping etc.chore
- build-related work, e.g. doclint changes / travis / appveyor.
- namespace is put in parenthesis after label and is optional.
- title is a brief summary of changes.
- description is optional, new-line separated from title and is in present tense.
Example:
fix(code-generator): fix page.pizza method
This patch fixes page.pizza so that it works with iframes.
Fixes #123, Fixes #234
For all dependencies (both installation and development):
- Do not add a dependency if the desired functionality is easily implementable.
- If adding a dependency, it should be well-maintained and trustworthy.
A barrier for introducing new installation dependencies is especially high:
- Do not add installation dependency unless it's critical to project success.
- Every feature should be accompanied by a test.
- Every public api event/method should be accompanied by a test.
- Tests should be hermetic. Tests should not depend on external services.
- To run all tests:
npm run test