From 3e6b8b2a863c7f4e680aeb27befb7dd2c4ed6e0d Mon Sep 17 00:00:00 2001 From: Ola Gasidlo Date: Mon, 27 Feb 2017 22:25:07 +0100 Subject: [PATCH] Issues #1363 - adding npm run lint/fix to CONTRIBUTE --- CONTRIBUTING.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 84fbfb088..0d44af94a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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`.