Comments (2)
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 thepackage.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.
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)
- Won't load despite main being defined
- Error while starting meteor HOT 7
- Using a specific js file from a dependency HOT 1
- Javascript files not loaded in client when _originalSource != name HOT 2
- Error when adding package on my meteor app HOT 2
- Question: Where can I put the bower folder in? HOT 2
- Bower dependencies list must be a dictionary HOT 1
- Excluding files from dependency
- ignoredDependencies not working HOT 3
- Meteor not loading bower package HOT 5
- After upgrade to 1.3: Packages not available anymore HOT 6
- Can't find dependencies modules anymore meteor 1.2 HOT 2
- bower old
- ignoredDependencies does not work HOT 1
- Unknown error with empty dependency list HOT 7
- Remove installed package HOT 1
- JS load order with bower install --save
- Bower package loads in lib/main.jsx but not in lib/transit.jsx
- Fails silently in Meteor 1.2+ HOT 4
- Local Database Fails to Start after installing Polymer HOT 5
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 meteor-bower.