cjohansen / juicer

A command line tool for JavaScript and CSS developers
630 stars 47 forks source link

Ability to change jsLint options #12

Open drogus opened 14 years ago

drogus commented 14 years ago

Juicer is a great library and I use it for some time now, but jsLint support is not working fine for me.

I use some third party libraries, which have many indentation issues and because of that jsLint fails with many many warnings that I will not touch anyway.

It whould be nice to have ability to change jsLint options for particular files or even disable jsLint for some of them (check only my files, leave third party libraries).

cjohansen commented 14 years ago

JsLint options can be set inside a comment in JavaScript files. Unfortunately, there's no way (atleast for now) to skip certain files from JsLint when you run "merge". You can, however, verify files manually by running juicer verify glob-pattern where glob-pattern could be something like "src/*/.js". Then you can skip the verification with merge with -s

ozten commented 14 years ago

Unfortunately, there's no way (atleast for now) to skip certain files +1

Devric commented 12 years ago

can you skip jslint when doing a js merge?

it keeps bitching about spacings! and undefined $ = jQuery

which is working perfectly fine. !note i fix the issue about spacings through using jsbeautifier (i was compiling with coffee at first) but not the undefined issue

cjohansen commented 12 years ago

juicer merge -s. Also juicer merge -h

jackhand commented 11 years ago

where is the documentation where this and other juicer options are specified?

cjohansen commented 11 years ago

There's not much. There's --help and http://cjohansen.no/en/ruby/juicer_a_css_and_javascript_packaging_tool

jackhand commented 11 years ago

thanks. I created a wiki page on this github so novices like me can quickly learn about juicer.

In regards to jslint. Is there a way to disable certain jslint options not just for a page but for the entire jslint experience? Should I create jslint command comments in the very 1st page that juicer checks?

cjohansen commented 11 years ago

Nice going on the wiki. Unfortunately there is no way to set global jslint options with Juicer. Setting options in a file will still be file-local. I guess you could have options in a file, combine it with all the others and then do lint on that...

monecchi commented 9 years ago

Thanks you all guys! juicer merge -s worked like a charm, I've successfully "juiced" about 20 mixed js/css files to a minimum size!!