UNPKG

5.25 kBMarkdownView Raw
1# Contributing to Gulp Sass
2
3Gulp Sass is a very light-weight [Gulp](https://github.com/gulpjs/gulp) wrapper for [`node-sass`](https://github.com/sass/node-sass), which in turn is a Node binding for [`libsass`](https://github.com/sass/libsass), which in turn is a port of [`Sass`](https://github.com/sass/sass).
4
5## Submitting Issues
6
7* Before creating a new issue, perform a [cursory search](https://github.com/issues?utf8=%E2%9C%93&q=repo%3Adlmanning%2Fgulp-sass+repo%3Asass%2Fnode-sass+repo%3Asass%2Flibsass+repo%3Asass%2Fsass+repo%3Asass-eyeglass%2Feyeglass) in the Gulp Sass, Node Sass, Libsass, and main Sass repos to see if a similar issue has already been submitted. Please also refer to our [Common Issues and Their Fixes](https://github.com/dlmanning/gulp-sass/wiki/Common-Issues-and-Their-Fixes) page for some basic troubleshooting.
8* You can create an issue [here](https://github.com/dlmanning/gulp-sass/issues). Please include as many details as possible in your report.
9* Issue titles should be descriptive, explaining at the high level what it is about.
10* Please include the version of `gulp-sass`, Node, and NPM you are using, as well as what operating system you are having a problem on.
11* _Do not open a [pull request](#pull-requests) to resolve an issue without first receiving feedback from a `collaborator` or `owner` and having them agree on a solution forward_.
12* Include screenshots and animated GIFs whenever possible; they are immensely helpful.
13* Issues that have a number of sub-items that need to be complete should use [task lists](https://github.com/blog/1375%0A-task-lists-in-gfm-issues-pulls-comments) to track the sub-items in the main issue comment.
14
15
16## Pull Requests
17
18* **DO NOT ISSUE A PULL REQUEST WITHOUT FIRST [SUBMITTING AN ISSUE](#submitting-issues)**
19* Pull requests should reference their related issues. If the pull request closes an issue, [please reference its closing in your commit messages](https://help.github.com/articles/closing-issues-via-commit-messages/). Pull requests not referencing any issues will be closed.
20* Pull request titles should be descriptive, explaining at the high level what it is doing, and should be written in the same style as [Git commit messages](#git-commit-messages).
21* Update the `CHANGELOG` with the changes made by your pull request, making sure to use the proper [Emoji](#emoji-cheatsheet).
22* Follow our JavaScript styleguides. Tests will fail if you do not.
23* Ensure that you have [EditorConfig](http://editorconfig.org/) installed in your editor of choice and that it is functioning properly.
24* Do not squash or rebase your commits when submitting a Pull Request. It makes it much harder to follow your work and make incremental changes.
25* Update the [CHANGELOG](#maintaining-thechangelog) with your changes.
26* Branches should be made off of the most current `master` branch from `git@github.com:dlmanning/gulp-sass.git`
27* Pull requests should be made into our [master](https://github.com/dlmanning/gulp-sass/tree/master) branch.
28
29### Git Commit Messages
30
31* Use the present tense (`"Add feature"` not `"Added Feature"`)
32* Use the imperative mood (`"Move cursor to…"` not `"Moves cursor to…"`)
33* Limit the first line to 72 characters or less
34* Consider including relevant Emoji from our [Emoji cheatsheet](#emoji-cheatsheet)
35
36## Creating a New Version
37
38Versioning is done through [SEMVER](http://semver.org/). When creating a new version, create new release branch off of `master` with the version's name, and create a new tag with `v` prefixed with the version's name from that branch.
39
40For instance, if you are creating version `1.1.0`, you would create a branch `release/1.1.0` from `master` and create a tag `v1.1.0` from branch `release/1.1.0`.
41
42### Maintaining the Changelog
43
44The Changelog should have a list of changes made for each version. They should be organized so additions come first, changes come second, and deletions come third. Version numbers should be 2nd level headers with the `v` in front (like a tag) and the date of the version's most recent update should be underneath in italics.
45
46Changelog messages do not need to cover each individual commit made, but rather should have individual summaries of the changes made. Changelog messages should be written in the same style as [Git commit messages](#git-commit-messages).
47
48## Emoji Cheatsheet
49
50When creating creating commits or updating the CHANGELOG, please **start** the commit message or update with one of the following applicable Emoji. Emoji should not be used at the start of issue or pull request titles.
51
52* :art: `:art:` when improving the format/structure of the code
53* :racehorse: `:racehorse:` when improving performance
54* :memo: `:memo:` when writing long-form text (documentation, guidelines, principles, etc…)
55* :bug: `:bug:` when fixing a bug
56* :fire: `:fire:` when removing code or files
57* :green_heart: `:green_heart:` when fixing the CI build
58* :white_check_mark: `:white_check_mark:` when adding tests
59* :lock: `:lock:` when dealing with security
60* :arrow_up: `:arrow_up:` when upgrading dependencies
61* :arrow_down: `:arrow_down:` when downgrading dependencies
62* :shirt: `:shirt:` when removing linter warnings
63* :shipit: `:shipit:` when creating a new release