2014-11-26 21:01:54 +08:00
// package metadata file for Meteor.js
2014-11-28 11:12:40 +08:00
var packageName = 'fortawesome:fontawesome' ; // http://atmospherejs.com/fortawesome/fontawesome
2014-11-26 21:01:54 +08:00
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 ,
2014-11-28 11:12:40 +08:00
git : 'https://github.com/FortAwesome/Font-Awesome.git'
2014-11-26 21:01:54 +08:00
} ) ;
Package . onUse ( function ( api ) {
api . versionsFrom ( 'METEOR@0.9.2.1' ) ;
api . addFiles ( [
2014-11-28 11:12:40 +08:00
'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.
2014-11-26 21:01:54 +08:00
'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 ) ;
} ) ;