Skip to content

Commit 5fd2016

Browse files
committed
Adds missing 'random' dependency to package tests, and updates package.js to 1.2-compatible syntax
1 parent 6f1b573 commit 5fd2016

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

.npm/package/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.npm/package/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This directory and the files immediately inside it are automatically generated
2+
when you change this package's NPM dependencies. Commit the files in this
3+
directory (npm-shrinkwrap.json, .gitignore, and this README) to source control
4+
so that others run the same versions of sub-dependencies.
5+
6+
You should NOT check in the node_modules directory that Meteor automatically
7+
creates; if you are using git, the .gitignore file tells git to ignore it.

.npm/package/npm-shrinkwrap.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
Package.describe({
2-
"summary": "Server Side Router for Meteor",
3-
"version": "1.0.3",
4-
"git": "https://github.com/meteorhacks/picker.git",
5-
"name": "meteorhacks:picker"
2+
name: 'meteorhacks:picker',
3+
summary: 'Server Side Router for Meteor',
4+
version: '1.0.3',
5+
git: 'https://github.com/meteorhacks/picker.git'
66
});
77

88
Npm.depends({
9-
"path-to-regexp": "1.0.1"
9+
'path-to-regexp': '1.0.1'
1010
});
1111

12-
Package.on_use(function(api) {
12+
Package.onUse(function(api) {
1313
configurePackage(api);
1414
api.export(['Picker']);
1515
});
1616

17-
Package.on_test(function(api) {
17+
Package.onTest(function(api) {
1818
configurePackage(api);
19-
20-
api.use(['tinytest', 'http'], ['server']);
21-
api.add_files([
19+
api.use(['tinytest', 'http', 'random'], ['server']);
20+
api.addFiles([
2221
'test/instance.js'
2322
], ['server']);
2423
});
2524

2625
function configurePackage(api) {
2726
if(api.versionsFrom) {
28-
api.versionsFrom('METEOR@0.9.0');
27+
api.versionsFrom('METEOR@1.2');
2928
}
30-
29+
3130
api.use(['webapp', 'underscore'], ['server']);
32-
api.add_files([
31+
api.addFiles([
3332
'lib/implementation.js',
3433
'lib/instance.js',
3534
], ['server']);

0 commit comments

Comments
 (0)