diff --git a/.npm/package/.gitignore b/.npm/package/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.npm/package/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/.npm/package/README b/.npm/package/README new file mode 100644 index 0000000..3d49255 --- /dev/null +++ b/.npm/package/README @@ -0,0 +1,7 @@ +This directory and the files immediately inside it are automatically generated +when you change this package's NPM dependencies. Commit the files in this +directory (npm-shrinkwrap.json, .gitignore, and this README) to source control +so that others run the same versions of sub-dependencies. + +You should NOT check in the node_modules directory that Meteor automatically +creates; if you are using git, the .gitignore file tells git to ignore it. diff --git a/.npm/package/npm-shrinkwrap.json b/.npm/package/npm-shrinkwrap.json new file mode 100644 index 0000000..a8981d5 --- /dev/null +++ b/.npm/package/npm-shrinkwrap.json @@ -0,0 +1,12 @@ +{ + "dependencies": { + "path-to-regexp": { + "version": "1.2.1", + "dependencies": { + "isarray": { + "version": "0.0.1" + } + } + } + } +} diff --git a/package.js b/package.js index c8e4638..427e3cb 100644 --- a/package.js +++ b/package.js @@ -1,35 +1,34 @@ Package.describe({ - "summary": "Server Side Router for Meteor", - "version": "1.0.3", - "git": "https://github.com/meteorhacks/picker.git", - "name": "meteorhacks:picker" + name: 'meteorhacks:picker', + summary: 'Server Side Router for Meteor', + version: '1.0.3', + git: 'https://github.com/meteorhacks/picker.git' }); Npm.depends({ - "path-to-regexp": "1.0.1" + 'path-to-regexp': '1.2.1' }); -Package.on_use(function(api) { +Package.onUse(function(api) { configurePackage(api); api.export(['Picker']); }); -Package.on_test(function(api) { +Package.onTest(function(api) { configurePackage(api); - - api.use(['tinytest', 'http'], ['server']); - api.add_files([ + api.use(['tinytest', 'http', 'random'], ['server']); + api.addFiles([ 'test/instance.js' ], ['server']); }); function configurePackage(api) { if(api.versionsFrom) { - api.versionsFrom('METEOR@0.9.0'); + api.versionsFrom('METEOR@1.2'); } - + api.use(['webapp', 'underscore'], ['server']); - api.add_files([ + api.addFiles([ 'lib/implementation.js', 'lib/instance.js', ], ['server']);