Commit Graph

15740 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
7212663981 Bump bundle version to 0.5.20 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
4436bb95d0 Consider startup successful after all callbacks have completed 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
Sashko Stubailo
68f27b2cd3 Merge pull request #6005 from nagelflorian/devel
Add meteor login / logout info to docs
2016-01-19 15:08:17 -08:00
Sashko Stubailo
d9abbc803f Fix double stache in docs about Template.dynamic 2016-01-19 11:07:59 -08:00
nagelflorian
fda81f65a1 Add meteor login / logout info to docs 2016-01-14 23:50:29 +01:00
Avital Oliver
7b53281af6 Reserve dev bundle version for not yet released Meteor 1.2.2 2016-01-13 11:25:56 -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
Martijn Walraven
c766ce393c Merge pull request #5951 from meteor/webapp-caching-improvements
Webapp caching improvements
2016-01-11 13:04:06 +01:00
Martijn Walraven
bdbdad91d3 Set hash to version when serving manifest.json 2016-01-11 12:50:54 +01:00
Martijn Walraven
ce628dfb81 ETags should be enclosed in double quotes 2016-01-11 11:14:36 +01:00
Martijn Walraven
fdebebb7ed Replace deprecated connect.utils.parseUrl() with parseurl module
As recommended in the deprecation warning, we replace
connect.utils.parseUrl() usage with using the parseurl module directly.
2016-01-08 13:24:04 +01:00
Martijn Walraven
21ee605541 Support query parameter to avoid downloading index page when a file does not exist
When downloading files during a Cordova hot code push, we need to
detect if a file is not available instead of inadvertently downloading
the default index page.
2016-01-08 13:23:50 +01:00
Martijn Walraven
0a31dabcd6 Don't set Last-Modified based on the file date
If we serve files with a Last-Modified based on the file date, this
interferes with content-based cache validation using ETag because
clients are required to take both into account.
2016-01-08 13:21:30 +01:00
Martijn Walraven
b8a17dd97f Serve non-cacheable files with a max-age of 0 instead of a day
We previously served non-cacheable files with a max-age of a day. This was done
to avoid image flickering on page reload (see #773).
As far as I can tell, image flickering still occurs because `location.reload`
always forces validation. But switching to `location.replace` means that max-age
will actually be respected, and we don't want to cache these assets for a day
because then changes would not be visible on reloads.
2016-01-08 13:21:29 +01:00
Martijn Walraven
5d501d1793 Update send and connect dependencies for webapp package
Updating send was necessary to allow disabling setting Last-Modified,
and version dependencies required updating connect as well.
2016-01-08 13:21:29 +01:00
Martijn Walraven
5e9090c3ee Use location.replace() instead of location.reload() to avoid unnecessary asset validation
If a cached version of an asset is still fresh (depending on the `max-age`), there
is no need to send even a conditional request. Because `location.reload()` for
some reason does force validation, it makes sense to use `location.replace` instead
and improve reloading performance by avoiding unnecessary requests.
2016-01-08 13:21:29 +01:00
Martijn Walraven
dac580e212 Set ETag header to asset hash if available
Previously, the ETag header was set (by `send`) to a default value based on the
inode of the file. Using the asset hash instead allows for proper conditional
requests even after redeployments.

To take advantage of content-based caching, we also have to disable the
Last-Modified header because having this set to the file date would still make
requests conditional on the most recent deployment. This requires updating the
send dependency and is done in a separate commit.

Fixes #626.
2016-01-08 13:21:29 +01:00
Sheel Patel
a28aa7f95c Fixed incorrect property name in documentation 2016-01-07 22:43:52 -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
Sashko Stubailo
fdc4b3c6ce Make some more improvements 2016-01-06 18:51:55 -08:00
Sashko Stubailo
35df54c108 Remove parts of docs that are in the Meteor Guide now 2016-01-06 18:51:55 -08:00
Sashko Stubailo
52c67dd020 Update browser policy README 2016-01-05 15:25:17 -08:00
Sashko Stubailo
2efbe2df98 Merge pull request #5937 from mjmasn/5820-allow-middleware-to-set-http-status-code
Allow middleware to set http status code (fixes #5820)
2016-01-05 09:54:17 -08:00
Michael Mason
f263ca4fea Allow middleware to set http status code
This commit allows middleware to set the status code of the http response. This will allow a server-side router to return, for example, a '404 Not Found' response. This has SEO benefits because currently search engines may index example.org/page-that-doesn't-exist because Meteor returns a 200 OK code and the normal boilerplate response body. With a proper 404 status we can still return the boilerplate to render a client side 404 template but search engines won't index the page. Instead of a hardcoded 200 response, we call res.writeHead with res.statusCode, and fallback to the default 200 code if it has not been set.
2016-01-05 11:05:53 +00:00
Sashko Stubailo
4f8d7dce24 Merge pull request #5921 from IeuanG/patch-1
Updated year in licence
2016-01-04 14:50:28 -08:00
Mitar
5b4e1c6d39 Expose SessionDocumentView. 2016-01-04 11:00:19 -08:00
Braden Whitten
5e99a0542f Fix typo in Promise resolve call 2016-01-03 18:29:18 -08:00
Ieuan Griffiths
57e257c686 Updated year in licence 2016-01-02 12:37:17 +00:00
Mitar
28bf983ad5 Better error messages. 2015-12-31 11:17:46 +01:00
Sashko Stubailo
353e8e3a4a Merge pull request #5845 from mitar/patch-20
Allow to find the corresponding collection from the store
2015-12-29 11:01:24 -08:00
Sashko Stubailo
0f0c5d3bb3 Merge pull request #5859 from Slava/devel
Add profiling information to clearly outline slow legacy-style compilers
2015-12-29 10:31:28 -08:00
Sashko Stubailo
64be7cf92e Merge pull request #5898 from mitar/patch-21
Correct argument
2015-12-29 10:28:43 -08:00