Commit Graph

5065 Commits

Author SHA1 Message Date
Sashko Stubailo
a5a806f15f Don't throw an error when using deprecated package asset API
Fixes #5458
2015-10-21 14:32:46 -07:00
Ben Weissmann
f68cf5c79f Fix documentation for Cordova.depends
* Fix broken link to Github cordova documentation.
* Fix invalid Github tarball URL example
2015-10-19 19:38:22 -04:00
Evan You
0f98ea22fc fix git hook install check 2015-10-09 20:58:45 -04:00
David Glasser
38fbeaaa91 Make package.json deterministic again
Now that we include it in published packages (as
node_modules/.package.json) we don't want it to change on every npm
update, or else we'll have to spuriously update package versions.

(The next release with this fix will spuriously update package versions,
though!)
2015-10-06 17:43:47 -07:00
Ben Newman
c00b12b8fa Use meteor-ecmascript-runtime in dev bundle instead of core-js. 2015-10-03 14:39:24 -04:00
David Glasser
7191dfcf3e Fix to METEOR_BINARY_DEP_WORKAROUND change
Avoids crash on mostCompatibleArch
2015-09-24 18:30:27 -07:00
Martijn Walraven
76bb1a183e Make buildmessage.exception() deal with the case where an error has no stack trace 2015-09-24 12:03:51 +02:00
Martijn Walraven
7de25fbd5a Remove whitespace in Cordova plugin renaming warning message 2015-09-24 08:54:32 +02: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
Martijn Walraven
dec5d8ad91 Fix reading cordova-plugins to not remove contents after #
Attempting to remove comments lead to problems adding Cordova plugins
with a Git URL, because the removed part after # contains the SHA.
2015-09-22 22:45:38 +02:00
David Glasser
2b0e8ddfbf Include exports in codeless legacy builds
Fixes #5228.
2015-09-21 23:16:17 -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
Sashko Stubailo
6fc2160d8e Make notice link to wiki page on breaking changes 2015-09-21 15:18:39 -04:00
Martijn Walraven
657c45977b Add isobuild:cordova feature package
This allows packages to depend on specific versions of Cordova.
2015-09-21 19:57:01 +02:00
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
e134fd671a Avoid returning an empty client watch set from bundler.bundle.
Fixes #5080.
2015-09-17 18:48:14 -04: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
Mitar
5a36f344e8 Do not fail if meteor tool is not run from a git clone. 2015-09-15 13:59:49 -07: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
7eafc55eb2 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:39 -04: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
7abbceabdf 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:38:14 -07: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