These are chat archives for amitu/importd

23rd
Feb 2015
Juan_Carlos
@juancarlospaco
Feb 23 2015 14:21
can we get LiveReload ?
Amit Upadhyay
@amitu
Feb 23 2015 14:31
yes we should.. i just discovered it..
care to send a patch?
Juan_Carlos
@juancarlospaco
Feb 23 2015 14:32
problem is the whole thing dont even starts... coffin import problem
I can try downgrading the djangos
Amit Upadhyay
@amitu
Feb 23 2015 14:33
i think we can fix coffin too.. we can put what coffin is expecting in the module it is expecting in :-p
i think we will need a dict as config, containing a bunch of "glob": "command" mappings
Amit Upadhyay
@amitu
Feb 23 2015 14:39
LR={"static/scss/*.scss,static/foundation/*.scss": "sassc -I static/foundation static/scss/main.scss > proj.css"}
this assumes that we do not need the output parameter as in server.watch('style.less', shell('lessc style.less', output='style.css'))
Juan_Carlos
@juancarlospaco
Feb 23 2015 14:42
that does not minify ?
Amit Upadhyay
@amitu
Feb 23 2015 14:54
it minifies too.. basically any command you want.. i would keep it command based instead of import based, so any command can be used to minify etc
Juan_Carlos
@juancarlospaco
Feb 23 2015 14:55
it minify CSS and HTML too ?
whole folders ?
Amit Upadhyay
@amitu
Feb 23 2015 14:56
like i said, CSS/JS mini-fication is done via commands.. key is a bunch of comma separated file globs, and value is the command to execute..
for HTML minification, well its not really job of live reload, its a completely separate topic, only meaningful in production.. so has to be handled by some decorator/middleware library..
Juan_Carlos
@juancarlospaco
Feb 23 2015 14:57
good
Amit Upadhyay
@amitu
Feb 23 2015 14:59
should be easy to implement..
https://github.com/lepture/python-livereload#django has already done most of the legwork..
i think we should use livereload as the command name as shown in example there..
Juan_Carlos
@juancarlospaco
Feb 23 2015 15:00
mines takes a whole folder and eats everything HTML/CSS/JS and output all compressed stripped, all one-liner
good
Amit Upadhyay
@amitu
Feb 23 2015 15:00
:-) you can use that as an external command? if so you can use it..
if i can't use it in my project, i suppose many would not be able to either.. command based interface is easiest, least limiting..
i think..