Opened on 02/13/2017 at 04:26:37 PM
Closed on 07/18/2017 at 12:53:52 PM
#4888 closed change (duplicate)
Add SCSS build feature to CMS or website infrastructure
Reported by: | juliandoucette | Assignee: | |
---|---|---|---|
Priority: | Unknown | Milestone: | |
Module: | Sitescripts | Keywords: | |
Cc: | kvas, jsonesen, philll, saroyanm, matze | Blocked By: | |
Blocking: | Platform: | Unknown / Cross platform | |
Ready: | no | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description
Background
We have started using SCSS in websites projects starting with acceptableads.com. Because acceptableads.com had a hard deadline, we decided that it was acceptable to push CSS built by SCSS into our website repository. However, this is a bad idea because it adds duplicate code to the repository.
What to change
I suggest we do one of the following:
- Integrate a build command into our websites infrastructure
- This could be done via CMS or cron?
- Integrate building SCSS into our CMS test server and build command
Attachments (0)
Change History (2)
Note: See
TracTickets for help on using
tickets.
If we're going to use SCSS for all/most of our websites (which is probably not a bad idea) it would be useful to add support for it to the CMS. Perhaps it would be even better to have it as some kind of extension (at the moment we don't have any kind of extension support in the CMS but it seems like it would be good to add it). Anyway, Julian, could you describe in a bit more detail how you could see this working as a part of CMS? Something like "I put the SCSS files here, they are compiled at this stage and available under this URL, ..."
As for implementation part, I looked at Python libraries for SCSS and I found these three:
At the first look pyScss seems the best fit for what we're doing to it. Also the APIs of pyScss and libsass-python seem fairly similar so if we figure out that we want to go for the latter, it should not be too hard to switch.