Skip to content

Commit

Permalink
Meteor 1.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zimme committed Oct 22, 2015
1 parent b80a961 commit 21705b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion client/helpers.coffee
@@ -1,6 +1,7 @@
return unless Package.templating
return unless Package.templating and Package.spacebars

Template = Package.templating.Template
Spacebars = Package.spacebars.Spacebars

isActive = (type, inverse = false) ->
helperName = 'is'
Expand Down
14 changes: 9 additions & 5 deletions package.js
Expand Up @@ -6,7 +6,7 @@ Package.describe({
});

Package.onUse(function(api) {
api.versionsFrom('1.0');
api.versionsFrom(['1.0', '1.2']);

api.use([
'check',
Expand All @@ -20,7 +20,7 @@ Package.onUse(function(api) {
'meteorhacks:flow-router@1.8.0',
'iron:router@1.0.0',
'templating'
], ['client', 'server'], {weak: true});
], {weak: true});

api.export('ActiveRoute');

Expand All @@ -30,15 +30,19 @@ Package.onUse(function(api) {
});

Package.onTest(function(api) {
api.versionsFrom('1.0');
api.versionsFrom(['1.0', '1.2']);

api.use([
'check',
'coffeescript',
'reactive-dict',
'templating',
'underscore'
]);

api.use([
'mike:mocha-package@0.5.7',
'practicalmeteor:chai@1.9.2_3',
'reactive-dict',
'underscore',
'zimme:active-route'
]);

Expand Down

0 comments on commit 21705b1

Please sign in to comment.