Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 2.58 KB

CONTRIBUTING.md

File metadata and controls

71 lines (50 loc) · 2.58 KB

Contributing to prose

Thanks for thinking of contributing to prose! Whether you are here to report issues or develop on the project the sections below provide outlines on how to get started.

Reporting Issues

Here's a quick list of things to consider before submitting an issue:

And when in doubt, be over-descriptive of the bug and how you discovered it.

Building / Installing

prose uses Browserify with Make to manage dependencies and build. Development also requires you have node.js installed.

To get started:

  1. Install node.js. 'Install' will download a package for your OS.
  2. Go to the directory where you have checked out prose
  3. Run npm install
  4. Run make
  5. To run prose with authentication you'll need to add an oauth.json file to the root directory with the following contents:
{
  "clientId": "c602a8bd54b1e774f864",
  "gatekeeperUrl": "http://prose-gatekeeper.herokuapp.com"
}

Note that you should not commit this file to a remote repo or along with a pull request.

Finally, If you have python handy, from the project root run python -m SimpleHTTPServer to start a server and run the site locally. By default prose will be set up on http://localhost:8000.

For any changes you make to the codebase, you'll need to run make to package code into a minified prose.min.js and see changes.

ProTip: You may want to install watch so you can run watch make without needing to execute make on every change.

Code Style

Javascript

We use the Airbnb style for Javascript with a few differences:

No aligned =, no aligned arguments, spaces are either indents or the 1 space between expressions. No hard tabs, ever. Javascript code should pass through JSHint with no warnings.

CSS & Markup

  • Single Quotes
  • 2 spaces soft tabs

for CSS, use classes to target elements