Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee03918

Browse files
committed
Merge pull request #254 from dlmanning/2.x
Merge 2.x into Master
2 parents 5a99375 + 598d16f commit ee03918

27 files changed

+874
-376
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
10+
# Change these settings to your own preference
11+
indent_style = space
12+
indent_size = 2
13+
14+
# We recommend you to keep these unchanged
15+
end_of_line = lf
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.md]
21+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
env:
2+
mocha: true
3+
node: true
4+
5+
# globals:
6+
#########################
7+
## Only add globals if you're absolutely certain they need to be globals
8+
##########################
9+
# console: true
10+
11+
#########################
12+
## set to 0 to allow
13+
## set to 1 to disallow as warning
14+
## set to 2 to disallow as error
15+
#########################
16+
rules:
17+
#########################
18+
## Optional Rules
19+
#########################
20+
# Disallow use of `console`
21+
no-console: 2
22+
23+
# Disallow warning comments
24+
no-warning-comments:
25+
- 1
26+
- terms
27+
- todo
28+
- fixme
29+
location
30+
- anywhere
31+
32+
# Warns when variables are defined but never used
33+
no-unused-vars: 1
34+
35+
# Enforces comma style (first or last)
36+
comma-style:
37+
- 2
38+
- last
39+
40+
# Enforces one true `this` variable
41+
consistent-this:
42+
- 2
43+
- self
44+
# Allows dangling underscores in identifiers
45+
no-underscore-dangle: 2
46+
47+
# Enforces function expressions to have a name
48+
func-names: 0
49+
50+
# Set maximum depth of nested callbacks
51+
max-nested-callbacks:
52+
- 1
53+
- 3
54+
55+
#########################
56+
## Core Rules
57+
##########################
58+
# Enforces camel case names
59+
camelcase: 2
60+
61+
# Prohibit use of == and != in favor of === and !==
62+
eqeqeq: 2
63+
64+
# Suppresses warnings about == null comparisons
65+
no-eq-null: 2
66+
67+
# No mixing tabs and spaces, with 2 spaces only
68+
no-mixed-spaces-and-tabs: 2
69+
70+
# Prohibits use of a variable before it is defined
71+
no-use-before-define: 2
72+
73+
# Requires capitalized names for constructor functions
74+
new-cap: 2
75+
76+
# Prohibits use of explicitly undeclared variables
77+
no-undef: 2
78+
79+
# Enforces Use Strict at the top of function scope
80+
strict:
81+
- 2
82+
- global
83+
84+
# Requires variable declarations to be at the top
85+
vars-on-top: 2
86+
87+
# Enforce curly braces around blocks in loops and conditionals
88+
curly: 2
89+
90+
# Prohibits the use of immediate function invocations w/o wrapping in parentheses
91+
wrap-iife: 2
92+
93+
# Prohibits `argument.caller` and `argument.callee`
94+
no-caller: 2
95+
96+
# Requires all `for in` loops to filter object's items
97+
guard-for-in: 2
98+
99+
# Prohibits comparing a variable against itself
100+
no-self-compare: 2
101+
102+
# Prohibits use of `undefined` variable
103+
no-undefined: 0
104+
105+
# Prohibits nested ternaries
106+
no-nested-ternary: 2
107+
108+
# Enforces a space before blocks
109+
space-before-blocks:
110+
- 2
111+
- always
112+
113+
# Enforces spaces following keywords
114+
space-after-keywords:
115+
- 2
116+
- always
117+
- checkFunctionKeyword: true
118+
119+
# Enforces quoted property names
120+
quote-props:
121+
- 2
122+
- always
123+
124+
# Enforces padded blocks
125+
padded-blocks:
126+
- 1
127+
- never
128+
129+
# Enforce functions as expressions
130+
func-style:
131+
- 2
132+
- expression
133+
134+
# Require brace style
135+
brace-style:
136+
- 2
137+
- stroustrup
138+
139+
# Prohibits Yoda conditions
140+
yoda:
141+
- 2
142+
- never
143+
144+
# Enforce use of single quotation marks for strings.
145+
quotes:
146+
- 2
147+
- single
148+
149+
# Enforces space inside of brackets (except property name)
150+
space-in-brackets:
151+
- 2
152+
- always
153+
- propertyName: false
154+
singleValue: false
155+

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
language: node_js
22
node_js:
33
- "0.10"
4+
- node
5+
- iojs

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Gulp Sass Changelog
2+
3+
## v2.0.0-alpha.1
4+
**March 26, 2015**
5+
6+
* **New** Added `renderSync` option that can be used through `sass.sync()`
7+
8+
### March 24, 2015
9+
* **Change** Updated to `node-sass` 3.0.0-alpha.1
10+
* **New** Added support for `gulp-sourcemaps` including tests
11+
* **New** Added `.editorconfig` for development consistency
12+
* **New** Added linting and test for said linting
13+
* **Change** Updated the README
14+
* **New** `logError` function to make streaming errors possible instead of breaking the stream
15+
116
### 1.3.3
217

318
* updated to node-sass 2.0 (final)

CONTRIBUTING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Contributing to Gulp Sass
2+
3+
Gulp 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.
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` you are using.
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 `[email protected]: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+
38+
Versioning 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+
40+
For 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+
44+
The 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+
46+
Changelog 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+
50+
When 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

0 commit comments

Comments
 (0)