X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fenyo%2Fdropzone%2FCONTRIBUTING.md;fp=vendor%2Fenyo%2Fdropzone%2FCONTRIBUTING.md;h=56d9719b4b5d19262690339ca402769363853eb1;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/enyo/dropzone/CONTRIBUTING.md b/vendor/enyo/dropzone/CONTRIBUTING.md new file mode 100644 index 000000000..56d9719b4 --- /dev/null +++ b/vendor/enyo/dropzone/CONTRIBUTING.md @@ -0,0 +1,78 @@ +Contribute +========== + + +> I have changed my branching model recently (November 2013)! Previously +> the latest version was always in develop, and pull request had to be +> made on this branch. This is no longer the case! + + +The latest version is always in the **[master](https://github.com/enyo/dropzone)** +branch. + + +> Please provide a test for any new feature (see the [testing section](#testing) below). + + +Communicate +----------- + +Before you start implementing new features, please create an issue about +it first and discuss your intent. + +It might be something that someone else is already implementing or that +goes against the concepts of Dropzone, and I really hate rejecting pull +requests others spent hours writing on. + + +Developer Dependencies +---------------------- + +The first thing you need to do, is to install the developer dependencies: + +```bash +$ npm install +``` + +This will install all the tools you need to compile the source files and to test +the library. + + +Coffeescript & Sass (-> Javascript & CSS) +------------------------------------------ + +Dropzone is written in [Coffeescript](http://coffeescript.org) and +[Sass](http://sass-lang.com/) so *do not* make +changes to the Javascript or CSS files + +**I will not merge requests written in Javascript or CSS.** + +Please don't include compiled `.js` or `.css` files in your pull requests but only +`.coffee` or `.scss` files. That way pull requests aren't polluted and I can see +immediately what you changed. + + +To build the library use [grunt](http://gruntjs.com). + +```bash +$ grunt -h # Displays available options +$ grunt # compiles all coffeescript and stylus files +$ grunt watch # watches for changes and builds on the fly +``` + +> I recommend using `grunt watch` when you begin developing. This way you can't +> forget to compile the source files and will avoid headaches. + + +Testing +------- + +To test the library, open `test/test.html` in your browser or type `npm test` +which will run the tests in your console in a headless browser. + +The tests are also written in coffeescript in the `test/test.coffee` file, +and compiled with `grunt js` or `grunt watch`. + + +* Thanks for contributing!* +