Skip to content

Commit

Permalink
Updates to package.js for Meteor
Browse files Browse the repository at this point in the history
Add the minified version of Bootstrap's CSS and JS bundle file, which includes Popper.js.
Add sourcemaps for CSS and JS, as this is giving a warning in the browser console.
Add jQuery as a required dependency from the Meteor core package.

Resolves issue #30843
  • Loading branch information
sarahmattar committed May 28, 2020
1 parent d906349 commit 0d80f02
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions package.js
@@ -1,16 +1,22 @@
// package metadata file for Meteor.js

Package.describe({
name: 'twbs:bootstrap', // https://atmospherejs.com/twbs/bootstrap
summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
version: '5.0.0-alpha1',
git: 'https://github.com/twbs/bootstrap.git'
name: "twbs:bootstrap", // https://atmospherejs.com/twbs/bootstrap
summary:
"The most popular front-end framework for developing responsive, mobile first projects on the web.",
version: "5.0.0-alpha1",
git: "https://github.com/twbs/bootstrap.git",
});

Package.onUse(function (api) {
api.versionsFrom('METEOR@1.0');
api.addFiles([
'dist/css/bootstrap.css',
'dist/js/bootstrap.js'
], 'client');
api.versionsFrom("METEOR@1.0");
api.use("jquery");
api.addFiles(
["dist/css/bootstrap.min.css", "dist/js/bootstrap.bundle.min.js"],
"client"
);
api.addAssets(
["dist/css/bootstrap.min.css.map", "dist/js/bootstrap.bundle.min.js.map"],
"client"
);
});

0 comments on commit 0d80f02

Please sign in to comment.