Git Product home page Git Product logo

Comments (12)

bzalasky avatar bzalasky commented on July 30, 2024

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.

plexus avatar plexus commented on July 30, 2024

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.

bzalasky avatar bzalasky commented on July 30, 2024

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.

bzalasky avatar bzalasky commented on July 30, 2024

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.

plexus avatar plexus commented on July 30, 2024

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.

plexus avatar plexus commented on July 30, 2024

@bzalasky did you make any progress on this? Anything you would like help with?

from chestnut.

bzalasky avatar bzalasky commented on July 30, 2024

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.

bzalasky avatar bzalasky commented on July 30, 2024

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.

plexus avatar plexus commented on July 30, 2024

cool!

from chestnut.

slester avatar slester commented on July 30, 2024

@bzalasky Any update with this? If you're not up for implementing it, I may give it a stab.

from chestnut.

bzalasky avatar bzalasky commented on July 30, 2024

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.

plexus avatar plexus commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.