diff --git a/.gitignore b/.gitignore index a40e064be88..99e88101444 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ temp dist .idea + +.versions diff --git a/README.md b/README.md index 98b14ea578f..7ce8a18c0cb 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/meteor/override-fastclick.js b/meteor/override-fastclick.js new file mode 100644 index 00000000000..e7f1d37a246 --- /dev/null +++ b/meteor/override-fastclick.js @@ -0,0 +1,6 @@ +// disable fastclick package in Meteor if included +if (Package.fastclick) { + Package.fastclick.FastClick.notNeeded = function() { + return true; + }; +} diff --git a/package.js b/package.js new file mode 100644 index 00000000000..2268c5ca436 --- /dev/null +++ b/package.js @@ -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.1'; + +Package.describe({ + name: packageName, + version: version, + summary: 'Ionic Framework official Meteor package', + git: 'git@github.com:driftyco/ionic.git' +}); + +Package.onUse(function(api) { + api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']); + + api.use('angularjs:angular@1.3.13', where); + api.use('angularjs:angular-animate@1.3.13', where); + api.use('angularjs:angular-sanitize@1.3.13', where); + api.use('angularui:angular-ui-router@0.2.13_3', where); + + api.use('fastclick@1.0.2', '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); +});