mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-25 11:04:09 +03:00
Merge pull request #709 from krzystof/master
Fix Main file in package.json
This commit is contained in:
commit
81f25a7629
|
@ -14,15 +14,17 @@ Package.describe({
|
|||
});
|
||||
|
||||
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('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
|
||||
'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.ttf', // Android Browers 4.1, 4.3 - http://caniuse.com/#feat=ttf
|
||||
'dist/fonts/Material-Design-Icons.woff', // Supported by all modern browsers
|
||||
], where);
|
||||
api.addFiles([
|
||||
'dist/css/material.css',
|
||||
'dist/css/ripples.css',
|
||||
'dist/js/material.js',
|
||||
|
|
|
@ -44,15 +44,16 @@ 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'];
|
||||
|
||||
// test plugins
|
||||
plugins.forEach(function (plugin) {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// test plugins
|
||||
plugins.forEach(function (plugin) {
|
||||
Tinytest.add('Plugin - ' + plugin, function (test) {
|
||||
test.instanceOf($(document.body)[plugin], Function, 'instantiated correctly');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// visual check
|
||||
plugins.forEach(function (plugin) {
|
||||
// visual check
|
||||
plugins.forEach(function (plugin) {
|
||||
|
||||
Tinytest.addAsync('Visual check - ' + plugin, function (test, done) {
|
||||
var bootstrapDropZone = document.createElement('div');
|
||||
|
@ -73,10 +74,10 @@ plugins.forEach(function (plugin) {
|
|||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Tinytest.addAsync('Visual check - Material Design', function (test, done) {
|
||||
Tinytest.addAsync('Visual check - Material Design', function (test, done) {
|
||||
var bootstrapDropZone = document.createElement('div');
|
||||
document.body.appendChild(bootstrapDropZone);
|
||||
|
||||
|
@ -100,4 +101,6 @@ Tinytest.addAsync('Visual check - Material Design', function (test, done) {
|
|||
done();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
|
@ -14,15 +14,17 @@ Package.describe({
|
|||
});
|
||||
|
||||
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('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
|
||||
'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.ttf', // Android Browers 4.1, 4.3 - http://caniuse.com/#feat=ttf
|
||||
'dist/fonts/Material-Design-Icons.woff', // Supported by all modern browsers
|
||||
], where);
|
||||
api.addFiles([
|
||||
'dist/css/material.css',
|
||||
'dist/css/ripples.css',
|
||||
'dist/js/material.js',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "bootstrap-material-design",
|
||||
"version": "0.3.1-dev",
|
||||
"description": "Material Design for Bootstrap 3",
|
||||
"main": "index.js",
|
||||
"main": "scripts/index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
|
2
scripts/index.js
Normal file
2
scripts/index.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
require("./material.js");
|
||||
require("./ripples.js");
|
Loading…
Reference in New Issue
Block a user