Commit Graph

5039 Commits

Author SHA1 Message Date
Cedla
4160dc2167 Add support for platform-specific preferences in mobile-config.js
Fixes #5200.
2015-09-21 13:19:25 +02:00
David Glasser
f31f0747c2 Put npm dependency info into isopacks
The code to read this data will come later, but getting this in 1.2
means that packages published with 1.2 will contain the dependency info.
2015-09-18 22:48:01 -07:00
Ben Newman
fb1d9598e6 Avoid returning an empty client watch set from bundler.bundle.
Fixes #5080.
2015-09-17 18:40:12 -04:00
Ben Newman
4c8af86daa Include package names in build plugin error paths.
With this change, when reporting compiler errors in files in packages, we
now prepend "packages/<package name>/" to the path of the offending file.

https://github.com/meteor/meteor/issues/4943#issuecomment-140719042
2015-09-17 16:42:31 -04:00
Sashko Stubailo
0f94cb20bc Convert to HTML error page
One big reason we need this is that the text format doesn't work on Windows
because of line endings. We could just replace the line endings based on
platform, but this seemed better overall.

Also, make sure to escape entities in HTML error page
2015-09-17 11:12:32 -07:00
Martijn Walraven
b4ef6b8017 Fix setting mobile status bar defaults
We attempted to set default values for cordova-plugin-statusbar at
runtime. Because the plugin may not have been loaded at that point,
this gave inconsistent results. Instead, we now set the default options
while building, so they will get added to config.xml.

Fixes #5098
2015-09-16 22:57:32 +02:00
Martijn Walraven
e2e688e78e Print warning when attempting to build Cordova platforms on Windows 2015-09-15 10:16:17 +02:00
Sashko Stubailo
550489cea8 Intelligently decide which stack trace to use 2015-09-14 17:51:43 -07: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
Sashko Stubailo
e2d4556479 Special-case http imports in LESS package 2015-09-14 11:53:58 -07: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
Martijn Walraven
d58c4104fa Fix crash on server refresh for Cordova app due to variable rename
Fixes #5140
2015-09-12 19:17:52 +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
11248f7dbc Make self test always add the newest upgraders 2015-09-11 16:32:22 -07:00
Sashko Stubailo
3a0fc48b78 Remove command from test that doesn't exist anymore 2015-09-11 15:50:13 -07:00
Ben Newman
d536124bcc Improve meteor shell command evaluation.
Specific improvements:

- Parentheses are now stripped from commands that look like named classes
  so that they will be treated as class declarations rather than as named
  class expressions.

- When the `ecmascript` package is installed, `compileForShell` errors are
  now exposed to the `evalCommand` callback.

- Instead of using `vm.runInThisContext` to parse and evaluate commands at
  the same time, `evalCommand` now parses commands by creating a new
  `vm.Script` and later evaluates them using `script.runInThisContext()`,
  so that `SyntaxError`s can be reported immediately. Fixes #5131.
2015-09-11 18:32:04 -04:00
Sashko Stubailo
6a8ca4c1f6 Merge branch 'release-1.2' of github.com:meteor/meteor into release-1.2 2015-09-11 15:02:22 -07:00
Sashko Stubailo
38d0c89597 Fix parse stack test to convert file paths 2015-09-11 15:01:50 -07:00
Martijn Walraven
b274e5390a Fix bug in execFileAsync that meant options were ignored without args 2015-09-11 18:44:17 +02:00
Martijn Walraven
ea2dc87dc4 Fix reinstalling Cordova plugins when versions with old IDs are installed
When Cordova plugins with old (pre-npm) IDs are installed, which
happens with older versions even when we have specified the new ID on
install, we need to convert these before checking whether to reinstall
all plugins.
2015-09-11 11:02:20 +02:00
Martijn Walraven
c606429219 Fix bringing simulator to front with Xcode 7 installed 2015-09-11 10:13:10 +02:00
Sashko Stubailo
ff3f2ee31b Fix create on Windows; don't copy git hooks on Windows 2015-09-10 20:52:21 -07:00
David Greenspan
98886f98ef Protect String.prototype from shelljs (#5107)
cordova-lib uses shelljs which modifies String.prototype in the tool
(and build plugin) environment.  This code prevents the pollution.
2015-09-09 16:01:14 -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
Evan You
452c839d94 apply ci script updates 2015-09-09 15:29:46 -04:00
Martijn Walraven
95627b3bad Make sure an installed Cordova platform has a version script
When establishing the installed versions of Cordova platforms to check
whether we should remove the whole cordova-build directory to upgrade,
we make sure the platform has a version script and consider it outdated
if not.
2015-09-09 11:56:49 +02:00
Avital Oliver
128fb7ce55 Make meteor shell not crash when piped from another command.
This commit makes possible but but doesn't fully solve the problem of
using `meteor shell` within shell scripts. See #5055 for more
details.

Closes #5056
2015-09-08 19:34:53 -07:00
Martijn Walraven
9952552b34 Fix bug in upgrader when there is no cordova-plugins file 2015-09-03 16:22:09 +02:00
Sashko Stubailo
fec97c0bf3 Improve output of meteor mongo 2015-09-02 15:19:16 -07:00
David Glasser
71cf002daa Fix client refresh
Since 87b11bd we were treating client-only refreshes of the initial
server build as if they were initial builds, and not resetting the
project context.  This meant among other things that local packages
weren't being rebuilt, which led to #5074 (but also would have led to a
whole bunch of other problems).

Fixes #5074.
2015-09-02 15:16:28 -07:00
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