You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+31-11Lines changed: 31 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,27 +7,41 @@ Glad to hear you'd like to help us improving the library. Here's the how-to!
7
7
8
8
Sounds nice! Please proceed as following:
9
9
10
-
1.**Search for existing issues.** Sometimes, other folks may have reported the same issue and it'd be nice not to duplicate them.
11
-
2. If possible, please **create an isolated and reproducible test case.** Make use of [jsFiddle](jsfiddle.net) - for instance - to share your isolated test cases. We won't hold it against you for feature requests, but a live [POC](http://en.wikipedia.org/wiki/Proof_of_concept) is sometimes easier to catch.
12
-
3.**Share as much information as possible.** Include browser and version, version of gitgraph.js, etc. where appropriate. That can help us to reproduce the bug, if so.
10
+
1.**Search for existing issues.** Sometimes, other folks may have reported the
11
+
same issue and it'd be nice not to duplicate them.
12
+
2. If possible, please **create an isolated and reproducible test case.** Make
13
+
use of [jsFiddle](jsfiddle.net) - for instance - to share your isolated test
14
+
cases. We won't hold it against you for feature requests, but a live [POC][]
3.**Share as much information as possible.** Include browser and version,
18
+
version of gitgraph.js, etc. where appropriate. That can help us to reproduce
19
+
the bug, if so.
13
20
14
21
## Or wanna contribute to the code?
15
22
16
23
Github's Pull Request is a fantastic tool to contribute to the code.
17
24
18
25
Just keep in mind the following rules:
19
26
20
-
- Change must be done in `src/` files, eventually `test/` or `examples/`, that's all.
27
+
- Change must be done in `src/` files, eventually `test/` or `examples/`, that's
28
+
all.
21
29
- You'd be nice not to pollute your pull request with unintended changes.
22
-
- Pull requests should always be against the `develop` branch, never against `master` nor `gh-pages`.
30
+
- Pull requests should always be against the `develop` branch, never against
31
+
`master` nor `gh-pages`.
23
32
24
-
Once you send a Pull Request, your code will be check with [Travis CI](https://travis-ci.org/nicoespeon/gitgraph.js) to tell whether you break the build or not. The Travis test should pass before we accept any Pull Request.
33
+
Once you send a Pull Request, your code will be checked with [Travis CI][] to
34
+
tell whether you break the build or not. The Travis test should pass before we
@@ -40,10 +54,14 @@ The [.editorconfig](https://github.com/nicoespeon/gitgraph.js/blob/develop/.edit
40
54
41
55
- Adhere to the (default) [CSScomb](http://csscomb.com/) property order
42
56
- Multiple-line approach (one property and value per line)
43
-
- Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`)
57
+
- Always a space after a property's colon (.e.g, `display: block;` and not
58
+
`display:block;`)
44
59
- End all lines with a semi-colon
45
60
- For multiple, comma-separated selectors, place each selector on its own line
46
-
- Attribute selectors, like `input[type="text"]`, should always wrap the attribute's value in double quotes, for consistency and safety (see [this blog post on unquoted attribute values](http://mathiasbynens.be/notes/unquoted-attribute-values) that can lead to XSS attacks).
61
+
- Attribute selectors, like `input[type="text"]`, should always wrap the
62
+
attribute's value in double quotes, for consistency and safety (see [this blog
63
+
post on unquoted attribute values][blog] that can lead to XSS attacks).
@@ -54,6 +72,8 @@ The [.editorconfig](https://github.com/nicoespeon/gitgraph.js/blob/develop/.edit
54
72
55
73
## License
56
74
57
-
By contributing your code, you agree to license your contribution under the terms of [the MIT license](https://github.com/nicoespeon/gitgraph.js/blob/master/LICENSE.md).
75
+
By contributing your code, you agree to license your contribution under the
Please have a look at [the Issue Guidelines](https://github.com/necolas/issue-guidelines/blob/master/CONTRIBUTING.md) from [Nicolas Gallagher](https://github.com/necolas) before doing so.
27
+
Please have a look at the [Issue Guidelines][] from [Nicolas Gallagher][] before
The JavaScript source code is documented with [JSDoc](http://usejsdoc.org/).
30
35
31
36
## Contributing
32
37
33
-
Editor preferences are available in [the editor config](https://github.com/nicoespeon/gitgraph.js/blob/master/.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org>.
38
+
Editor preferences are available in for [the editor config][] easy use in common
39
+
text editors. Read more and download plugins at <http://editorconfig.org>.
The project uses [Grunt](http://gruntjs.com) with convenient methods for our workflow. It's how we lint our code, run tests, generate documentation, etc. To use it, install the required dependencies as directed and then run the following Grunt commands.
42
+
The project uses [Grunt](http://gruntjs.com) with convenient methods for our
43
+
workflow. It's how we lint our code, run tests, generate documentation, etc. To
44
+
use it, install the required dependencies as directed and then run the following
45
+
Grunt commands.
36
46
37
47
### Install Grunt
38
48
39
49
From the command line:
40
50
41
51
- Install `grunt-cli` globally with `npm install -g grunt-cli`.
42
-
- Install [the necessary local dependencies](https://github.com/nicoespeon/gitgraph.js/blob/master/.editorconfig) with `npm install`.
52
+
- Install [the necessary local dependencies][] with `npm install`.
53
+
[the necessary local dependencies]: https://github.com/nicoespeon/gitgraph.js/blob/master/package.json
43
54
44
-
When completed, you'll be able to run the various Grunt commands provided from the command line.
55
+
When completed, you'll be able to run the various Grunt commands provided from
56
+
the command line.
45
57
46
58
[> Need more information about how to get started with Grunt?](http://gruntjs.com/getting-started)
47
59
48
60
### Available Grunt commands
49
61
50
62
#### test code - `grunt test`
51
63
52
-
Check source code against [JSHint](http://www.jshint.com/) then runs unit tests with [Jasmine](http://pivotal.github.io/jasmine/).
64
+
Check source code against [JSHint][] then runs unit tests with [Jasmine][].
65
+
[JSHint]: http://www.jshint.com/
66
+
[Jasmine]: https://jasmine.github.io/
53
67
54
68
#### generate documentation - `grunt doc`
55
69
56
-
Generate source code documentation into `dist/docs/` (not versioned) with [JSDoc](http://usejsdoc.org/).
70
+
Generate source code documentation into `dist/docs/` (not versioned) with
71
+
[JSDoc](http://usejsdoc.org/).
57
72
58
73
#### compile a non-versioned release - `grunt dist`
59
74
60
-
Clean `dist/` directory, lint code, output the minified release into `dist/gitgraph.min.js` and generate the documentation into `dist/docs/`.
75
+
Clean `dist/` directory, lint code, output the minified release into
76
+
`dist/gitgraph.min.js` and generate the documentation into `dist/docs/`.
61
77
62
78
#### compile a new release - `grunt release`
63
79
64
-
Lint code, output the source and minified releases into `build/` and generate the official documentation into `docs/`.
80
+
Lint code, output the source and minified releases into `build/` and generate
81
+
the official documentation into `docs/`.
65
82
66
83
#### open a live reload server - `grunt server`
67
84
68
-
For a better code experience, this grunt task opens a live server in your favorite browser. This server is automatically reloaded when you save a project file.
85
+
For a better code experience, this grunt task opens a live server in your
86
+
favorite browser. This server is automatically reloaded when you save a project
87
+
file.
69
88
70
89
Please note that `examples/index.html` is the default file for testing ;)
71
90
@@ -83,9 +102,11 @@ Releases will be numbered with the following format:
83
102
84
103
And constructed with the following guidelines:
85
104
86
-
- Breaking backward compatibility bumps the `<major>` (and resets the `<minor>` and `<patch>`)
87
-
- New additions without breaking backward compatibility bumps the `<minor>` (and resets the `<patch>`)
88
-
- Bug fixes and misc. changes bumps the `<patch>`
105
+
- Breaking backward compatibility bumps the `<major>` (and resets the `<minor>`
106
+
and `<patch>`)
107
+
- New additions without breaking backward compatibility bump the `<minor>` (and
108
+
reset the `<patch>`)
109
+
- Bug fixes and misc. changes bump the `<patch>`
89
110
90
111
## Authors and contributors
91
112
@@ -95,6 +116,7 @@ And constructed with the following guidelines:
95
116
96
117
## Copyright and License
97
118
98
-
Copyright (c) 2013 Nicolas CARLO and Fabien BERNARD under [the MIT license](https://github.com/nicoespeon/gitgraph.js/blob/master/LICENSE.md).
119
+
Copyright (c) 2013 Nicolas CARLO and Fabien BERNARD under the [MIT license][]
0 commit comments