Commit Graph

5007 Commits

Author SHA1 Message Date
Sashko Stubailo
1333a405d8 Add comment reminder to update wiki page 2015-09-02 13:24:52 -07:00
Sashko Stubailo
0bb7c7c0b2 New addAssets package.js API; same file can be source and asset
1. Add `addAssets` API to `package.js`
2. Rename `getSourcesFunc` to `getFiles` in internal code
3. Changed `PackageAPI#sources` to `PackageAPI#files` with a new structure that
   has separate objects for assets and sources
4. Added some tests for different error conditions
5. The same file can now be a source and an asset
2015-09-02 13:14:02 -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
Sashko Stubailo
b381a675bf Fix create test 2015-09-02 11:21:22 -07:00
Sashko Stubailo
94ed0dac1a Fix bundle test 2015-09-02 11:21:14 -07:00
Martijn Walraven
44ec162d54 Remove Cordova project directory when it contains outdated platforms
Although we remove the Cordova project directory when upgrading to
Meteor 1.2, this only happens once per project, and the
.meteor/local/cordova-build directory is usually ignored, and thus
preserved per machine. This means we can’t avoid checking for outdated
platforms on every run to make sure we remove the directory when needed.
2015-09-02 16:30:33 +02:00
Martijn Walraven
b79f4944eb Fix references in tools/cordova/README.md 2015-09-02 16:30:33 +02:00
Martijn Walraven
3281e5389b Rename pluginsFromStarManifest to pluginVersionsFromStarManifest 2015-09-02 16:30:33 +02:00
Martijn Walraven
47bcdfcf42 Capture error messages in startRunTargets and print them ourselves
We no longer call startRunTargets from within an existing capture in
run-app.js, because we’ve moved the call to after the server startup.
2015-09-02 16:30:33 +02:00
Martijn Walraven
7038a49338 Don't create runFuture until after building for Cordova so we can still restart 2015-09-02 16:30:32 +02:00
Martijn Walraven
09c875ff04 Start Cordova run targets after starting the server app 2015-09-02 16:30:32 +02:00
Martijn Walraven
6249ae39c7 Remove now unnecessary prepareForPlatform when opening Xcode 2015-09-02 16:30:32 +02:00
Martijn Walraven
b62e08c5a9 Remove unused assignment 2015-09-02 16:30:32 +02:00
Martijn Walraven
7510f8f2c1 Don't continue to prepare platforms when prepareFromAppBundle generates error messages 2015-09-02 16:30:32 +02:00
Martijn Walraven
97b517025c Convert tarball URLs in cordova-plugins in upgrader
Although we convert tarball URLs when building, and we still need to do
this for plugins added through packages, seeing the old URLs in `meteor
list` may confuse people. So we now attempt to convert them as part of
upgrading, together with the plugin ID changes. This also gives us the
opportunity to warn people right away if they’ve been using non-GitHub
tarball URLs.
2015-09-02 16:30:32 +02:00
Martijn Walraven
3a1eaca782 Use Console.info to print notice header to make sure we're hiding the progress display 2015-09-02 16:30:32 +02:00
Dean Brettle
bab1459c50 Doc export from debugOnly and prodOnly packages
Address lack of documentation mentioned in issue #3639.
2015-09-01 13:59:20 -07:00
David Greenspan
dfc81a2a1a Add missing consts 2015-08-31 23:32:00 -07:00
David Glasser
0c0169707c Undocumented $METEOR_FORCE_PORTABLE option
If set, it assumes that all local packages are portable and can be
deployed to any platform.

If you are using this, you need to consistently use it every time you
run Meteor, not just when deploying.  The first time you use it in a
project that has been used without it, you should run `meteor rebuild`.
2015-08-31 22:45:53 -07:00
David Glasser
af567ff8a3 404 instead of boilerplate on production JS links
Make sure the 404 is not cached. Helps with CDNs (see eg 6ff0faa).
2015-08-31 15:40:36 -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
Martijn Walraven
f57c671a70 Only list individual platform requirements when in verbose mode
Listing them all by default may confuse people, and make them overlook
the installation instructions URL.
2015-08-31 15:45:21 +02: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
Sashko Stubailo
a96e0e1009 Correctly format doc comment about options 2015-08-28 10:52:49 -07:00
Sashko Stubailo
217bad7f10 Reinstate logic where bare option was taken from fileOptions 2015-08-28 10:32:59 -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
c2c6a01b16 Change Wiki pages for mobile development installation 2015-08-27 21:06:53 +02:00
David Greenspan
a2a8192c35 Add tools/cordova to list of transpiled dirs 2015-08-27 10:46:22 -07:00
Martijn Walraven
425a7a860e Hide now deprecated Cordova commands 2015-08-27 15:53:47 +02:00
Martijn Walraven
9fbde12ea9 Avoid creating an empty cordova-plugins file when upgrading 2015-08-27 14:35:26 +02:00
Martijn Walraven
845bd881e4 Correct a really stupid error that made building mobile apps on OS X impossible 2015-08-27 14:35:12 +02: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
0ea336424a Clarify some comments 2015-08-26 19:26:57 +02:00
Martijn Walraven
83c64a4a65 Fix upgrader and print more information about Cordova changes 2015-08-26 19:26:56 +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
4e786ab85d Rename plugins to pluginVersions in CordovaProject#prepareFromAppBundle 2015-08-26 19:26:56 +02:00
Martijn Walraven
b977943f68 Print installation instructions URL if not all requirements are satisfied 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
9cb686e3b6 Some renames in tools/cordova/builder.js 2015-08-26 19:26:56 +02:00
Martijn Walraven
7e5a9942c4 Update references in API docs for App object to latest Cordova version 2015-08-26 19:26:56 +02:00
Martijn Walraven
14d301f8ab Add comments and apply better naming to clarify plugins code
In particular, clearly differentiate between plugins (an array of
plugin IDs) and pluginVersions (an object of with id -> version
properties).
2015-08-26 19:26:56 +02:00
Martijn Walraven
e4bb7726ca Make Cordova self-tests pass again 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
b8f853db37 Make Cordova self-tests pass again 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
cb1a62924f Add 'Cordova error:' to Cordova error messages 2015-08-26 19:26:55 +02:00
Martijn Walraven
ef78afbca6 Fix CordovaProject#updatePlatforms 2015-08-26 19:26:55 +02:00