Commit Graph

87 Commits

Author SHA1 Message Date
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
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
Ben Newman
ed17924940 Add braces to every if/for(-in)/while statement in tools directory. 2015-11-13 12:25:19 -05:00
Ben Newman
739d0d9676 Spot fixes for tricky add-braces cases. 2015-11-13 12:24:32 -05:00
mbrookes
2c500fe81f Remove stray comments from command aliases. 2015-11-03 10:53:05 +00:00
mbrookes
b64428e24b Add 'Did you mean?' reminders for Rails developers
Closes PR #5593

[stubailo: squash commits]
2015-11-02 16:22:06 -08:00
David Glasser
c929703790 One way of cross-compiling local binary packages
If $METEOR_BINARY_DEP_WORKAROUND is set, then when bundling for a
non-host platform (build/bundle/deploy commands only), if a package has
no server unibuild for the target architecture, use the host
architecture and replace the npm modules with a package.json and
npm-shrinkwrap.json.  Also write out a top-level setup.sh script (inside
programs/server) which runs npm install in all such directories.

To support this, we make sure to save the package.json and
npm-shrinkwrap.json files in various intermediate directories in case we
need them later.  (We put them inside node_modules because that is what
gets copied from source tree to isopack.)
2015-09-22 15:11:04 -07:00
Sashko Stubailo
a23cc02492 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
	packages/babel-compiler/package.js
	packages/ecmascript/package.js
	packages/sha/package.js
	tools/upgraders.js
2015-09-21 20:12:55 -04:00
Martijn Walraven
e2e688e78e Print warning when attempting to build Cordova platforms on Windows 2015-09-15 10:16:17 +02:00
Martijn Walraven
48797d6ceb Print error messages when we cannot update to a release
To avoid overloading the user, we only print messages for the first
release version we try (which should be the latest).

Fixes #5114
2015-09-14 21:34:09 +02:00
Martijn Walraven
614cfd5e7c Allow remove-platform on Windows 2015-09-13 10:55:29 +02:00
Martijn Walraven
984bd1307e Don't attempt to build Cordova platforms on Windows 2015-09-13 10:52:12 +02:00
Sashko Stubailo
32fbe0ce15 Only do the newer release check for non-recommended releases 2015-09-11 17:18:36 -07:00
Sashko Stubailo
ff3f2ee31b Fix create on Windows; don't copy git hooks on Windows 2015-09-10 20:52:21 -07:00
Evan You
aa9ee0e714 add --exclude option to self-test 2015-09-09 15:30:05 -04:00
Evan You
bb8c2a00b1 add --exclude option for test-packages command 2015-09-09 15:29:53 -04:00
Sashko Stubailo
fec97c0bf3 Improve output of meteor mongo 2015-09-02 15:19:16 -07:00
Sashko Stubailo
0a5bae9196 Add missing space 2015-09-02 11:40:36 -07:00
Sashko Stubailo
a79c91c29d Improve meteor create output 2015-09-02 11:36:58 -07:00
Martijn Walraven
3281e5389b Rename pluginsFromStarManifest to pluginVersionsFromStarManifest 2015-09-02 16:30:33 +02:00
David Greenspan
dfc81a2a1a Add missing consts 2015-08-31 23:32:00 -07:00
David Greenspan
f0460a39dc Don't suggest updates to core pkg indirect deps
Exclude core packages (whose versions are pinned) from being printed
when we say:
"Newer versions of the following indirect dependencies are available".
2015-08-31 11:47:08 -07:00
David Greenspan
29f24238a0 Fix typo and add informational message 2015-08-31 06:19:30 -07:00
David Greenspan
6130648c99 Don't use old tool to run meteor update in an RC 2015-08-31 06:19:30 -07:00
Martijn Walraven
b0c1464e7c Only attempt to copy built apk when it exists
This is a temporary workaround for an issue that occurs when building
an app that uses Crosswalk.

We usually attempt to copy android-release-unsigned.apk to the root
build dir after a successful release build, but because Crosswalk
depends on native code, the resulting apk is architecture-specific
(android-armv7-release-unsigned.apk and
android-x86-release-unsigned.apk).

For now, I’m just adding a check so we don’t throw ENOENT. Built apks
can be found as usual in android/project/build/outputs/apk, they’re
just not copied to the root build dir.
2015-08-28 08:09:11 +02:00
Martijn Walraven
425a7a860e Hide now deprecated Cordova commands 2015-08-27 15:53:47 +02:00
Martijn Walraven
52c4a82e46 Hide now deprecated Cordova commands 2015-08-27 15:53:05 +02:00
ekatek
ef13ed9926 use selftest to run tests against galaxy
UX Changes:
  - Added a `--galaxy` option to selftest to run tests against galaxy.
    Self-test will NOT run those tests without this option. Self-test will not run any
    other tests WITH this option.

    The motivation here is two-fold:
     - We want to make it easy to use self-test to test Galaxy without running a bunch
       of extra tests. At least, we want this right now, while Galaxy is still in development.

     - Galaxy is currently pretty unstable&slow; we don't want to run our regular test suite against
       Galaxy all the time and slow down the tool development process. Additionally, the environment
       variables required by Galaxy are a pain to set.

    This is a TEMPORARY situation. Eventually, we will want to either merge the two tests together
    (especially once we rotate out Mother...) or we will have a separate unrelated Galaxy test suite
    and move a lot of this stuff here. With time, it will also become more obvious what a better default
    (run Galaxy tests always/run Galaxy tests never/run non-Galaxy-specific tests against Galaxy) is.

    The changes should be pretty self-contained.

 - Added some number of environment variables to use with --galaxy tests. This is a bit complicated
   and will be documented in
     https://mdg.hackpad.com/GalaxyECS-Admin-tasks-RTXJ5YW8pDv#:h=Testing-Galaxy-with-selftest.

Walkthrough:
    - galaxy-utls.js contains basic utils for running Galaxy tests. Use environment variables, etc.

    - galaxy.js contains the acutal test

    - simple-app is an app that responds to HTTP requests and serves some html that we can test to be running

    - minor changes to config.js to allow overriding of the domain name

    - minor changes to auth.js to allow us to automatically login as the (new) test user and use that
      login to start a DDP collection.

    - move a function out of deploy-settings.js into test-utils.js

    - some minor additions to test-utils.js

Reviewed in https://github.com/meteor/meteor/pull/4997.
2015-08-26 19:06:13 -07:00
Sashko Stubailo
45f3133b24 Improve the meteor create experience and fix bugs with existing dir PR 2015-08-26 15:14:21 -07:00
Martijn Walraven
e8d4362535 Disable building mobile apps on Windows for now 2015-08-26 19:26:57 +02:00
Martijn Walraven
883000a149 Print instructions for launching SDK Manager in android-launch command 2015-08-26 19:26:56 +02:00
Martijn Walraven
7d2cb49b65 Rename installationInstructionsURLForPlatform to installationInstructionsUrlForPlatform 2015-08-26 19:26:56 +02:00
Martijn Walraven
2109bedb85 Add conversion to new Cordova plugin IDs
Cordova plugin IDs have changed as part of moving to npm. We convert
old plugin IDs to new IDs in the 1.2.0-cordova-changes upgrader, when
adding plugins, and when preparing for build.
2015-08-26 19:26:55 +02:00
Martijn Walraven
ae5c9670ad Add upgrader for the Cordova changes in 1.2 2015-08-26 19:26:55 +02:00
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