Skip to content

Commit af1bfef

Browse files
Urigoperrygovier
authored andcommitted
feat(meteor): add meteor support Closes #3133
1 parent 500cf94 commit af1bfef

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ dist
2626

2727
.idea
2828

29+
.versions
30+
2931
# Coverage directory used by tools like istanbul
3032
coverage/

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ $ ionic start myproject
4141
* The `release` folder of this repository
4242
* Ionic CDN: [Latest Release](http://code.ionicframework.com/)
4343
* Using bower: `bower install ionic`
44+
* For [Meteor](https://www.meteor.com/) applications: `meteor add driftyco:ionic`
4445
- Download the **bleeding edge just-from-master release** from:
4546
* Ionic CDN: [Nightly Build](http://code.ionicframework.com/#nightly)
4647
* Using bower: `bower install driftyco/ionic-bower#master`

package.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// package metadata file for Meteor.js
2+
var packageName = 'driftyco:ionic'; // https://atmospherejs.com/driftyco/ionic
3+
var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing.
4+
var version = '1.1.0';
5+
6+
Package.describe({
7+
name: packageName,
8+
version: version,
9+
summary: 'Ionic Framework official Meteor package',
10+
git: '[email protected]:driftyco/ionic.git'
11+
});
12+
13+
Package.onUse(function(api) {
14+
api.versionsFrom(['[email protected]', '[email protected]']);
15+
16+
api.use('angular:[email protected]', where);
17+
api.use('angular:[email protected]', where);
18+
api.use('angular:[email protected]', where);
19+
api.use('angularui:[email protected]_3', where);
20+
21+
// In case the Meteor project has the `fastclick` package,
22+
// Load it first and cancel it (to use Ionic's one)
23+
api.use('urigo:[email protected]', where);
24+
25+
api.addFiles([
26+
'release/css/ionic.css',
27+
'release/fonts/ionicons.eot',
28+
'release/fonts/ionicons.svg',
29+
'release/fonts/ionicons.ttf',
30+
'release/fonts/ionicons.woff',
31+
'release/js/ionic.js',
32+
'release/js/ionic-angular.js'
33+
], where);
34+
});

0 commit comments

Comments
 (0)