Commit Graph

5726 Commits

Author SHA1 Message Date
Ben Newman
817187bfc9 Bump LINKER_CACHE_SALT to trigger relinking. 2016-07-07 17:01:12 -04:00
Ben Newman
a9e8cbe267 Move Promise runtime setup into its own module.
Test code was requiring the install-runtime.js module without requiring
the index.js module, so global.Promise was not defined.
2016-07-07 17:01:11 -04:00
Ben Newman
7b37188279 Remove .meteor/dev_bundle if .meteor/release reads "none". 2016-07-07 16:51:04 -04:00
Ben Newman
542891b65d Make meteor {node,npm} respect .meteor/dev_bundle when possible. 2016-07-07 15:24:25 -04:00
Ben Newman
6cd1c472d9 Create a .meteor/dev_bundle symlink when writing .meteor/release.
This will make it easier for `meteor node` and `meteor npm` to find the
right dev_bundle for the current application.
2016-07-07 15:24:24 -04:00
Ben Newman
b23ad6d85f Respect .meteor/release when running meteor {npm,node} from checkout. 2016-07-07 15:24:24 -04:00
Ben Newman
eadb6e65cc Ensure only one Promise constructor is ever used by tools code. 2016-07-07 11:04:18 -04:00
Ben Newman
f812762353 Infer dev_bundle for meteor {npm,node} from .meteor/release.
Fixes #7338.
Fixes #7297.
2016-07-06 21:00:40 -04:00
Ben Newman
9c37dbf3e5 Only write .meteor-portable files in npm package directories.
Also clean up any existing misplaced .meteor-portable files.

Fixes #7296.
2016-07-06 21:00:39 -04:00
Ben Newman
c91a95cbef Make sure meteor shell options JSON is parsed separately.
Also don't ignore the `error` parameter passed to the readJSONFromStream
callback function.

Fixes #7312.
2016-07-06 21:00:39 -04:00
Ben Newman
1783559b56 Use ES2015 syntax to import JsFile and CssFile. 2016-07-06 21:00:39 -04:00
Ben Newman
9d417303c1 Symlink .meteor/local/plugin-cache in temporary test directory.
Because the cache directories are shared instead of copied, the results
now have a chance of surviving multiple invocations of `meteor test`.

This significantly reduces rebuild times when testing a large app; for
example, the meteor/tools/tests/apps/modules app now takes less than 10
seconds to rebuild (after restarting the process, not after a file change)
instead of 60 seconds or more.
2016-07-06 21:00:38 -04:00
Ben Newman
9865322d4c Compute prodPackageNames lazily. 2016-07-06 21:00:38 -04:00
Ben Newman
94f9ebbdd8 Don't call nonexistent writeHead method of net.Socket objects. 2016-07-06 21:00:38 -04:00
Ben Newman
ad997e9d4d Tolerate non-string results from path.* functions.
In particular, path.isAbsolute returns a boolean value.
2016-07-06 21:00:37 -04:00
Wexpo Lyu
5aaf1877f9 Update the code using files. 2016-07-04 06:19:36 +08:00
Wexpo Lyu
2e73838926 Relative path resolves to project directory.
Fixing #7292
2016-07-03 12:41:18 +08:00
Gabriel Rubens
cbb9e219d7 Include test for App.appendToConfig 2016-06-29 09:18:12 +10:00
Gabriel Rubens
2be5bedc19 Update App.appendToConfig to use a raw string 2016-06-29 09:18:12 +10:00
Gabriel Rubens
3797ab014e Implement App.appendToConfig 2016-06-29 09:18:12 +10:00
Tom Coleman
8bdbcb7199 Marginally more helpful message to install phantom for self-test 2016-06-29 08:24:58 +10:00
Ben Newman
d023789e10 Merge pull request #7285 from meteor/release-1.3.4.1
Release 1.3.4.1
2016-06-24 16:12:18 +00:00
Martijn Walraven
238623ca74 Avoid building Cordova project when no run targets are specified
Fixes #7271.
2016-06-24 15:19:09 +02:00
Ben Newman
12e563664b Disable the HTTP timeout for the Galaxy upload POST. 2016-06-23 11:49:57 -04:00
Ben Newman
df77c39908 Bump default HTTP timeout to 60 seconds, and allow disabling. 2016-06-23 11:49:23 -04:00
Tom Freudenberg
4cd91f67fa Fix error on accessing empty releaseRecordForConstraints var
When running meteor from checkout this var is defined to be null.
	Accessing var instance attribute will raise an exception
2016-06-23 02:01:32 +02:00
Ben Newman
6c55961d98 Revert "Tolerate UNKNOWN errors in files.statOrNull on Windows."
This reverts commit 7ea260dac2.

