Giter VIP home page Giter VIP logo

Comments (2)

mquandalle avatar mquandalle commented on May 28, 2024

I wonder how many bower packages are in this situation. Bower is supposed to be a client side package manager, so files listed in the "main" field should be compiled in html/js/css/assets because other file extensions such as .coffee or .scss aren't supported on the browser.

In this case I guess we don't want to compile all scss files in one big css, but instead we want to include mixins in our own scss files and then compile it in css on the server side. So bower doesn't appear as a good client for this job:

Manager Client Server
NPM
Bower
Atmosphere

Why not create an atmosphere package that will:

  • rely on the NPM sass package for the compilation
  • include the bootstrap-sass repository as a git submodule
  • manually add js and assets with the package.js API

BTW it's not possible (yet?) to include in the bundle a scss, a coffee or even a html file. The current API allows only: addJavascript, addStylesheet and addAsset see here.

So automatic bundling of this package doesn't seem feasible in the current state of both meteor and bower APIs.

from meteor-bower.

rdickert avatar rdickert commented on May 28, 2024

Thanks for the thoughtful response. This may just be a "won't fix" issue, and I won't be offended if you just close with no action.

It's the build step that is the killer. I guess I would agree that including bootstrap.scss in main is a mistake on Twitter's part - it has to be compiled to use it even though it is a client side library, whereas it seems like main is for files that should be loaded directly by the browser. If we are going to add config, perhaps it makes more sense to let a smart package be the recipient of that since it can manage build, client, and server. Anyway, thanks for taking the time to think about this. :-)

from meteor-bower.

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.