Skip to content

Commit

Permalink
(chore): Add packaging for Meteor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Urigo committed Mar 20, 2015
1 parent e917cae commit 30114ec
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ temp
dist

.idea

.versions
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $ ionic start myproject
* The `release` folder of this repository
* Ionic CDN: [Latest Release](http://code.ionicframework.com/)
* Using bower: `bower install ionic`
* For [Meteor](https://www.meteor.com/) applications: `meteor add driftyco:ionic`
- Download the **bleeding edge just-from-master release** from:
* Ionic CDN: [Nightly Build](http://code.ionicframework.com/#nightly)
* Using bower: `bower install driftyco/ionic-bower#master`
Expand Down
6 changes: 6 additions & 0 deletions meteor/override-fastclick.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// disable fastclick package in Meteor if included
if (Package.fastclick) {
Package.fastclick.FastClick.notNeeded = function() {
return true;
};
}
33 changes: 33 additions & 0 deletions package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// package metadata file for Meteor.js
var packageName = 'driftyco:ionic'; // https://atmospherejs.com/driftyco/ionic
var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing.
var version = '1.0.0-rc.0';

Package.describe({
name: packageName,
version: version,
summary: 'Ionic Framework official Meteor package',
git: '[email protected]:driftyco/ionic.git'
});

Package.onUse(function(api) {
api.versionsFrom(['[email protected]', '[email protected]']);

api.use('angularjs:[email protected]', where);
api.use('angularjs:[email protected]', where);
api.use('angularjs:[email protected]', where);
api.use('angularui:[email protected]_3', where);

api.use('[email protected]', 'client', {weak : true});

api.addFiles([
'release/css/ionic.css',
'release/fonts/ionicons.eot',
'release/fonts/ionicons.svg',
'release/fonts/ionicons.ttf',
'release/fonts/ionicons.woff',
'release/js/ionic.js',
'release/js/ionic-angular.js',
'meteor/override-fastclick.js' // Stop Meteor's Fastclick in favor of Ionic one
], where);
});

0 comments on commit 30114ec

Please sign in to comment.