Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate realtime alerts from MBTA #99

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ u2622:persistent-session
percolate:synced-cron
iron:router
momentjs:moment
meteorhacks:npm
npm-container
3 changes: 3 additions & 0 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ livedata@1.0.12
logging@1.0.6
meteor@1.1.4
meteor-platform@1.2.1
meteorhacks:async@1.0.0
meteorhacks:npm@1.2.2
minifiers@1.1.3
minimongo@1.0.6
mobile-status-bar@1.0.2
momentjs:moment@2.9.0
mongo@1.0.11
mrt:moment@2.8.1
npm-container@1.0.0
observe-sequence@1.0.4
ordered-dict@1.0.2
percolate:synced-cron@1.1.1
Expand Down
3 changes: 3 additions & 0 deletions packages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"protobufjs": "3.8.2"
}
1 change: 1 addition & 0 deletions packages/npm-container/.npm/package/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
7 changes: 7 additions & 0 deletions packages/npm-container/.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.
31 changes: 31 additions & 0 deletions packages/npm-container/.npm/package/npm-shrinkwrap.json

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

9 changes: 9 additions & 0 deletions packages/npm-container/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Meteor.npmRequire = function(moduleName) { // 85
var module = Npm.require(moduleName); // 86
return module; // 87
}; // 88
// 89
Meteor.require = function(moduleName) { // 90
console.warn('Meteor.require is deprecated. Please use Meteor.npmRequire instead!'); // 91
return Meteor.npmRequire(moduleName); // 92
}; // 93
21 changes: 21 additions & 0 deletions packages/npm-container/package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var path = Npm.require('path'); // 97
var fs = Npm.require('fs'); // 98
// 99
Package.describe({ // 100
summary: 'Contains all your npm dependencies', // 101
version: '1.0.0', // 102
name: 'npm-container' // 103
}); // 104
// 105
var packagesJsonFile = path.resolve('./packages.json'); // 106
try { // 107
var fileContent = fs.readFileSync(packagesJsonFile); // 108
var packages = JSON.parse(fileContent.toString()); // 109
Npm.depends(packages); // 110
} catch(ex) { // 111
console.error('ERROR: packages.json parsing error [ ' + ex.message + ' ]'); // 112
} // 113
// 114
Package.onUse(function(api) { // 115
api.add_files(['index.js', '../../packages.json'], 'server'); // 116
}); // 117