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
30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
// package metadata file for Meteor.js
|
|
|
|
var packageName = 'fortawesome:fontawesome'; // http://atmospherejs.com/fortawesome/fontawesome
|
|
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: 'Font Awesome (official): 470+ scalable vector icons, customizable via CSS, Retina friendly',
|
|
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.woff', // Supported by all modern browsers. For compatibility with older browsers (that somehow still run Meteor), use the package-fontcompat.js file.
|
|
'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.js', where);
|
|
});
|