Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing #1363 - adding npm run lint/fix to CONTRIBUTE #1366

Merged
merged 1 commit into from
Feb 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,26 @@ npm run watch

## Coding

Build the entire project (CSS and JavaScript files and optimize images) on the fly everytime you save a file to see changes immediately.

``` bash
# watching CSS and JS
npm run watch
```
``` bash
# watching CSS and JS
npm run watch
```

Linting static JS files with project coding styles.

``` bash
# linting style JS
npm run lint
```

Fixing static JS files with project coding styles, if an error occurs.

``` bash
# fixing linting style JS
npm run fix
```

By default, a build will *not* optimize images (which is done before deploys). If you'd like to optimize images, you can run `grunt imagemin`.

Expand Down