When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
The following commands will go from nothing to a running application in development mode.
git clone https://github.com/FantasticFiasco/searchlight.git
cd searchlight
yarn
yarn dev
- Run lint and ensure that it pass
- Rebase and squash your commits with meaningful commit messages
Format of the commit message:
<type>(<scope>): <subject>
<body>
<footer>
The first line cannot be longer than 70 characters, the second line is always blank and other lines should be wrapped at 80 characters. The type and scope should always be lowercase as shown below.
- feat - new feature for the user, not a new feature for build script
- fix - bug fix for the user, not a fix to a build script
- docs - changes to the documentation
- style - formatting, missing semi colons, etc; no production code change
- refactor - refactoring production code, eg. renaming a variable
- test - adding missing tests, refactoring tests; no production code change
- chore - updating grunt tasks etc; no production code change
- init
- runner
- watcher
- config
- web-server
- proxy
- etc.
The <scope>
can be empty (e.g. if the change is a global or difficult to assign to a single component), in which case the parentheses are omitted.
- uses the imperative, present tense: "change" not "changed" nor "changes"
- includes motivation for the change and contrasts with previous behavior
For more info about message body, see:
- http://365git.tumblr.com/post/3308646748/writing-git-commit-messages
- http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
Closed issues should be listed on a separate line in the footer prefixed with "Closes" keyword like this:
Closes #234
or in the case of multiple issues:
Closes #123
Closes #245
Closes #992
All breaking changes have to be mentioned in footer with the description of the change, justification and migration notes.
BREAKING CHANGE:
`port-runner` command line option has changed to `runner-port`, so that it is
consistent with the configuration file syntax.
To migrate your project, change all the commands, where you use `--port-runner`
to `--runner-port`.
Complete the following steps to create a new release:
- Draft a new GitHub release
- Update version in
package.json
and create a new chapter inCHANGELOG.md
- Commit with a message like
release x.y.z
and push to remote - Wait for the build agents to upload artifacts to the GitHub release
- Publish the GitHub release
This document is based on AngularJS Git Commit Msg Convention.