Comments (12)
I'm interested in working on this. Still a bit new to Clojure, but I think I should be able to figure it out. Right now I'm using Sprockets-Standalone in a side project with Chestnut, but this is probably better for Chestnut moving forward.
The one positive with Sprockets is that it takes care of mapping asset filenames to their fingerprinted counterparts for cache-busting. I don't think it would be terribly difficult to implement, but it would need to handle all asset types (images, js, css, etc..). Definitely beyond the scope of what this PR will be...
from chestnut.
Thanks for your interest in helping out with this. The main missing piece is a leiningen plugin so we can easily hook sass compilation in. Looking at some of the existing plugins like line-auto, lein-cljx or lein-less should give you a good starting point.
I'm personally not a fan of Sprockets, I've had way too much pain dealing with Sprockets in Rails apps. There's a Clojure alternative, Stefon, which looks promising (it's by CircleCI). But in general we're trying not to add more complexity to Chestnut. Testing all the different flags is already a massive chore.
Recipes in the docs for adding Stefon or Sprockets would be very cool though.
Anyway, good luck with this. Ping me if you like me to review any code.
from chestnut.
Totally understand your thoughts on Sprockets. I have mixed feelings myself. All I'm using it for is generating asset fingerprints. I hope to replace it with something lighter weight in the future.
from chestnut.
Was going to start working on this today, but remembered that there is a lein-haml-sass plugin already. Is there a compelling reason not to use this? It's not been updated in awhile, but I can confirm that it still works. The only other knock is that it bundles Haml and Sass together, though it provides separate commands for each, and I'm not sure it's that big of a deal since it's just a dev dependency. It also supports both *.sass and *.scss.
If you think it's worth it, I'm still down for extracting the Sass functionality out and making sure it stays maintained.
from chestnut.
That looks perfect! Would be happy to have that instead of the current
sassc stuff.
On 11 Jan 2015 20:02, "Benjamin Zalasky" [email protected] wrote:
Was going to start working on this today, but remembered that there is a
lein-haml-sass https://github.com/rtircher/lein-haml-sass plugin
already. Is there a compelling reason not to use this? It's not been
updated in awhile, but I can confirm that it still works. The only other
knock is that it bundles Haml and Sass together, though it provides
separate commands for each, and I'm not sure it's that big of a deal since
it's just a dev dependency. It also supports both *.sass and *.scss.If you think it's worth it, I'm still down for extracting the Sass
functionality out and making sure it stays maintained.—
Reply to this email directly or view it on GitHub
#70 (comment).
from chestnut.
@bzalasky did you make any progress on this? Anything you would like help with?
from chestnut.
I was a bit distracted the month of January, but put in some work tonight. Hopefully, can get to the point of having a good question to ask by the end of the weekend. Thanks for following up!
from chestnut.
Got most of this done this weekend. Still need to debug a bit though, as things didn't seem to be working when I ran lein install and tested out the changes. Will work on it a bit more this evening.
from chestnut.
cool!
from chestnut.
@bzalasky Any update with this? If you're not up for implementing it, I may give it a stab.
from chestnut.
Sorry for dropping off the thread for a bit there (got super busy getting a product released). I ended up just handling this outside of Chestnut. Feel free to take a stab at it though.
from chestnut.
I'm no longer convinced this is something we should have in chestnut as a flag. I'm leaning towards dropping less and sass support, and instead documenting how to add them yourself. that way we can also provide install instructions for libsass.
from chestnut.
Related Issues (20)
- [Help] Tweaking the template to work with nodejs repl HOT 3
- Sass compiling doesn't work HOT 1
- om/om.next HOT 4
- Calling `(reset)` at the cljs-repl causes the system to be completely dropped HOT 2
- Trouble setting up HOT 2
- Figwheel version might need to be updated to latest HOT 7
- cider-cljs-lein-repl is obsolete (since 0.17); use ‘cider-default-cljs-repl’ instead HOT 1
- [Version 0.16.0 (67651e9d)] index.html references inexistent .js file, figwheel version inconsistency HOT 11
- Error when starting the application HOT 3
- Heroku procfile out of date HOT 1
- java.io.FileNotFoundException: Could not locate my_app/server__init.class or my_app/server.clj on classpath HOT 3
- Unrecognized option: +bidi HOT 2
- REPL server launch timed out HOT 4
- Figwheel CIDER middleware doesn't seem to be working. HOT 2
- Unable to resolve var: cider.piggieback/wrap-cljs-repl in this context HOT 5
- Repl never prompts HOT 11
- (go) has to be called every time a route is changed. HOT 1
- (go) not working (on repeat) HOT 1
- Cannot use resources folder in cljs. HOT 3
- (go) does not work in an Emacs CIDER REPL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chestnut.