Commit Graph

33 Commits

Author SHA1 Message Date
Martijn Walraven
a5a5b4c758 Use parsed run targets to detect a run on a device
This fixes a bug where test-packages on a device sets localhost as the
mobile server URL.
2015-08-26 19:26:55 +02:00
Martijn Walraven
0538dc1f28 Some changes to the buildmessage structure and job naming 2015-08-26 19:26:54 +02:00
Martijn Walraven
1a4e940529 Create Cordova project from generated config.xml
We now create a temporary directory with a generated config.xml
to use as a template for creating the Cordova project. This way, we are
not dependent on the contents of cordova-app-hello-world but we base
our initial project state on our own defaults and optionally a
mobile-config.js.

This change was in part motivated by a bug in Cordova where changing
the app name to a version with a different case, on a case insensitive
file system like OS X, means the project will no longer build. Because
our app name on creation was based on the project directory and we
didn’t respect the app name set in mobile-config.js until the first
build, there was always a rename needed, triggering the bug.

This bug affected both the todos and localmarket example apps.
2015-08-26 19:26:54 +02:00
Martijn Walraven
e25ccacac7 Fix indentation in tools/cli/commands.js 2015-08-26 19:26:53 +02:00
Martijn Walraven
5cb18f3559 Whitespace fixes in tools/cli/commands.js 2015-08-26 19:26:53 +02:00
Martijn Walraven
f1bc608d51 Remove unnecessary try/catches for utils.parseUrl() 2015-08-26 19:26:52 +02:00
Martijn Walraven
652d116dcf Some cosmetic changes and comments 2015-08-26 19:26:51 +02:00
Martijn Walraven
23e6dc5188 Clarify prepare/build/run phases and improve build messages 2015-08-26 19:26:49 +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
71049fd7d5 Remove unused --clean run option 2015-08-26 19:26:48 +02:00
Martijn Walraven
dd023b59ee Remove unused HttpProxy and related config options 2015-08-26 19:26:48 +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
e529b87bbc Use main.ExitWithCode() as a constructor 2015-08-26 19:26:47 +02:00
Martijn Walraven
b9306be83b Fix typo 2015-08-26 19:26:47 +02:00
Martijn Walraven
bcc3f10782 Fix mobileServerUrlString construction 2015-08-26 19:26:46 +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
Martijn Walraven
7d34b1296b Split up and sanitize cordova-commands.js, use cordova-lib 2015-08-26 19:26:45 +02:00
Sashko Stubailo
927745a5d5 Print link to meteor.com/learn when a new app is created 2015-08-25 15:54:54 -07:00
alanning
7cee638d4f Support creating new meteor app in current directory 2015-08-25 15:01:58 -07:00
David Greenspan
a63dc1f5c2 Support prodOnly in addition to debugOnly
It's very useful to be able to include code only in production.  It's
useful for React integration, but presumably also for many apps.

* Add prodOnly boolean flag alongside debugOnly in Package.describe

* Packages the set prodOnly to true auto-depend on isobuild:prod-only
  (making them error in the old tool where prodOnly isn't supported)

* The `includeDebug` boolean build option is replaced by a string
  named buildMode, which can be 'development' or 'production', just
  like minifyMode.

Tested by self-test.
2015-08-06 16:49:26 -07:00
Slava Kim
afee6b07c7 move catalog/ into packaging/ 2015-08-06 16:39:01 -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
f49de5b9ac Move files connecting to Meteor-provided services
to a separate folder
2015-08-06 16:00:39 -07:00
Slava Kim
76b001d0da Kill some dead code 2015-08-05 15:03:53 -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
Slava Kim
36b542f822 move files into tools/packaging 2015-08-03 16:03:15 -07:00
Slava Kim
08005bfe0a move runners into folder 'runners' 2015-08-01 13:01:49 -07:00
Slava Kim
35aef2b296 Create 'static-assets' folder in tools
To keep files that are not run by tool itself, but are used by generated code.
2015-07-31 17:12:38 -07:00
Sashko Stubailo
9406bef642 Remove meteor-platform from tinytest to weed out dependencies 2015-07-30 15:46:20 -07:00
Slava Kim
3ddd281d8c Move catalog files into tools/catalog/ 2015-07-30 12:12:07 -07:00
Slava Kim
cb681e595f Move CLI files into a CLI folder in tools 2015-07-29 23:58:04 -07:00