Commit Graph

17940 Commits

Author SHA1 Message Date
Ben Newman
7abaa56b1a Bump package versions for 1.4.2.1-rc.2 release. release/METEOR@1.4.2.1-rc.2 2016-11-08 14:08:08 -05:00
Ben Newman
932115120f Don't let options.hash override File#hash() salting. 2016-11-08 14:08:08 -05:00
Ben Newman
08016d25b8 Merge branch 'devel' into release-1.4.2.1 2016-11-08 13:55:30 -05:00
Ben Newman
4ada5c8a17 Bump LINKER_CACHE_SALT and compiler.BUILT_BY for good measure.
This will trigger recompilation and relinking, which should help prevent
various stale caching issues, e.g. #7977.
2016-11-08 13:50:32 -05:00
Ben Newman
940cc4f4d6 Add salt to File#hash in bundler.js.
This is what determines, among other things, source map URL names of the
form <hash>.map, so this may help to avoid #7977.
2016-11-08 13:48:54 -05:00
Ben Newman
a43d66991b Allow watch.sha1 to accept multiple arguments. 2016-11-08 13:48:23 -05:00
Ben Newman
a7ac32e00a Tolerate ENOENT errors in Builder#copyDirectory. 2016-11-08 13:33:20 -05:00
Ben Newman
6ce7891d9b Bump package versions for 1.4.2.1-rc.1 release. release/METEOR@1.4.2.1-rc.1 2016-11-04 18:45:51 -04:00
Ben Newman
ad460e0d7d Tolerate files.realpath throwing ELOOP exceptions. 2016-11-04 18:45:51 -04:00
Ben Newman
52697c7167 Cache getProdPackageNames optimistically. 2016-11-04 18:26:03 -04:00
Ben Newman
7f35e94713 Tolerate files.realpath throwing ENOENT exceptions. 2016-11-04 18:14:09 -04:00
Ben Newman
af51b8160c Use absolute paths for external symlinks in Builder#copyDirectory.
Thanks to @worldsayshi for reporting this issue with a reproduction.

Fixes #8005.
Fixes #2876.
Fixes #7154.
2016-11-04 17:44:42 -04:00
Ben Newman
340f0f6fd4 Merge branch 'release-1.4.2.1' into devel 2016-11-03 13:25:33 -04:00
Jesse Rosenberger
9d7cf49511 Support SAVE_DEV_BUNDLE_TARBALL caching on Windows dev_bundle install
The SAVE_DEV_BUNDLE_TARBALL environment variable is already supported in the Unix version and this mimics that functionality in the Windows script.  Use of this flag makes debugging much less painful, especially when switching branches (for example, during a `git bisect`) as the dev_bundle can be cached locally.

I also replaced a couple un-related uses of `echo` with `Write-Host` which is the preferred way to output messages in PowerShell as it supports more options.

Fixes: developer experience
2016-11-03 13:19:36 -04:00
Ben Newman
2e00dc3663 Bump package versions for 1.4.2.1-rc.0 release. release/METEOR@1.4.2.1-rc.0 2016-11-03 12:19:56 -04:00
Ben Newman
e7a8320ef9 Update History.md with changes in Meteor 1.4.2.1. 2016-11-03 12:18:42 -04:00
Ben Newman
57fe26161d Use Meteor.setTimeout to re-run tryInsert function. 2016-11-03 12:18:42 -04:00
Ben Newman
f290abc72e Another attempt to make "run --once" test more reliable. 2016-11-03 11:48:02 -04:00
Ben Newman
19fdc5c65f Make npm-rebuild.js more Windows-friendly.
Fixes #8007.
2016-11-03 10:25:55 -04:00
Ben Newman
acc98c7c15 Set NPM_CONFIG_PREFIX to dev_bundle by default. 2016-11-02 19:23:09 -04:00
Ben Newman
11c7b2aee2 Bump package versions for 1.4.2.1-beta.1 release. release/METEOR@1.4.2.1-beta.1 2016-11-02 18:10:10 -04:00
Ben Newman
6a137ea333 Merge branch 'devel' into release-1.4.2.1 2016-11-02 18:00:07 -04:00
Ben Newman
32ecb87dcc Merge pull request #7995 from meteor/babel-runtime-revamp
Rely on npm babel-runtime instead of Meteor helper implementations.
2016-11-02 17:49:44 -04:00
Ben Newman
cfc167a67b Make test more reliable by calling insert in Meteor.startup. 2016-11-02 17:25:26 -04:00
Ben Newman
e345fc2d27 Separate failing part of "run --once" test into own test. 2016-11-02 17:07:50 -04:00
Ben Newman
476d6bf7b3 Attempt to fix "run --once" test by giving Mongo a chance to exit.
This test has been failing intermittently on Circle CI.
2016-11-02 16:25:37 -04:00
Ben Newman
31e7b8bb48 Clean up temporary package.json files. 2016-11-02 15:45:04 -04:00
Ben Newman
643a9f12da Move default npm deps install function into own module.
This extraction was necessary because importing tools/cli/commands.js is
not entirely side-effect-free, and was interfering with older tests.
2016-11-02 15:38:39 -04:00
Ben Newman
4bf69409fa Call installDefaultNpmDeps in old bundler-assets test. 2016-11-02 15:16:30 -04:00
Ben Newman
fd57b86125 Run npm install in test apps even if package.json exists. 2016-11-02 14:18:43 -04:00
Ben Newman
5f0ffc5217 Remove coffeescript version constraint in modules test app. 2016-11-02 14:18:42 -04:00
Ben Newman
a90011b885 Improve meteor shell self-test. 2016-11-02 14:18:42 -04:00
Ben Newman
5dc2eaa0f7 Add babel-runtime to test app package.json files. 2016-11-02 13:32:01 -04:00
Ben Newman
8bc4fe20c6 Cache .meteor-portable values temporarily in memory.
This is another way to fix the bug I previously fixed by passing
options.allowSyntaxError to optimisticReadJsonOrNull.

