Commit Graph

5143 Commits

Author SHA1 Message Date
Martijn Walraven
2c190564d4 Check if default app icon and launch screen images exist before copying 2016-01-25 15:02:40 -08:00
Martijn Walraven
b05cd35577 Abort followup tasks if Cordova project creation doesn't succeed 2016-01-25 15:02:40 -08:00
Martijn Walraven
7a2e6de78e Stop protecting against String.prototype modifications in shelljs 2016-01-25 15:02:39 -08:00
Martijn Walraven
38f2246cfd Stop adding / to bundled Cordova ROOT_URL in runtime config
Served index pages do not include / in their ROOT_URL either, so for
consistency we’ll remove it here too (that makes it easier to detect
when something actually changed).
2016-01-25 15:02:39 -08:00
Martijn Walraven
1a5ca70f68 Add local Cordova plugins with --link option 2016-01-25 15:02:39 -08:00
Martijn Walraven
77505025a7 Append version hash to bundled manifest for Cordova 2016-01-25 15:02:39 -08:00
Martijn Walraven
1f1b2a91b8 Update to new Cordova webapp plugin 2016-01-25 15:02:39 -08:00
Martijn Walraven
99e58d72a0 Support modern Cordova whitelist mechanism 2016-01-25 15:02:39 -08:00
Martijn Walraven
3030af03fb Add comment to pinned platform versions 2016-01-25 15:02:39 -08:00
Martijn Walraven
96d33ad053 Listen to more Cordova log levels 2016-01-25 15:02:39 -08:00
Martijn Walraven
f7692920e9 Pin Cordova platform versions 2016-01-25 15:02:38 -08:00
Martijn Walraven
87ae0bf54f Update cordova-lib dependency to 5.4.1 2016-01-25 15:02:38 -08:00
Steven Edouard
00710d8657 Remove not-mobile-capable checks for Windows! 2016-01-25 15:02:02 -08:00
Steven Edouard
fdb705d1ed Stop overriding process.env
Overriding process.env removes case insensitivy for environment
variables on Windows. (Causes problems with 'Path' vs 'PATH')
2016-01-25 15:02:02 -08:00
Steven Edouard
8abbf3012f Console success output should print on Windows cmd 2016-01-25 15:02:02 -08:00
Steven Edouard
fd83e399fe Launch processes in a Windows-friendly way
- options.cwd passed through convertToOSPath
- launch processes on Windows using child_process.exec
- parse args for windows into space-delimited string
2016-01-25 15:02:02 -08:00
Steven Edouard
06a3849700 Make path to check_reqs module Windows-friendly 2016-01-25 15:02:02 -08:00
David Greenspan
c144e0c7d3 Merge pull request #5912 from mitar/better-error-messages
Better error messages for compiler plugins
2016-01-12 15:04:11 -08:00
Sashko Stubailo
89161b0bec Merge pull request #5928 from bwhitty/patch-2
Fix typo in Promise resolve call
2016-01-11 11:50:17 -08:00
Doug Horner
3141308108 Override should come after Platform Synchronize
While processing a clean build (ie: meteor reset) this error occurs, because the platform directory exists but it empty.

Processing mobile-config.js
Writing new config.xml
Creating Cordova project
% Creating a new cordova project.
Preparing Cordova project from app bundle
Processing mobile-config.js
Copying resources for mobile apps
Writing new config.xml
Copying over the cordova-build-override directory
Adding platform iOS to Cordova project
% Adding ios project...
Adding plugin cordova-plugin-camera@1.2.0 to Cordova project
% Fetching plugin "cordova-plugin-camera@1.2.0" via npm
% Installing "cordova-plugin-camera" for android
% Failed to install 'cordova-plugin-camera':CordovaError: The provided path "/Users/horner/prj/wodrival/.meteor/local/cordova-build/platforms/android" is not an Android project.
    at new android_parser (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:35:15)
    at new PlatformProjectAdapter (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/platforms/platforms.js:61:19)
    at Object.getPlatformProject (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/platforms/platforms.js:97:23)
    at handleInstall (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/install.js:563:36)
    at /Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/install.js:363:28
    at _fulfilled (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:749:13)
    at /Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:509:49
    at flush (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:448:13)
