A js lint plugin for grails
Groovy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
grails-app/conf
scripts
web-app/WEB-INF
.classpath
.gitignore
.project
GrailsJslintGrailsPlugin.groovy
application.properties
readme.md

readme.md

jsLint for Grails

Paul Woods

This grails 2.0 plugin runs jsLint on the javascript of your application.

How to Use

  1. just install the plugin to your application

grails install-plugin jslint

  1. Then run the plugin

grails jslint

  1. And review the report

\target\jslint.html

What is does

  1. It loads the javascript in your application a. \web-inf\js folder b. \grails-app\views**.gsp inside script tags. c. \grails-app\views**.gsp inside g:javascript tags. d. \grails-app\views***.gsp inside r:script tags.

  2. its runs jsLint on all of the scripts

  3. it builds a HTML report of the results