Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npm/package/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
7 changes: 7 additions & 0 deletions .npm/package/README
Original file line number Diff line number Diff line change
@@ -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.
12 changes: 12 additions & 0 deletions .npm/package/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 12 additions & 13 deletions package.js
Original file line number Diff line number Diff line change
@@ -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']);
Expand Down