The original reporter of #7243 says the problem has gone away (see
https://github.com/meteor/meteor/issues/7243#issuecomment-227643684), and
I would rather not hide UNKNOWN errors if we can help it.
2016-06-22 15:26:37 -04:00
Ben Newman
8507d44717 Flatten the files.withCache hierarchy.
It turns out throwing away cached results collected during nested
file.withCache calls was not a good idea.
2016-06-22 15:12:30 -04:00
Ben Newman
b14fb05128 In node_modules directories, cache packageSource._findSources.
This caching vastly reduces the amount of work _findSources must do when
the server restarts, at the small cost of ignoring new files added within
node_modules subdirectories. Even if you have to restart the server when
you add a file to node_modules (super rare), that's still MUCH better than
waiting for _findSources to rescan the node_modules directory every time
the server restarts.

Part of #7253 and #7008.
2016-06-22 14:45:11 -04:00
Ben Newman
a2e380d154 Cache files.{stat,lstat,realpath,readdir} hierarchically.
Passing a function to files.withCache invokes the function and causes the
results of these four files.* methods to be cached for the duration of the
function invocation.

Part of #7253 and #7008.
2016-06-22 14:41:54 -04:00
Ben Newman
9a5907b911 Merge branch 'devel' into release-1.3.4 2016-06-22 13:22:44 -04:00
Zoltan Olah
8f86d08827 Merge pull request #7143 from mitar/timeouts
Set timeout for HTTP requests
2016-06-22 08:59:38 +10:00
Ben Newman
7ea260dac2 Tolerate UNKNOWN errors in files.statOrNull on Windows.
Fixes #7243.
2016-06-21 13:40:15 -04:00
Ben Newman
b83e4d3061 Avoid crashing when proxying invalid requests. 2016-06-20 18:31:13 -04:00
Ben Newman
e9ed66e385 Install npm dependencies without creating package.json files.
With npm@3, we can get away with using only npm-shrinkwrap.json files.
2016-06-20 15:43:51 -04:00
Ben Newman
9897092a7c Merge pull request #7237 from meteor/release-1.3.3.1
Release 1.3.3.1
2016-06-17 22:49:08 +00:00
Jack Ivy
4b584c10ce Allow --headless option for test and test-packages 2016-06-17 13:15:00 -04:00
Mitar
3846c6f45c Changed timeout 30 seconds as instructed by our god Math.random(). 2016-06-16 23:12:08 -07:00
Ben Newman
a5b34af583 Fix babel-runtime/regenerator import in tools runtime setup.
Fixes #7181.
2016-06-16 16:59:58 -04:00
Ben Newman
3f3a6dc6b5 Fix misuse of Map object in Resolver.prototype.resolve.
Using this._resolveCache as an object rather than using the Map methods
(.has, .get, .set) almost works, miraculously, except of course when
resolving a module identifier whose name is "has", "get", or "set",
because then the cache appears to contain a matching entry, but the cached
value is a function object, not a proper byParentDir object.

Fixes #7215.
2016-06-16 16:59:56 -04:00
Jonas Aschenbrenner
d2309542a2 Removes Velocity testing code 2016-06-16 19:13:25 +02:00
Ben Newman
dce2b20ddb Merge pull request #7033 from meteor/release-1.3.3
Release 1.3.3
2016-06-10 18:18:28 -04:00
Ben Newman
b907fea4c4 Update modules test app to use the official Meteor 1.3.3 release. 2016-06-10 17:21:30 -04:00
Ben Newman
32555d5ed9 Bump compiler.BUILT_BY in tools/isobuild/compiler.js. 2016-06-10 16:17:23 -04:00
Ben Newman
9d0c4b9cfa Bump LINKER_CACHE_SALT to trigger relinking. 2016-06-10 14:33:47 -04:00
Ben Newman
eea8612834 Update modules test app to 1.3.3-rc.5. 2016-06-09 13:20:20 -04:00
Ben Newman
cf4b098c09 Also record .meteor-last-rebuild-version.json after install from shrinkwrap. 2016-06-09 11:45:21 -04:00
Ben Newman
091c0417f1 Write .meteor-last-rebuild-version.json after initial install.
This should help prevent unnecessary rebuilds for packages with binary
dependencies installed from Atmosphere.

Related: #7188
2016-06-09 10:43:43 -04:00
Tom Coleman
fa21921280 Merge pull request #7176 from chemicstry/ipv6_support
IPv6 Support. closes #7155
2016-06-08 13:01:50 +10:00
Tom Coleman
bb1e1039f8 Added documentation for Assets.absoluteFilePath()
See https://github.com/meteor/meteor/issues/6552
2016-06-08 12:56:32 +10:00