The following steps will allow you to contribute to our project:
- Fork the project
- Run
npm install
in the root directory - Make any changes
- Run
npm start
and browse tohttp://localhost:9000
to check that your changes didn't break anything.the project will enter
watch mode
and you can change stuff and see changes immediately. - Run
npm run lint
(and fix any errors) - Create a git commit using our commit message guidelines so your change can be automatically added to the changelog.
Note: Don't include any dist/docs output (from running
npm run build
ornpm run release
). - Create a pull request
<type>(optional scope): <description>
optional body
optional footer
- fix: The commit represents a bug fix for the bridge components (
patch
version bump) - feat: The commit represents a new feature for the bridge components (
minor
version bump) - doc: The comit represents a change in the documentation. Mostly in
src
folder but notsrc/bridge
- chore: Other changes
The type fix and feat will be added to changelog and version will be bumped.
Please note that using
BREAKING CHANGE:
will bump themajor
version.We try to follow the major version number of
material-components-web
and don't want to bump this. Make a note so we can mark breaking changes in release notes.
fix
andfeat
use the name of component. Example:fix(mdc-list-item): <description>
doc
: try to use name of page/element. Example:doc(buttons): <description>
chore
: readme, build scripts, dependencies, ..
The description contains succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize first letter
- no dot (.) at the end
Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior. This can also reference issues.
All breaking changes have to be mentioned in the footer. You can also reference issues.
feat(mdc-button): add secondary color to surface
control this by setting attribute secondary="true"
close #149
chore: add contributing guidelines