Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore): Add packaging for Meteor.js #3133

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -26,5 +26,7 @@ dist

.idea

.versions

# Coverage directory used by tools like istanbul
coverage/
1 change: 1 addition & 0 deletions README.md
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
34 changes: 34 additions & 0 deletions package.js
@@ -0,0 +1,34 @@
// 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.1.0';

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('angular:angular@1.4.3', where);
api.use('angular:angular-animate@1.4.3', where);
api.use('angular:angular-sanitize@1.4.3', where);
api.use('angularui:angular-ui-router@0.2.13_3', where);

// In case the Meteor project has the `fastclick` package,
// Load it first and cancel it (to use Ionic's one)
api.use('urigo:cancel-fastclick@0.0.2', where);

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'
], where);
});