#Meteor Compatibility
nemo64:bootstrap
does not work with Meteor 1.2+. huttonr/bootstrap3
is a another similar package that works also with 1.2.
This package integrates bootstrap into meteor and lets you configure what parts you need.
- execute
meteor add nemo64:bootstrap less
- create an empty
custom.bootstrap.json
file somewhere in your project. (/client/lib/custom.bootstrap.json
for example) - start meteor and then edit the file you just created (see custom.bootstrap.json).
- (optional) edit
custom.bootstrap.import.less
which now appeared next to the json file
This file is to configure which bootstrap parts you need in your project. Set those you like to true
!
If the file is empty, it will be filled for with the following content:
{
"modules" : {
"normalize" : true,
"print" : false,
"glyphicons" : false,
"scaffolding" : false,
"type" : false,
"code" : false,
"grid" : false,
"tables" : false,
"forms" : false,
"buttons" : false,
"component-animations" : false,
"dropdowns" : false,
"button-groups" : false,
"input-groups" : false,
"navs" : false,
"navbar" : false,
"breadcrumbs" : false,
"pagination" : false,
"pager" : false,
"labels" : false,
"badges" : false,
"jumbotron" : false,
"thumbnails" : false,
"alerts" : false,
"progress-bars" : false,
"media" : false,
"list-group" : false,
"panels" : false,
"responsive-embed" : false,
"wells" : false,
"close" : false,
"modals" : false,
"tooltip" : false,
"popovers" : false,
"carousel" : false,
"affix" : false,
"alert" : false,
"button" : false,
"collapse" : false,
"scrollspy" : false,
"tab" : false,
"transition" : false,
"utilities" : false,
"responsive-utilities" : false
}
}
After upgrading using meteor update
, you may get an error stating:
While building the application:
client/lib/custom.bootstrap.less:1629:18: Less compiler error: ...
This is due to the upstream Bootstrap library introducing LESS variables that your project is not aware of. The quickest fix is to execute the following script from within your project:
curl https://raw.githubusercontent.com/Nemo64/meteor-bootstrap/master/upgrade/upgrade-3.3.4-3.3.5.sh | /bin/bash
Alternately, you can manually apply this patch to custom.bootstrap.less
:
Contributions are always welcome. I'm also searching for collaborators becuase I'm currently not actively deveolping with meteor. If you area interested, write me at git@marco.zone
This package is licensed with the MIT license. Also, look at the Bootstrap license.
This package is based on and inspired by the bootstrap3-less package. I created a new repository because it takes a completely different approach now which is also incompatible.