Open drogus opened 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
Unfortunately, there's no way (atleast for now) to skip certain files +1
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
juicer merge -s
. Also juicer merge -h
where is the documentation where this and other juicer options are specified?
There's not much. There's --help
and http://cjohansen.no/en/ruby/juicer_a_css_and_javascript_packaging_tool
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?
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...
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!!
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).