Skip to content

Commit 3f39498

Browse files
committedJun 23, 2013
Project guidelines
1 parent ef5cf33 commit 3f39498

File tree

5 files changed

+264
-24
lines changed

5 files changed

+264
-24
lines changed
 

‎.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
13
# editorconfig.org
4+
25
root = true
36

47
[*]

‎.gitignore

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lib-cov
1+
lib-cov
22
*.seed
33
*.log
44
*.csv
@@ -12,5 +12,9 @@ logs
1212
results
1313

1414
npm-debug.log
15+
report.zip
1516

16-
node_modules
17+
/coverage/
18+
/node_modules/
19+
/report/
20+
.DS_STORE

‎.jshintrc

+28-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
{
2-
"node": true,
3-
"browser": false,
4-
"es5": true,
5-
"esnext": true,
6-
"bitwise": true,
7-
"camelcase": true,
8-
"curly": true,
9-
"eqeqeq": true,
10-
"immed": true,
11-
"indent": 4,
12-
"latedef": true,
13-
"newcap": true,
14-
"noarg": true,
15-
"quotmark": "single",
16-
"regexp": true,
17-
"undef": true,
18-
"unused": true,
19-
"strict": true,
20-
"trailing": true,
21-
"smarttabs": true
2+
"node": true,
3+
"browser": false,
4+
"esnext": false,
5+
"bitwise": false,
6+
"camelcase": true,
7+
"curly": true,
8+
"eqeqeq": true,
9+
"immed": true,
10+
"indent": 2,
11+
"latedef": true,
12+
"newcap": true,
13+
"noarg": true,
14+
"quotmark": "single",
15+
"regexp": true,
16+
"undef": true,
17+
"unused": true,
18+
"strict": true,
19+
"trailing": true,
20+
"smarttabs": true,
21+
"expr": true,
22+
"globals": {
23+
"describe": false,
24+
"it": false,
25+
"before": false,
26+
"beforeEach": false,
27+
"after": false,
28+
"afterEach": false
29+
}
2230
}

‎CONTRIBUTING.md

