Commit Graph

5074 Commits

Author SHA1 Message Date
Ben Newman
440de7e92c Convert ResourceSlot to an ES2015 class. 2015-11-03 20:03:29 -05:00
Evan You
dcbb35ddc2 Merge pull request #5597 from mbrookes/command-aliases
Remove stray comments from command aliases.
2015-11-03 17:03:36 -05:00
Sashko Stubailo
38c4be2bd1 Fix typo in docs
Fixes #5554
2015-11-03 13:55:02 -08: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
Tom Freudenberg
8a24a1b2ba Make Script More Portable With #!/usr/bin/env 2015-11-01 22:04:10 +01:00
Martijn Walraven
2bacce618c Fix client hash calculation during initial build for Cordova
Including an empty PUBLIC_SETTINGS object when there are no public
settings fixes a discrepancy between the way we calculated the client
hash for Cordova in CordovaBuilder and in webapp_server.js. This
discrepancy meant a Cordova app would always download a new version the
first time it started up, because the bundled version hash and the
server version hash would be different.
2015-11-01 15:42:35 +01:00
Ben Newman
a9fde48ca8 Treat api.files[arch].{sources,assets} as arrays, not objects.
We only got away with this because we later use _.values to iterate over
the elements of the array, which just happens to do the right thing when
the array is overloaded with object properties. The order of iteration was
even the same because object keys are enumerated in order of assignment,
but when you're working with an ordered list of files it's better to use
an array the normal way (for its elements rather than its properties).
2015-10-29 23:57:31 -04:00
Blake Bourque
0aa1291fd6 Patch to allow users to override root cert list
Fixes #4757
Uses environment variable CAFILE (to match NPM) which must contain a fully qualified path to a pem format root certificate to include in the list of trusted root certs.

This additional root certificate will be needed for those behind an SSL inspection proxy which acts as an SSL termination point and resigns the traffic with its own root certificate.
2015-10-27 13:39:18 -07:00
Sashko Stubailo
dd2f166fe9 Don't throw an error when using deprecated package asset API
Fixes #5458
2015-10-21 14:34:20 -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