Meteor Differential Boilerplate - Compatibility file required and when to use the bootstrap package

I was looking at the Meteor Tile Differential App and noticed that they are not using the bootstrap package and also saw the directory / file to the client directory linked - client / compatibility / bootstrap.js

I was wondering if anyone has an explanation as to why / when you want to avoid using a package like twbs: bootstrap and when you'd need to create a compatibility file.

0


source to share


1 answer


I would argue that this is a lazy way to include external libraries in a Meteor application.

Basically you have two ways to achieve this:

  • Glory Road. Create a package ( meteor create --package

    ), clone the source inside it, then edit and Meteorize the source (declare variables with package scope, not window scope, ...). You can then publish this package to Atmosphere so others can benefit from it.

  • Copy / paste everything into a folder client/compatibility

    .



As explained in the docs , everything in this folder is not covered by the IIFE and is executed before other code files.

When you have time, be brave and take the path of heroes.

0


source







All Articles