Commit Graph

22 Commits

Author SHA1 Message Date
Ben Newman
0f05575099 Simplify eachline by using split npm package. 2017-07-17 16:26:38 -04:00
Ben Newman
8af4955389 Use eachline@3.0.5 from npm instead of our own fork.
The pull request corresponding to our fork is not going to be merged, so
it's better to use the alternative this.finished API available in newer
versions of the upstream package.

https://github.com/williamkapke/node-eachline/pull/4
2017-07-14 13:34:33 -04:00
chemicstry
512799ed9e Initial IPv6 support 2016-06-06 02:17:36 +03:00
Martijn Walraven
743b740359 Add a trailing slash in utils.formatUrl for consistency with Meteor.absoluteUrl 2016-02-24 12:55:26 +01:00
Martijn Walraven
99e58d72a0 Support modern Cordova whitelist mechanism 2016-01-25 15:02:39 -08:00
Ben Newman
15ef3884cc Eliminate Future from tools/utils.js. 2015-12-09 12:06:46 -05:00
Tom Coleman
705a7eda1a Switch the semantics - forNpm -> forCordova
Cordova uses npm but is *more* specific so this is less potentially confusing.
2015-11-25 16:27:36 +11:00
Tom Coleman
54396f78b7 Switch semantics to isValidVersion 2015-11-25 16:27:36 +11:00
Tom Coleman
81fff25ecb Don't require npm URLs to have a #commit-ish
Npm says it will default to `master`. That's OK by us.
2015-11-25 16:27:35 +11:00
Tom Coleman
222115665b Refactored isExactVersionto handle npm/cordova
See https://github.com/meteor/meteor/pull/5562/files for a discussion. Basically Cordova doesn't really support

a) Urls with @'s in them
b) Urls that don't point to fixed commits.

As this branch allows both of the above (and our NPM support does reasonably handle a+b), we split the way we handle cordova + npm URLs a little.
2015-11-25 16:27:35 +11:00
Tom Coleman
58cbe65060 Allow the other types of URLs that npm supports.
See for instance #844 for people running into the
fact that our lack of support for git protocols means
dealing with private npm packages is a pain.
2015-11-25 16:27:11 +11:00
Ben Newman
ed17924940 Add braces to every if/for(-in)/while statement in tools directory. 2015-11-13 12:25:19 -05:00
Martijn Walraven
0ea336424a Clarify some comments 2015-08-26 19:26:57 +02:00
Martijn Walraven
b03455f382 Re-enable netroute for platforms other than win32 2015-08-26 19:26:52 +02:00
Martijn Walraven
87b11bdab5 Cordova refactoring and change of runner behavior
- Refactored code in tools/cordova and introduced CordovaBuilder and
CordovaRunTarget classes
- CordovaRunner now builds and runs the project as part of the main
runner loop
- Some code cleanup and ES2015 conversions
2015-08-26 19:26:49 +02:00
Martijn Walraven
42585a1098 Allow IP address detection to work without netroute
Because netroute is not available on Windows, and I haven’t been able
to find another way to detect the default route there, we try to find
a unique non-internal IPv4 address as a fallback. Also, improve error
reporting in cases we aren’t able to autodetect a unique IP address.

I’ve removed the automatic retry after 2 seconds, because I felt it was
of limited use (if you lose the address you would also have lost the
default route?) and it would slow down error reporting in the common
case where the error persists.
2015-08-26 19:26:48 +02:00
Martijn Walraven
47ff9a13aa Clean up Cordova code in commands.js
- Refactor server options parsing, move it from utils.js to commands.js
- Move remote device warning to CordovaRunner
2015-08-26 19:26:45 +02:00
Slava Kim
c9334d3aaa Fix bad refactoring of getHost() 2015-08-10 15:25:37 -07:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -07:00
Slava Kim
924b1b40e0 Remove an extra execFile ref 2015-08-06 16:00:39 -07:00
Slava Kim
6b1bb038d8 Move files into tools/fs 2015-08-03 22:09:28 -07:00
Slava Kim
8a8db83d29 Move files into tools/utils 2015-08-03 20:32:38 -07:00