Open udondan opened 10 years ago
Hola amigo! You should head over to @Nemo64's package: https://github.com/Nemo64/meteor-bootstrap which does exactly this.
Hola @simison,
I tried Nemos package. The problem is, I can actually not use it within another package, if the user did not already use Nemos package. Furthermore the user would need to use the exact name custom.bootstrap.json so I can actually include the less files. If the json was named differently, the less file will be named different too and I can't include it... While that's an awesome package, it's not usable inside other modules (yet). I pushed a PR to Nemos package, to get a bit closer but still can not get it working with other packages.
Cheers, Daniel
This thing with package requirements & Bootstrap is somewhat annoying with Meteor. When each package requires different Bootstrap package, imagine the amount of duplicate code ending up to browser...
Anyway, it's just silly that /packages
isn't public anymore. :-(
@udondan wanna send a PR to update the readme?
This thing with package requirements & Bootstrap is somewhat annoying with Meteor. When each package requires different Bootstrap package, imagine the amount of duplicate code ending up to browser...
Yes, I see that. Though in my case I only need the mixins, not adding the actual css from bootstrap. And that won't work with @Nemo64's package (yet). I hope it will in future.
Anyway, it's just silly that /packages isn't public anymore. :-(
Totally agreed. But as @juliancwirko pointed out in #29 it's possible with this ugly path... see #32.
wanna send a PR to update the readme?
Sure! Let's first see how #32 works. I can't replicate the exact scenario here with a locally cloned package. Want to be sure it works after you merged #32.
That's not a problem of this package. I have a package which depends on this one. In one of my less files I
@import
thevariables.import.less
file which in the past worked fine withmrt
. But now, while publishing the package withmeteor
, it seems to build the package and then fails because of the missing@import
file.The solution was to make that path available during build time inside of your package directory. You can create a symlink to the
packages
directory of any random meteor app where thebootstrap3-less
package is added. If you don't have such app you could simply create apackages
directory and downloadbootstrap3-less
into it.You might want to make sure to add the
packages
symlink/folder to your.gitignore
file!@simison Maybe you want to add this info to the readme.