Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

evolve build/deploy process for SCSS #520

Closed
chadwhitacre opened this issue Jan 24, 2013 · 12 comments
Closed

evolve build/deploy process for SCSS #520

chadwhitacre opened this issue Jan 24, 2013 · 12 comments

Comments

@chadwhitacre
Copy link
Contributor

@nicksergeant is building out #516 using SCSS. @clone1018 raises the point that this means we'll need to evolve our build and deploy systems accordingly.

@nicksergeant
Copy link
Contributor

@whit537 what's your current build process look like?

@chadwhitacre
Copy link
Contributor Author

@nicksergeant We have a Makefile, but we're looking to port to a Python-based build system to better support Windows (#426).

@chadwhitacre
Copy link
Contributor Author

@nicksergeant And then for deployment I use release.sh.

@nicksergeant
Copy link
Contributor

Cool - if you're looking to move to Python, check out Fabric: http://fabfile.org

@chadwhitacre
Copy link
Contributor Author

Word.

@nicksergeant
Copy link
Contributor

At any rate, your compilation process needs to simply make a call to the scss program like so:

scss -t compressed path/to/css/file.scss path/to/output/css/file.css

The scss program can be installed like so:

http://sass-lang.com/download.html

@nicksergeant
Copy link
Contributor

(the scss program will be installed along with sass)

@pjz
Copy link

pjz commented Jan 24, 2013

So I did some prototyping that used aspen and fabricate ( https://code.google.com/p/fabricate/ ) to auto-re-compile files as necessary. It's not rocket science; you just make a simplate that has the build recipe for that one file in it as the 'every' action of the simplate, then either manually set the reply body or use a template engine passthrough to return the result.

@chadwhitacre
Copy link
Contributor Author

@pjz Mind posting it as a gist?

chadwhitacre added a commit that referenced this issue Feb 5, 2013
This is going to be complicated enough that we should reticket specific
pages. Here we have the asset files moved into place and a `make css`
target set up (#520). The homepage is roughed in but needs work yet.
@pjz
Copy link

pjz commented Feb 8, 2013

The bottom of https://gist.github.com/pjz/4159060 is what I was toying with.

@pjz
Copy link

pjz commented Feb 8, 2013

but https://gist.github.com/pjz/4737190 would be simpler. (untested)

@chadwhitacre
Copy link
Contributor Author

This is great, @pjz, thanks. !m

Right now I've been using watch -n1 scss -t compressed in out, but that's inefficient and clunky. I believe there are some js autoreloading tools for this, but this solution integrates nicely with our current setup. We should do this in a way that doesn't require scss in production, of course.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants