Put 'netroute' into dev bundle

This commit is contained in:
Emily Stark
2014-10-14 21:11:26 -07:00
parent ec18b34e4d
commit 301eb65637
10 changed files with 3 additions and 44 deletions

2
meteor
View File

@@ -1,6 +1,6 @@
#!/bin/bash
BUNDLE_VERSION=0.3.58
BUNDLE_VERSION=0.3.59
# OS Check. Put here because here is where we download the precompiled
# bundles that are arch specific.

View File

@@ -1 +0,0 @@
.build*

View File

@@ -1 +0,0 @@
node_modules

View File

@@ -1,7 +0,0 @@
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.

View File

@@ -1,15 +0,0 @@
{
"dependencies": {
"netroute": {
"version": "0.2.5",
"dependencies": {
"bindings": {
"version": "1.0.0"
},
"nan": {
"version": "1.3.0"
}
}
}
}
}

View File

@@ -1,15 +0,0 @@
// This is a core package instead of in packages/non-core because it
// needs to be uniloaded from tool.
Package.describe({
summary: "Wrapper for npm netroute module",
version: "0.2.5"
});
Npm.depends({
netroute: "0.2.5"
});
Package.on_use(function (api) {
api.export("NpmModuleNetroute", "server");
api.addFiles("wrapper.js", "server");
});

View File

@@ -1 +0,0 @@
NpmModuleNetroute = Npm.require("netroute");

View File

@@ -164,6 +164,7 @@ npm install node-inspector@0.7.4
npm install progress@1.1.8
npm install chalk@0.5.1
npm install sqlite3@3.0.0
npm install netroute@0.2.5
# Clean up a big zip file it leaves behind.
npm install phantomjs@1.8.1-1

View File

@@ -20,7 +20,6 @@ var ROOT_PACKAGES = [
'minifiers',
'minimongo',
'mongo',
'netroute',
'package-version-parser',
'boilerplate-generator',
'webapp-hashing',

View File

@@ -9,6 +9,7 @@ var os = require('os');
var fs = require('fs');
var url = require('url');
var child_process = require('child_process');
var netroute = require('netroute');
var utils = exports;
@@ -54,8 +55,6 @@ var parseUrl = function (str, defaults) {
var ipAddress = function () {
var uniload = require("./uniload.js");
var netroute = uniload.load({ packages: ["netroute"] }).
netroute.NpmModuleNetroute;
var info = netroute.getInfo();
var defaultRoute = _.findWhere(info.IPv4 || [], { destination: "0.0.0.0" });
if (! defaultRoute) {