From f71724bb7d754fc0e790b52df6d1dd1b06913313 Mon Sep 17 00:00:00 2001 From: Daniel Holzmann Date: Wed, 14 Oct 2015 16:35:36 +0200 Subject: [PATCH 1/2] add package.js for Meteor support --- package.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package.js diff --git a/package.js b/package.js new file mode 100644 index 0000000..f54eb03 --- /dev/null +++ b/package.js @@ -0,0 +1,21 @@ +var options = { + "version": "1.3.2", + "where": "client", + "packageName": "dvelopment:angular-validation" +}; + +// meta data +Package.describe({ + name: options.packageName, + version: options.version, + summary: 'Client-side Validation for AngularJS', + git: 'git@github.com:huei90/angular-validation.git', + documentation: 'README.md' +}); + +Package.onUse(function(api) { + api.versionsFrom('METEOR@0.9.0', 'METEOR@1.0'); + api.use('angular:angular@1.2.0', options.where); + api.addFiles('dist/angular-validation.js', options.where); + api.addFiles('dist/angular-validation-rule.js', options.where); +}); From 6fc3f060a04ea5fa1c0b888560974b9624898f2d Mon Sep 17 00:00:00 2001 From: Daniel Holzmann Date: Sat, 17 Oct 2015 14:19:56 +0200 Subject: [PATCH 2/2] update package.js --- package.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package.js b/package.js index f54eb03..a89dee2 100644 --- a/package.js +++ b/package.js @@ -1,7 +1,7 @@ var options = { "version": "1.3.2", "where": "client", - "packageName": "dvelopment:angular-validation" + "packageName": "huei90:angular-validation" }; // meta data @@ -9,13 +9,15 @@ Package.describe({ name: options.packageName, version: options.version, summary: 'Client-side Validation for AngularJS', - git: 'git@github.com:huei90/angular-validation.git', + git: 'https://github.com/huei90/angular-validation', documentation: 'README.md' }); Package.onUse(function(api) { api.versionsFrom('METEOR@0.9.0', 'METEOR@1.0'); - api.use('angular:angular@1.2.0', options.where); - api.addFiles('dist/angular-validation.js', options.where); - api.addFiles('dist/angular-validation-rule.js', options.where); + api.use('angular:angular@1.3.15', options.where); + api.addFiles([ + 'dist/angular-validation.js', + 'dist/angular-validation-rule.js' + ], options.where); });