Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeKit - any way to ignore js?

TLDR: CodeKit validates my crappy dev js, and alerts when it inevitably finds an error. Can I turn this off until I'm ready to polish in production?


This might technically be a question for superuser, but since it has explicit code and site layout implications, I thought it might be better suited here.

Been using CodeKit to compile my LESS sheets and compress my site images. CodeKit is insisting on validating the js it finds too - I'm still in development, so it inevitably finds an error and alerts on every single damn save. This is desired when I'm in production, but that's still a few weeks away. Is there any way to prevent js validation temporarily? Somehow toggle js validation? I tried turning off all the minifiers and uglifyers, but it still runs some base set of minifications.

I'd rather consider changing the environment structure as a last resort. All my site's media is contained in a /ui/ directory:

ui [watched]
-css
-images
-js
-less [compile to ../css]

In order to merely avoid watching /ui/js/, I would have to make these changes:

ui
-css [watched]
--less [compile to ../]
-images [watched]
-js

I'd have to watch two folders separately, change the site structure, and alter the compilation path - IMHO, this defeats the elegance of CodeKit, especially since I'd have to undo it when I reach prod.

like image 541
CodeMoose Avatar asked Apr 24 '13 15:04

CodeMoose


1 Answers

You can set it to not be compiled automatically:

enter image description here

or you can stop it from bringing CodeKit to the front on error:

enter image description here

like image 109
Prisoner Avatar answered Nov 17 '22 13:11

Prisoner