mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-16 02:00:28 +08:00
ea0298788a
Also improve tests, publishing, README Link in the main README to the Meteor README after the Component section
34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
// package metadata file for Meteor.js
|
|
|
|
var packageName = 'fortawesome:fontawesome-compat'; // http://atmospherejs.com/fortawesome/fontawesome-compat
|
|
var where = 'client'; // where to install: 'client', 'server', or ['client', 'server']
|
|
|
|
var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json'));
|
|
|
|
Package.describe({
|
|
name: packageName,
|
|
summary: 'Compatibility package for old browsers. Use fortawesome:fontawesome instead.',
|
|
version: packageJson.version,
|
|
git: 'https://github.com/FortAwesome/Font-Awesome.git'
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.versionsFrom('METEOR@0.9.2.1');
|
|
api.addFiles([
|
|
'fonts/fontawesome-webfont.eot', // IE8 or older
|
|
'fonts/fontawesome-webfont.svg', // SVG fallback for iOS < 5 - http://caniuse.com/#feat=svg-fonts, http://stackoverflow.com/a/11002874/1269037
|
|
'fonts/fontawesome-webfont.ttf', // Android Browers 4.1, 4.3 - http://caniuse.com/#feat=ttf
|
|
'fonts/fontawesome-webfont.woff', // Most modern browsers
|
|
|
|
'css/font-awesome.css'
|
|
], where);
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use(packageName, where);
|
|
api.use(['tinytest', 'http'], where);
|
|
|
|
// TODO we should just bring in src/test.html - but how to do that with TinyTest?
|
|
api.addFiles('meteor/test-fontcompat.js', where);
|
|
});
|