Commit Graph

52 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
a5784d54b6 Don't rebuild packages immediately after add/remove platform
This happens automatically before build/run.
2015-08-26 19:26:54 +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
5b00fa1fac Print link to host and platform-specific Wiki page for install-sdk command 2015-08-26 19:26:52 +02:00
Martijn Walraven
fffc3833c2 Remove undocumented android-launch command 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
6e622a36f6 Revert "Temporarily print errors until meteor-promise exception handling is fixed"
See https://github.com/meteor/promise/issues/2.
2015-08-26 19:26:50 +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
d21bddeece Temporarily print errors until meteor-promise exception handling is fixed
See https://github.com/meteor/promise/issues/2
2015-08-26 19:26:48 +02:00
Martijn Walraven
d1363fc400 Fix imports because of tools/ reorganization 2015-08-26 19:26:48 +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
b7199e529d Add requirements checking and clean up platforms code 2015-08-26 19:26:48 +02:00
Martijn Walraven
1fd10d7374 Fix imports because of tools/ reorganization 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
74b5f7bcea Move cordova-lib and ios-sim from dev bundle to package 2015-08-26 19:26:47 +02:00
Martijn Walraven
185e04c9a7 Move tools/cordova/commands.js to tools/cli/commands-cordova.js 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
f00532cab1 Make code clearer
This is a behavior-preserving change
2015-08-10 15:11:11 -07:00
Slava Kim
1c3decb93a Add an example to cli/readme 2015-08-10 11:24:23 -07:00
Martijn Walraven
b8455391ee Fix references to static-assets in commands-cordova.js
Fixes #4918.
2015-08-10 12:35:25 +02: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
David Greenspan
ba1b879f08 Fix meteor update in presence of preleases
Now instead of calling `catalog.getLatestMainlineVersion` when printing
messages about non-latest versions in `meteor update` with no args,
we use the same logic from `meteor list`.
2015-08-06 14:47:33 -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
dc91f4ac5c Add more about admin commands in cli readme 2015-08-01 14:18:19 -07:00
Slava Kim
5472331fc5 Move isopackets.js to tool-env
Because it is only used in tool to load packages, so it is sort of a
setup environment file.
2015-08-01 14:13:53 -07:00
Slava Kim
005a880318 A bit more docs for tools 2015-08-01 14:02:37 -07:00
Slava Kim
08005bfe0a move runners into folder 'runners' 2015-08-01 13:01:49 -07:00
Slava Kim
49a7088c30 Create a folder "tool-env"
Contains uninteresting setup and cleanup files
2015-07-31 18:38:25 -07:00
Slava Kim
e5ddbaa244 Fix a couple of bugs introduced in renamings 2015-07-31 17:12:38 -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