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 pile my LESS sheets and press 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 [pile to ../css]
In order to merely avoid watching /ui/js/
, I would have to make these changes:
ui
-css [watched]
--less [pile to ../]
-images [watched]
-js
I'd have to watch two folders separately, change the site structure, and alter the pilation path - IMHO, this defeats the elegance of CodeKit, especially since I'd have to undo it when I reach prod.
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 pile my LESS sheets and press 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 [pile to ../css]
In order to merely avoid watching /ui/js/
, I would have to make these changes:
ui
-css [watched]
--less [pile to ../]
-images [watched]
-js
I'd have to watch two folders separately, change the site structure, and alter the pilation path - IMHO, this defeats the elegance of CodeKit, especially since I'd have to undo it when I reach prod.
Share Improve this question edited Apr 24, 2013 at 15:27 Patrick McElhaney 59.4k41 gold badges137 silver badges170 bronze badges asked Apr 24, 2013 at 15:24 CodeMooseCodeMoose 3,0254 gold badges33 silver badges57 bronze badges 5- You should polish your code in dev too. – SLaks Commented Apr 24, 2013 at 15:26
- 2 Just ditch CodeKit and use a text editor like a boss. – MaxArt Commented Apr 24, 2013 at 15:29
- 6 @MaxArt CodeKit's not an IDE, boss. – Patrick McElhaney Commented Apr 24, 2013 at 15:32
- Lol @MaxArt. That's my usual - my teammate started this project on LESS so there's no going back. – CodeMoose Commented Apr 24, 2013 at 15:35
- @SLaks I do optimize in dev, but my practices aren't nearly as strict as JSLint's standards. I find it's faster to market if I rip out code then go back and standardize. – CodeMoose Commented Apr 24, 2013 at 15:39
1 Answer
Reset to default 7You can set it to not be piled automatically:
or you can stop it from bringing CodeKit to the front on error:
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742345632a4426485.html
评论列表(0条)