i using play framework static assets only, write javascripts , css files directly , test them in browser (firebug console). due fact messing around typos of time, use javascript code quality tools and/or compilers.
- a friend told me use jslint alerts me on code problems. seems me have install node.js run jslint on javascript assets, , don't have clue how integrate play sbt build process. before take on that, i'd ask: worthy? when use javascript compiler, jslint bring further advantages?
- coffeescript: -support should simple in play. it, because there should less write on coffeescript side. syntax checking, optimizing , minifying? can embed plain javascript if want optimize part myself while keeping on right place?
- google closure compiler: ok, 1 javascript javascript, can chain coffeescript? should have (code less, syntax check, optimization, minify), or can closure on own? optimize jquery snippets?
last question: there eclipse ide support coffeescript?
jslint used powerful tool, outdated far concerned. fails pick-up lot of patterns , newer practices , lot of es5 sugar. has poor semantic understanding , proper jsdoc can same job closure compiler. using both bit overkill , pointless.
coffeescript choice. compiles javascript , nice experience overall.
the textmate bundle when comes coffeescript.
https://github.com/jashkenas/coffee-script-tmbundle
you can find other nice ide integrations on official coffeescript page:
the closure compiler js js indeed, coffeescript compiles javascript , can use minify output of compiled coffeescript. should give nice performance boost. need add
jsdoc @annotationscoffeescript if want benefit full power of closure compiler. here's more on this.
Comments
Post a Comment