+166
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
DalekJS has a few very specific guidelines in addition
2+
to some of the standard guidelines that Github and open
3+
source projects in general recommend. These guidelines
4+
are here to facilitate your contribution and streamline
5+
the process of getting the changes merged in and released.
6+
7+
If you don't follow these guidelines, we'll still work
8+
with you to get the changes in. Any contribution you can
9+
make will help tremendously. Following these guidelines
10+
will help to streamline the pull request and change
11+
submission process.
12+
13+
## Documentation Fixes
14+
15+
If you notice any problems with any documentation, please
16+
fix it and we'll get it merged as soon as we can. For
17+
small things like typos and grammar (which we know I'm
18+
terrible with), just click the "Edit this file" button
19+
and send in the pull request for the fix. For larger
20+
changes and big swaths of documentation changes, a regular
21+
pull request as outlined below is more appropriate.
22+
23+
## Pull Requests
24+
25+
See [Github's documentation for pull requests](https://help.github.com/articles/using-pull-requests).
26+
27+
Pull requests are by far the best way to contribute to
28+
DalekJS. Any time you can send us a pull request with
29+
the changes that you want, we will have an easier time
30+
seeing what you are trying to do. But a pull request in
31+
itself is not usually sufficient. There needs to be some
32+
context and purpose with it, and it should be done
33+
against specific branch.
34+
35+
## General Submission Guidelines
36+
37+
These guidelines are generally applicable whether or not
38+
you are submitting a bug or a pull request. Please try to
39+
include as much of this information as possible with any
40+
submission.
41+
42+
### Version Numbers
43+
44+
In order to best help out with bugs, we need to know the
45+
following information in your bug submission:
46+
47+
* DalekJS version #
48+
* Operating System / version #
49+
* Browser and version #
50+
51+
Including this information in a submission will help
52+
us to test the problem and ensure that the bug is
53+
both reproduced and corrected on the platforms / versions
54+
that you are having issues with.
55+
56+
### Provide A Meaningful Description
57+
58+
It doesn't matter how beautiful and "obvious" your fix is.
59+
We have 10,000,000,000 things floating around the project
60+
at any given moment and we will not immediately understand
61+
why you are making changes.
62+
63+
Given that, it is very important to provide a meaningful
64+
description with your pull requests that alter any code.
65+
A good format for these descriptions will include three things:
66+
67+
1. Why: The problem you are facing (in as much detail as is
68+
necessary to describe the problem to someone who doesn't
69+
know anything about the system you're building)
70+
71+
2. What: A summary of the proposed solution
72+
73+
3. How: A description of how this solution solves the problem,
74+
in more detail than item #2
75+
76+
4. Any additional discussion on possible problems this might
77+
introduce, questions that you have related to the changes, etc.
78+
79+
Without at least the first 2 items in this list, we won't
80+
have any clue why you're changing the code. The first thing
81+
we'll ask, then, is that you add that information.
82+
83+
### Create A Topic Branch For Your Work
84+
85+
The work you are doing for your pull request should not be
86+
done in the master branch of your forked repository. Create
87+
a topic branch for your work. This allows you to isolate
88+
the work you are doing from other changes that may be happening.
89+
90+
Github is a smart system, too. If you submit a pull request
91+
from a topic branch and we ask you to fix something, pushing
92+
a change to your topic branch will automatically update the
93+
pull request.
94+
95+
### Isolate Your Changes For The Pull Request
96+
97+
See the previous item on creating a topic branch.
98+
99+
If you don't use a topic branch, we may ask you to re-do your
100+
pull request on a topic branch. If your pull request contains
101+
commits or other changes that are not related to the pull
102+
request, we will ask you to re-do your pull request.
103+
104+
### Branch from "wip" not "master"
105+
106+
The "master" branch of the DalekJS repository is for
107+
production release code, and documentation updates only. Never
108+
create a pull request from the master branch. Always create
109+
a branch for your work from the "wip" branch. This will
110+
facilitate easier pull request management for the continuous
111+
work that is done in the dev branch.
112+
113+
### Submit Specs With Your Pull Request
114+
115+
Whenever possible, submit the specs (unit tests) that
116+
correspond to your pull request.
117+
118+
I would rather see a pull request that is nothing but a
119+
failing spec, than see a large change made to the real
120+
code with no test to support the change.
121+
122+
In fact...
123+
124+
## Submit A Failing Spec If You Don't Know How To Fix The Problem
125+
126+
If you are stuck in a scenario that fails in your app,
127+
but you don't know how to fix it, submit a failing spec
128+
to show the failing scenario. Follow the guidelines for
129+
pull request submission, but don't worry about fixing the
130+
problem. A failing spec to show that a problem exists is
131+
a very very very helpful pull request for us.
132+
133+
We'll even accept a failing test pasted in to the ticket
134+
description instead of a pull request. That would at
135+
least get us started on creating the failing test in the code.
136+
137+
## Don't Be A Troll
138+
139+
It is very sad that we need to include this section of
140+
the contribution guidelines...
141+
142+
If you are running in to a scenario with a problem, don't
143+
be a troll. Comment like "does DalekJS even have tests?"
144+
are not useful, funny or constructive. In fact, it may get
145+
you blocked and reported for abuse to Github.
146+
147+
Submit a useful comment describing the scenario that is
148+
having an issue. Show us a failing test. Show us some
149+
code that is not behaving the way the documentation says
150+
it should. Be useful and work with us to fix the problem.
151+
152+
We're all for criticism and tearing apart DalekJS for
153+
the problems it has. Do it in a constructive and helpful
154+
manner: "There isn't a test for this scenario. Here's a
155+
rough idea for one that shows the problem." Tell us why
156+
you don't like Marionette. Tell us that someone else is
157+
building something better and why that other thing fits
158+
your scenario and needs better than Marionette does. Just
159+
do it in a manner that allows us to learn from your
160+
experiences, instead of reacting to you being a troll
161+
(likely causing us to get defensive and miss an opportunity
162+
to learn something).
163+
164+
-----------
165+
All credit for this goes to @derickbaily, he is not involved in this project anyhow,
166+
but made this nice piece up for backbone.marionette.

‎README.md

+61-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,61 @@
1-
dalek-cli
2-
=========
1+
dalekjs
2+
======================
3+
4+
> DalekJS base framework
5+
6+
[![Build Status](https://travis-ci.org/dalekjs/dalek-cli.png)](https://travis-ci.org/dalekjs/dalek-cli)
7+
[![Build Status](https://drone.io/github.com/dalekjs/dalek-cli/status.png)](https://drone.io/github.com/dalekjs/dalek-cli/latest)
8+
[![Dependency Status](https://david-dm.org/dalekjs/dalek-cli.png)](https://david-dm.org/dalekjs/dalek-cli)
9+
[![devDependency Status](https://david-dm.org/dalekjs/dalek-cli/dev-status.png)](https://david-dm.org/dalekjs/dalek-cli#info=devDependencies)
10+
[![NPM version](https://badge.fury.io/js/dalek-cli.png)](http://badge.fury.io/js/dalek-cli)
11+
12+
## Ressources
13+
14+
[API Documentation](http://dalekjs.com/package/dalek-cli/master/api/index.html) -
15+
[Code coverage](http://dalekjs.com/package/dalek-cli/master/coverage/index.html) -
16+
[Code complexity](http://dalekjs.com/package/dalek-cli/master/complexity/index.html) -
17+
[Contributing](https://github.com/dalekjs/dalek-cli/blob/master/CONTRIBUTING.md) -
18+
[User Docs](http://dalekjs.com/docs/master/index.html) -
19+
[Homepage](http://dalekjs.com) -
20+
[Twitter](http://twitter.com/dalekjs)
21+
22+
## Help Is Just A Click Away
23+
24+
### #dalekjs on FreeNode.net IRC
25+
26+
Join the `#daleksjs` channel on [FreeNode.net](http://freenode.net) to ask questions and get help.
27+
28+
### [Google Group Mailing List](https://groups.google.com/forum/#!forum/dalekjs)
29+
30+
Get announcements for new releases, share your projects and ideas that are
31+
using DalekJS, and join in open-ended discussion that does not fit in
32+
to the Github issues list or StackOverflow Q&A.
33+
34+
**For help with syntax, specific questions on how to implement a feature
35+
using DalekJS, and other Q&A items, use StackOverflow.**
36+
37+
### [StackOverflow](http://stackoverflow.com/questions/tagged/dalekjs)
38+
39+
Ask questions about using DalekJS in specific scenarios, with
40+
specific features. For example, help with syntax, understanding how a feature works and
41+
how to override that feature, browser specific problems and so on.
42+
43+
Questions on StackOverflow often turn in to blog posts or issues.
44+
45+
### [Github Issues](//github.com/dalekjs/dalek-internal-assertions/issues)
46+
47+
Report issues with DalekJS, submit pull requests to fix problems, or to
48+
create summarized and documented feature requests (preferably with pull
49+
requests that implement the feature).
50+
51+
**Please don't ask questions or seek help in the issues list.** There are
52+
other, better channels for seeking assistance, like StackOverflow and the
53+
Google Groups mailing list.
54+
55+
![DalekJS](https://raw.github.com/dalekjs/dalekjs.com/master/img/logo.jpg)
56+
57+
## Legal FooBar (MIT License)
58+
59+
Copyright (c) 2013 Sebastian Golasch
60+
61+
Distributed under [MIT license](https://github.com/dalekjs/dalek-cli/blob/master/LICENSE-MIT)

0 commit comments

Comments
 (0)
Please sign in to comment.