meteor-bower icon indicating copy to clipboard operation
meteor-bower copied to clipboard

Question: Where can I put the bower folder in?

Open derwaldgeist opened this issue 8 years ago • 2 comments

Per default, the bower folder is located under .meteor/local/bower. This worked for me in Meteor 1.1, but causes problems with fourseven:scss, because this package cannot reference SCSS files in this folder any more.

So I am looking for an alternative folder to store my sass files. I tried /client and /server, but in both cases I only get error messages. It seems as if the bower.json files included in the downloaded packages are causing these symptoms.

The errors do not appear if I try to use the public/ or private/ folders. Unfortunately, these folders cannot be referenced by fourseven:scss, so I am in a kind of deadlock situation between these two packages. Besides this, public/ would not be a good option either, because it is downloaded to mobile devices on hot-code pushes.

Is there any way to use the /client folder as a bower target?

The only thing I got working was to download to a package folder, but this would force me to reference each and every scss separately in the package.js file - otherwise they are ignored by fourseven:scss.

My use case is to use bower to download sass files from external vendors, like materialize and bootstrap, but not as a whole, so I can cherry-pick the parts I am actually needing.

derwaldgeist avatar Dec 10 '15 22:12 derwaldgeist

I see the problem, but sorry to say I don't know of a solution.

lorensr avatar Dec 10 '15 23:12 lorensr

I solved this now going the "hard way", i.e. by referencing each and every SCSS file in a package. But this is far from optimal. I asked the maintainers of fourseven:scss if they could re-enable the .meteor/ folder. They did this once on a branch as an experiment, but it is not part of the official release.

Anyway, I think it would be a good thing anyways if the bower package could state where exactly the bower folder may be located. This would save some frustration :-)

derwaldgeist avatar Dec 12 '15 13:12 derwaldgeist