Merge pull request #709 from krzystof/master

Fix Main file in package.json
This commit is contained in:
Fez Vrasta 2015-10-30 18:12:42 +01:00
commit 81f25a7629
5 changed files with 63 additions and 54 deletions

View File

@ -14,15 +14,17 @@ Package.describe({
}); });
Package.onUse(function (api) { Package.onUse(function (api) {
api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']); api.versionsFrom('METEOR@1.2');
api.use('twbs:bootstrap@3.3.1'); api.use('twbs:bootstrap@3.3.1');
api.use('jquery'); api.use('jquery');
api.addFiles([ api.addAssets([
// we bundle all font files, but the client will request only one of them via the CSS @font-face rule // we bundle all font files, but the client will request only one of them via the CSS @font-face rule
'dist/fonts/Material-Design-Icons.eot', // IE8 or older 'dist/fonts/Material-Design-Icons.eot', // IE8 or older
'dist/fonts/Material-Design-Icons.svg', // SVG fallback for iOS < 5 - http://caniuse.com/#feat=svg-fonts, http://stackoverflow.com/a/11002874/126903 'dist/fonts/Material-Design-Icons.svg', // SVG fallback for iOS < 5 - http://caniuse.com/#feat=svg-fonts, http://stackoverflow.com/a/11002874/126903
'dist/fonts/Material-Design-Icons.ttf', // Android Browers 4.1, 4.3 - http://caniuse.com/#feat=ttf 'dist/fonts/Material-Design-Icons.ttf', // Android Browers 4.1, 4.3 - http://caniuse.com/#feat=ttf
'dist/fonts/Material-Design-Icons.woff', // Supported by all modern browsers 'dist/fonts/Material-Design-Icons.woff', // Supported by all modern browsers
], where);
api.addFiles([
'dist/css/material.css', 'dist/css/material.css',
'dist/css/ripples.css', 'dist/css/ripples.css',
'dist/js/material.js', 'dist/js/material.js',

View File

@ -44,6 +44,7 @@ var packageName; // there seems to be no official way of finding out the name o
var plugins = ['affix', 'alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'popover', 'scrollspy', 'tab', 'tooltip']; var plugins = ['affix', 'alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'popover', 'scrollspy', 'tab', 'tooltip'];
document.addEventListener('DOMContentLoaded', function() {
// test plugins // test plugins
plugins.forEach(function (plugin) { plugins.forEach(function (plugin) {
Tinytest.add('Plugin - ' + plugin, function (test) { Tinytest.add('Plugin - ' + plugin, function (test) {
@ -101,3 +102,5 @@ Tinytest.addAsync('Visual check - Material Design', function (test, done) {
}); });
}); });
});

View File

@ -14,15 +14,17 @@ Package.describe({
}); });
Package.onUse(function (api) { Package.onUse(function (api) {
api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']); api.versionsFrom('METEOR@1.2');
api.use('twbs:bootstrap@3.3.1'); api.use('twbs:bootstrap@3.3.1');
api.use('jquery'); api.use('jquery');
api.addFiles([ api.addAssets([
// we bundle all font files, but the client will request only one of them via the CSS @font-face rule // we bundle all font files, but the client will request only one of them via the CSS @font-face rule
'dist/fonts/Material-Design-Icons.eot', // IE8 or older 'dist/fonts/Material-Design-Icons.eot', // IE8 or older
'dist/fonts/Material-Design-Icons.svg', // SVG fallback for iOS < 5 - http://caniuse.com/#feat=svg-fonts, http://stackoverflow.com/a/11002874/126903 'dist/fonts/Material-Design-Icons.svg', // SVG fallback for iOS < 5 - http://caniuse.com/#feat=svg-fonts, http://stackoverflow.com/a/11002874/126903
'dist/fonts/Material-Design-Icons.ttf', // Android Browers 4.1, 4.3 - http://caniuse.com/#feat=ttf 'dist/fonts/Material-Design-Icons.ttf', // Android Browers 4.1, 4.3 - http://caniuse.com/#feat=ttf
'dist/fonts/Material-Design-Icons.woff', // Supported by all modern browsers 'dist/fonts/Material-Design-Icons.woff', // Supported by all modern browsers
], where);
api.addFiles([
'dist/css/material.css', 'dist/css/material.css',
'dist/css/ripples.css', 'dist/css/ripples.css',
'dist/js/material.js', 'dist/js/material.js',

View File

@ -2,7 +2,7 @@
"name": "bootstrap-material-design", "name": "bootstrap-material-design",
"version": "0.3.1-dev", "version": "0.3.1-dev",
"description": "Material Design for Bootstrap 3", "description": "Material Design for Bootstrap 3",
"main": "index.js", "main": "scripts/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },

2
scripts/index.js Normal file
View File

@ -0,0 +1,2 @@
require("./material.js");
require("./ripples.js");