Skip to content

Commit df62b07

Browse files
committed
update README.md and init CONTRIBUTING.md
1 parent e641d2f commit df62b07

File tree

2 files changed

+137
-1
lines changed

2 files changed

+137
-1
lines changed

Diff for: CONTRIBUTING.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Got a question or problem?
2+
3+
Firstly, please go over our FAQ: https://github.com/ziscloud/angular-bootstrap-toggle/wiki/FAQ
4+
5+
Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](http://stackoverflow.com/questions/tagged/angular-bootstrap-toggle) where maintainers are looking at questions questions tagged with `angular-bootstrap-toggle`.
6+
7+
StackOverflow is a much better place to ask questions since:
8+
* there are hundreds of people willing to help on StackOverflow
9+
* questions and answers stay available for public viewing so your question / answer might help someone else
10+
* SO voting system assures that the best answers are prominently visible.
11+
12+
To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.
13+
14+
## You think you've found a bug?
15+
16+
Oh, we are ashamed and want to fix it asap! But before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a _minimal_ reproduce scenario using http://plnkr.co/. Having a live reproduce scenario gives us wealth of important information without going back & forth to you with additional questions like:
17+
* version of AngularJS used
18+
* version of this library that you are using
19+
* 3rd-party libraries used, if any
20+
* and most importantly - a use-case that fails
21+
22+
A minimal reproduce scenario using http://plnkr.co/ allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
23+
24+
We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
25+
26+
The best part is that you don't need to create plunks from scratch - you can use one from our [demo page](http://ziscloud.github.io/angular-bootstrap-toggle/).
27+
28+
Unfortunately we are not able to investigate / fix bugs without a minimal reproduce scenario using http://plnkr.co/, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced.
29+
30+
31+
## You want to contribute some code?
32+
33+
**NOTE: We are migrating all our components to use a prefix, in the meantime you will see both the new and the old directives separated by a comment. If you want to contribute with code, make all your changes on top of that comment.**
34+
35+
We are always looking for the quality contributions and will be happy to accept your Pull Requests as long as those adhere to some basic rules:
36+
37+
* Please make sure that your contribution fits well in the project's context:
38+
* we are aiming at rebuilding bootstrap directives in pure AngularJS, without any dependencies on any external JavaScript library;
39+
* the only dependency should be bootstrap CSS and its markup structure;
40+
* directives should be html-agnostic as much as possible which in practice means:
41+
* templates should be referred to using the `templateUrl` property
42+
* it should be easy to change a default template to a custom one
43+
* directives shouldn't manipulate DOM structure directly (when possible)
44+
* Please assure that you are submitting quality code, specifically make sure that:
45+
* your directive has accompanying tests and all the tests are passing
46+
* your PR doesn't break the build; check the Travis-CI build status after opening a PR and push corrective commits if anything goes wrong
47+
* your commits conform to the conventions established [here](https://github.com/ajoslin/conventional-changelog/blob/master/conventions/angular.md)

Diff for: README.md

+90-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,91 @@
1-
# angular-bootstrap-toggle
1+
### Angular Bootstrap Toggle - [AngularJS](http://angularjs.org/) Toggle directive specific to [Bootstrap](http://getbootstrap.com)
22

3+
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ziscloud/angular-bootstrap-toggle?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4+
[![Build Status](https://secure.travis-ci.org/ziscloud/angular-bootstrap-toggle.svg)](http://travis-ci.org/ziscloud/angular-bootstrap-toggle)
5+
[![devDependency Status](https://david-dm.org/ziscloud/angular-bootstrap-toggle/dev-status.svg?branch=master)](https://david-dm.org/ziscloud/angular-bootstrap-toggle#info=devDependencies)
6+
7+
### Quick links
8+
- [Demo](#demo)
9+
- [Installation](#installation)
10+
- [Bower](#install-with-bower)
11+
- [Manual](#manual-download)
12+
- [Support](#support)
13+
- [FAQ](#faq)
14+
- [Supported browsers](#supported-browsers)
15+
- [Need help?](#need-help)
16+
- [Found a bug?](#found-a-bug)
17+
- [Contributing to the project](#contributing-to-the-project)
18+
19+
# Demo
20+
21+
Do you want to see directive in action? Visit http://ziscloud.github.io/angular-bootstrap-toggle/!
22+
23+
# Installation
24+
25+
Installation is easy as UI Bootstrap has minimal dependencies - only the AngularJS and Twitter Bootstrap's CSS are required.
26+
It is strongly recommended you use Angular 1.3+ or higher due to 'Bind Once'.
27+
28+
#### Install with Bower
29+
```sh
30+
$ bower install angular-bootstrap-toggle --save
31+
```
32+
33+
#### Manual download
34+
35+
After downloading dependencies (or better yet, referencing them from your favorite CDN) you need to download build version of this project.
36+
All the files and their purposes are described here:
37+
https://github.com/ziscloud/angular-bootstrap-toggle/tree/gh-pages#build-files
38+
Don't worry, if you are not sure which file to take, opt for `angular-bootstrap-toggle.min.js` and `angular-bootstrap-toggle.min.css`.
39+
40+
### Adding dependency to your project
41+
42+
When you are done downloading all the dependencies and project files the only remaining part is to add dependencies on the `ui.toggle` AngularJS module:
43+
44+
```js
45+
angular.module('myApp', ['ui.toggle']);
46+
```
47+
48+
If you're a Browserify or Webpack user, you can do:
49+
50+
```js
51+
var abt = require('angular-bootstrap-toggle');
52+
53+
angular.module('myApp', [abt]);
54+
```
55+
56+
# Support
57+
58+
## FAQ
59+
60+
https://github.com/ziscloud/angular-bootstrap-toggle/wiki/FAQ
61+
62+
## Supported browsers
63+
64+
Directives from this repository are automatically tested with the following browsers:
65+
* Chrome (stable and canary channel)
66+
* Firefox
67+
* IE 9 and 10
68+
* Opera
69+
* Safari
70+
71+
Modern mobile browsers should work without problems.
72+
73+
74+
## Need help?
75+
Need help using this directive?
76+
77+
* https://gitter.im/ziscloud/angular-bootstrap-toggle/~chat#share.
78+
* Ask a question in [StackOverflow](http://stackoverflow.com/) under the [angular-bootstrap-toggle](http://stackoverflow.com/questions/tagged/angular-bootstrap-toggle) tag.
79+
80+
**Please do not create new issues in this repository to ask questions about using UI Bootstrap**
81+
82+
## Found a bug?
83+
Please take a look at [CONTRIBUTING.md](CONTRIBUTING.md#you-think-you've-found-a-bug) and submit your issue [here](https://github.com/ziscloud/angular-bootstrap-toggle/issues/new).
84+
85+
86+
----
87+
88+
89+
# Contributing to the project
90+
91+
We are always looking for the quality contributions! Please check the [CONTRIBUTING.md](CONTRIBUTING.md) for the contribution guidelines.

0 commit comments

Comments
 (0)