=> Errors executing Cordova commands:
2016-01-07 12:11:52 +01:00
Braden Whitten
5e99a0542f Fix typo in Promise resolve call 2016-01-03 18:29:18 -08:00
Mitar
28bf983ad5 Better error messages. 2015-12-31 11:17:46 +01:00
Slava Kim
d28d3902c1 Add profiling information to clearly outline slow legacy-style compilers 2015-12-21 15:44:16 -05:00
Félix-Antoine Paradis
b0e3a7b7a8 fixes the runnerw output problem in non-tty windows console 2015-12-15 19:48:52 -05:00
Ben Newman
f7b2735d23 Reimplement fiberHelpers.parallelEach without explicit Fibers. 2015-12-09 12:06:52 -05:00
Ben Newman
6aec5ef841 Eliminate Fiber from tools/console.js. 2015-12-09 12:06:52 -05:00
Ben Newman
79f82911d0 Avoid having to use Fibers explicitly in buildmessage.forkJoin. 2015-12-09 12:06:52 -05:00
Ben Newman
3cafbc72ac Use async functions to eliminate the need for fiberHelpers.inBareFiber.
The comments for inBareFiber claim that it's for times when you don't want
to inherit the dynamic environment variables of the current Fiber, but
none of the call sites actually relied on this behavior. Still, it may be
worth noting that async functions automatically (and cheaply) inherit the
calling Fiber's dynamics, which is virtually always what you want.
2015-12-09 12:06:51 -05:00
Ben Newman
58fcc8d49e Use an async method to start Mongo in a Fiber. 2015-12-09 12:06:51 -05:00
Ben Newman
2d8fbb6c79 Eliminate Future-related utilities from tools/fiber-helpers.js. 2015-12-09 12:06:51 -05:00
Ben Newman
46e631e099 Eliminate Future from tools/files.js. 2015-12-09 12:06:51 -05:00
Ben Newman
9a466d2efa Eliminate Future from tools/run-mongo.js. 2015-12-09 12:06:50 -05:00
Ben Newman
8f85b1a2b5 Eliminate Future from tools/selftest.js. 2015-12-09 12:06:50 -05:00
Ben Newman
8b71f9986c Eliminate Future from tools/package-client.js. 2015-12-09 12:06:50 -05:00
Ben Newman
b36f8178de Eliminate Future from tools/meteor-npm.js. 2015-12-09 12:06:49 -05:00
Ben Newman
8dffdaeb38 Eliminate Future from tools/main.js. 2015-12-09 12:06:49 -05:00
Ben Newman
d1b9fb1674 Eliminate Future from tools/bundler.js. 2015-12-09 12:06:49 -05:00
Ben Newman
d54410db8e Eliminate Future from tools/service-connection.js. 2015-12-09 12:06:48 -05:00
Ben Newman
d1d0734682 Eliminate Future from tools/run-selenium.js. 2015-12-09 12:06:48 -05:00
Ben Newman
2b6647fc2a Eliminate Future from tools/run-proxy.js. 2015-12-09 12:06:48 -05:00
Ben Newman
7f0156f273 Eliminate Future from tools/http-helpers.js. 2015-12-09 12:06:47 -05:00
Ben Newman
8ad55e3f7b Eliminate Future from tools/console.js. 2015-12-09 12:06:47 -05:00
Ben Newman
3869b7ed04 Eliminate Future from tools/commands.js. 2015-12-09 12:06:47 -05:00
Ben Newman
15ef3884cc Eliminate Future from tools/utils.js. 2015-12-09 12:06:46 -05:00
Ben Newman
7ac15ca0b5 Eliminate Future from tools/catalog-remote.js. 2015-12-09 12:06:46 -05:00
Ben Newman
c815a5b534 Eliminate Future from tools/buildmessage.js. 2015-12-09 12:06:46 -05:00
Ben Newman
f57a2756a6 Eliminate Future from tools/auth.js. 2015-12-09 12:06:45 -05:00
Ben Newman
d245199737 Eliminate Future from run-{all,app}.js, in favor of Promise.
Any code that has access to a Future object also has the capability of
calling its .return method. Promise objects, by contrast, can only be
resolved or rejected by the creator of the Promise (or any code granted
access to the special resolve and/or reject functions, which are not
simply methods of the Promise object). The run-app.js file contains a lot
of code that used to assume a Future could be resolved by anyone, which is
why the _{make,resolve}Promise methods were necessary.

For this reason, replacing Future with Promise in these two files seemed
tricky and worth attempting first, before spending time converting easier
files.
2015-12-09 12:06:45 -05:00
Ben Newman
cba119ea5d Eliminate spurious require('fibers/future') calls in various files. 2015-12-09 12:06:45 -05:00
Ben Newman
61f819b89a Forbid user-provided npm configuration files in meteor-npm.js.
Follow up to #5710.
2015-12-08 20:08:13 -05:00