To reproduce the bug (and/or verify that it is fixed), run the following
commands in a terminal:

  rm -rf meteor/packages/npm-mongo/.npm
  meteor/meteor --get-ready

Before these two commits, optimisticReadJsonOrNull would throw a
SyntaxError when reading one of the .meteor-portable files because an
asynchronous write to the same file had not yet finished.
2016-11-02 13:15:57 -04:00
Ben Newman
909419b36e Optionally tolerate SyntaxError in optimisticReadJsonOrNull. 2016-11-02 13:04:09 -04:00
Ben Newman
6b6a71b073 Fix and improve app creation tests. 2016-11-02 12:47:01 -04:00
Ben Newman
270b5cc8ef Run meteor npm install as part of meteor create tests. 2016-11-02 12:05:33 -04:00
Ben Newman
6dcd8b78f2 Run installDefaultNpmDeps whenever creating self-test apps.
Some tests disable the --prepare-app step, but still need babel-runtime
to be installed.
2016-11-02 12:05:33 -04:00
Ben Newman
10f997ae0e Make --prepare-app install default npm deps to fix self-tests.
Tests were broken by the new dependency on the babel-runtime npm
package, but fortunately all those tests run `meteor --prepare-app`
whenever an app is created by a self-test, so this change should fix
most of the breakages.
2016-11-02 12:05:33 -04:00
Ben Newman
f0355276a5 Remove babel-runtime-specific logic from compiler-plugin.js. 2016-11-02 12:05:33 -04:00
Ben Newman
4ce343f56c Simplify Meteor babel-runtime package by relying on npm version.
Though this may seem like a significant change, this package will still
work for older apps as long as the developer follows the instructions
about installing the babel-runtime npm package.

Helps with #7956.
2016-11-02 12:05:33 -04:00
Ben Newman
b3746d8879 Install basic npm dependencies when running test-packages.
At this point, the only dependencies installed in this way are
babel-runtime and meteor-node-stubs, but that set of packages will
expand in the future as we move more dependencies to npm.
2016-11-02 12:05:33 -04:00
Ben Newman
24489295f2 Add babel-runtime to the default new-app package.json file.
In light of issues like #7956, I would very much like for app developers
to be responsible for providing node_modules/babel-runtime, and for the
Meteor babel-runtime package to stop attempting to implement a subset of
the helpers.
2016-11-02 12:05:33 -04:00
Ben Newman
488631ad25 Write caching-compiler cache files synchronously when testing.
Setting METEOR_DISABLE_FS_FIBERS broke these tests because
CachingCompiler#_writeFileAsync was still asynchronous, whereas other FS
operations became synchronous.
2016-11-01 19:38:08 -04:00
Ben Newman
d8c0739a13 Make some matches in compiler-plugins.js test order-insensitive.
Also increased various timeouts to make tests more reliable.
2016-11-01 19:38:08 -04:00
Tom Coleman
fa86a682ba Merge pull request #7998 from abernix/feature/fix-6337
Clarify mis-leading wording in the `stylus` README
2016-11-01 15:39:04 -07:00
Tom Coleman
f3ca8cb5a4 Merge pull request #7997 from Davidyuk/patch-1
Refactor template of `resetPassword` email
2016-11-01 15:38:32 -07:00
Ben Newman
51819a6cb3 Implement Run#matchBeforeExit(pattern) for order-insensitive matching. 2016-11-01 18:23:35 -04:00
Ben Newman
dd012bf6e5 Tolerate " => awaited here:" in parseStackFrames.
da826064bc
2016-11-01 17:25:42 -04:00
Jesse Rosenberger
b23d832cf6 Clarify mis-leading wording the stylus README
Make it clear that all files with the `.styl` extension are processed and not just `.main.styl` files.

Fixes meteor/meteor#6337
2016-11-01 17:30:04 +02:00