diff --git a/meteor/package-fullpalette.js b/meteor/package-fullpalette.js deleted file mode 100644 index 0cd65533..00000000 --- a/meteor/package-fullpalette.js +++ /dev/null @@ -1,39 +0,0 @@ -// package metadata file for Meteor.js -'use strict'; - -var packageName = 'fezvrasta:bootstrap-material-design-fullpalette'; // https://atmospherejs.com/fezvrasta/bootstrap-material-design-fullpalette -var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing. - -var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); - -Package.describe({ - name: packageName, - summary: 'FezVrasta\'s Bootstrap theme implementing Google\'s Material (Paper) Design', - version: packageJson.version, - git: 'https://github.com/fezvrasta/bootstrap-material-design.git' -}); - -Package.onUse(function (api) { - api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']); - api.use('twbs:bootstrap@3.3.1'); - api.use('jquery'); - api.addFiles([ - // 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 - 'dist/css/bootstrap-material-design.css', - 'dist/css/ripples.css', - 'dist/js/material.js', - 'dist/js/ripples.js', - 'meteor/init.js' - ], where); -}); - -Package.onTest(function (api) { - api.use(packageName, where); - api.use(['tinytest', 'http'], where); - - api.addFiles('meteor/test.js', where); -}); diff --git a/meteor/package-noglyph.js b/meteor/package-noglyph.js deleted file mode 100644 index b22bd47d..00000000 --- a/meteor/package-noglyph.js +++ /dev/null @@ -1,39 +0,0 @@ -// package metadata file for Meteor.js -'use strict'; - -var packageName = 'fezvrasta:bootstrap-material-design-noglyph'; // https://atmospherejs.com/fezvrasta/bootstrap-material-design-noglyph -var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing. - -var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); - -Package.describe({ - name: packageName, - summary: 'FezVrasta\'s Bootstrap Google Material Design theme. Material icons instead of Bootstrap glyphicons.', - version: packageJson.version, - git: 'https://github.com/fezvrasta/bootstrap-material-design.git' -}); - -Package.onUse(function (api) { - api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']); - api.use('twbs:bootstrap-noglyph@3.3.1'); - api.use('jquery'); - api.addFiles([ - // 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 - 'dist/css/material.css', // includes @font-face rules to load the Roboto font - 'dist/css/ripples.css', - 'dist/js/material.js', - 'dist/js/ripples.js', - 'meteor/init.js' - ], where); -}); - -Package.onTest(function (api) { - api.use(packageName, where); - api.use(['tinytest', 'http'], where); - - api.addFiles('meteor/test.js', where); // same test because we don't test the glyphicons in particular (that's the job of twbs:bootstrap) -}); diff --git a/meteor/package-noicons.js b/meteor/package-noicons.js deleted file mode 100644 index 5c5c27d3..00000000 --- a/meteor/package-noicons.js +++ /dev/null @@ -1,34 +0,0 @@ -// package metadata file for Meteor.js -'use strict'; - -var packageName = 'fezvrasta:bootstrap-material-design-noicons'; // https://atmospherejs.com/fezvrasta/bootstrap-material-design-noicons -var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing. - -var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); - -Package.describe({ - name: packageName, - summary: 'FezVrasta\'s Bootstrap theme implementing Google\'s Material Design (Paper Elements). No icons.', - version: packageJson.version, - git: 'https://github.com/fezvrasta/bootstrap-material-design.git' -}); - -Package.onUse(function (api) { - api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']); - api.use('twbs:bootstrap-noglyph@3.3.1'); - api.use('jquery'); - api.addFiles([ - 'dist/css/material.css', // includes @font-face rules to load the Roboto font - 'dist/css/ripples.css', - 'dist/js/material.js', - 'dist/js/ripples.js', - 'meteor/init.js' - ], where); -}); - -Package.onTest(function (api) { - api.use(packageName, where); - api.use(['tinytest', 'http'], where); - - api.addFiles('meteor/test-noicons.js', where); -}); diff --git a/meteor/package.js b/meteor/package.js index f02c6fd9..620fd780 100644 --- a/meteor/package.js +++ b/meteor/package.js @@ -15,17 +15,10 @@ Package.describe({ Package.onUse(function (api) { api.versionsFrom('METEOR@1.2'); - api.use('twbs:bootstrap@3.3.1'); + api.use('twbs:bootstrap@3.3.6'); api.use('jquery'); - 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/bootstrap-material-design.css', 'dist/css/ripples.css', 'dist/js/material.js', 'dist/js/ripples.js', diff --git a/meteor/test-noicons.js b/meteor/test-noicons.js deleted file mode 100644 index 476b0e11..00000000 --- a/meteor/test-noicons.js +++ /dev/null @@ -1,63 +0,0 @@ -'use strict'; - -var packageName; // there seems to be no official way of finding out the name of the very package we're testing - http://stackoverflow.com/questions/27180709/in-a-tinytest-test-file-how-do-i-get-the-name-of-the-package - -var plugins = ['affix', 'alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'popover', 'scrollspy', 'tab', 'tooltip']; - -// 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) { - - Tinytest.addAsync('Visual check - ' + plugin, function (test, done) { - var bootstrapDropZone = document.createElement('div'); - document.body.appendChild(bootstrapDropZone); - - - HTTP.get('http://rawgit.com/twbs/bootstrap/master/js/tests/visual/' + plugin + '.html', function callback(error, result) { - if (error) { - test.fail('Error getting the test file. Do we have an Internet connection to rawgit.com?'); - } else { - // [^] matches across newlines. Stay within the container div, or else the fragment will attempt to load resources on its own. - bootstrapDropZone.innerHTML = result.content.match(/