Commit Graph

17620 Commits

Author SHA1 Message Date
Ben Newman
0808325846 Bump package versions for 1.4.2-beta.7 release. release/METEOR@1.4.2-beta.7 2016-09-29 17:48:31 -04:00
Ben Newman
42e0efef61 Update History.md with recent changes in the 1.4.2 release. 2016-09-29 17:47:15 -04:00
Ben Newman
e882a7ea52 Merge branch 'devel' into release-1.4.2 2016-09-29 16:57:44 -04:00
Ben Newman
c829bf580e Merge pull request #7840 from meteor/reconfigure-mongo-when-port-differs
Reconfigure Mongo replica set when --port differs
2016-09-29 16:56:36 -04:00
Ben Newman
dd3fe9a264 Add additional delay to "run: run" test. 2016-09-29 16:03:18 -04:00
Michiel ter Reehorst
8dbfd9769a Bump the coffeescript package version (#7845)
That way everyone who wants to can update to version `1.2.6` and enjoy coffeescript `1.11.0`.
2016-09-29 15:59:35 -04:00
Lieuwe Rooijakkers
c13fe33aa3 coffeescript: improve es6 regex performance (#7846) 2016-09-29 15:59:06 -04:00
Ben Newman
295d3d5678 Kill mongo when server process exits.
We try to kill any mongod processes before starting new ones, but this
change kills it when the development server shuts down, too.

Killing mongo on shutdown is particularly important for tests that run
meteor multiple times in a row, and for whatever reason fail to find and
kill running mongod processes on startup, e.g. because the --port has
changed (#7563).

This comment by @glasser seems to suggest this is a reasonable idea:
https://github.com/meteor/meteor/issues/2182#issuecomment-45685614

Fixes #2182 and possibly other related bugs.
2016-09-29 09:48:55 -04:00
Ben Newman
5b2e08a80c Automatically reconfigure Mongo replication set when --port differs.
Fixes #7563.
2016-09-29 09:48:55 -04:00
Ben Newman
20a6604126 Remove pointless and exception-swallowing assert.doesNotThrow wrappers. 2016-09-29 08:51:57 -04:00
Ben Newman
f8ba1226b1 Rename test entry point module so that it isn't ignored. 2016-09-29 08:51:56 -04:00
Ben Newman
697e7ae0f7 Protect against null return values from getDevBundleForRelease. (#7841)
Fixes #7838.
2016-09-28 19:54:10 -04:00
lucfranken
e06da93fd8 Fix #7827 - Fix link in Contributing.md (#7834)
Link to Meteor website was broken and there were 2 links which looked
like one. Replaced with a link to the list of packages in the Meteor
repository to give the best currently available overview of the parts
of Meteor.
2016-09-28 09:41:32 -04:00
Geoffrey Booth
12472cfe7a CoffeeScript now supports ES2015 modules (#7818)
* Update CoffeeScript to 1.11.0, which supports modules; update check for whether to pass CoffeeScript’s output to Babel to look not just for backticks, but also for `import`, `export` and `function*`, the current ESNext features output by CoffeeScript

* Add tests for imported modules using CoffeeScript’s new native import statement

* Test that CoffeeScript native export statements work, by importing something exported by such a statement

* Improve regex

* Optimize regex
2016-09-28 09:36:53 -04:00
Mehdi Ahraoui
2bc5b4b3b6 Meteor should check if is running as root and prevent it on Unix (#7821)
* Prevent running sudo meteor run it on Unix

Prevent running sudo meteor run it on Unix

Fix for all commands

remove empty line

Revert "Prevent running sudo meteor run it on Unix"

This reverts commit d2867561bb6fb1b259a59556628b56a64c677a0b.

improve PR

improve PR

improve PR

fix PR

* improve PR

* fix PR

* fix PR

* fix PR
2016-09-28 09:34:53 -04:00
Seba Kerckhof
8cdab91bc4 Do not check connection with protected npm registries (#7637)
* Do not check connection with protected npm registries

* Remove need for registry http get check by tuning npm retry parameters
2016-09-28 09:29:35 -04:00
Jesse Rosenberger
465a7f724c Merge pull request #7819 from alphanso/iss7478
Use -s as short form of --settings flag
2016-09-28 03:46:37 +03:00
Jesse Rosenberger
d787654e60 Update help.txt with -s shorthand for --settings flags.
The -s flag is now shorthand for --settings

Related to meteor/meteor#7478
2016-09-28 02:52:11 +03:00
Zoltan Olah
e78e27dd3a Merge pull request #7800 from abernix/abernix-fix-7538
[docs] Clarify JSDoc for pollingIntervalMs and pollingThrottleMs options
2016-09-27 15:55:30 -07:00
Zoltan Olah
6d36f47cef Merge pull request #7801 from abernix/abernix-fix-issue-7786
Add Newlines to end of .gitignore files, specifically the new app skel
2016-09-27 15:53:54 -07:00
Ben Newman
9338fbd73f Bump package versions for 1.4.2-beta.6 release. release/METEOR@1.4.2-beta.6 2016-09-27 13:31:41 -04:00
Ben Newman
beafa8ab18 Bump $BUNDLE_VERSION to 4.2.12 before rebuilding dev bundle. 2016-09-27 12:47:18 -04:00
Ben Newman
2483fb3cb3 Update the lru-cache npm package to v4.0.1. 2016-09-27 12:47:13 -04:00
Ben Newman
67116898d9 Update History.md with recent changes for 1.4.2. 2016-09-27 12:47:13 -04:00
Ben Newman
a13d3fd938 Update the pathwatcher npm package to v6.7.1.
Also remove explicit dependency on `runas`, which is depended upon by
`pathwatcher`.
2016-09-27 12:15:04 -04:00
Ben Newman
670c305927 Update the npm npm package to v3.10.8. 2016-09-27 12:07:41 -04:00
Ben Newman
9304f76b52 Fix tests by avoiding printing inotify warning when Console.isHeadless(). 2016-09-27 11:09:46 -04:00
Ben Newman
b976cfa552 Fix reference error for file variable in tools/isobuild/compiler.js. 2016-09-27 11:03:28 -04:00
Ben Newman
0d3466b882 Be more defensive when terminating watchers. 2016-09-27 10:41:40 -04:00
Ben Newman
ea92d83744 Don't cache exceptions in optimistic functions.
I originally added the exception-caching functionality in order to avoid
calling files.stat repeatedly for files known to be missing, but now that
we're using statOrNull, knowledge of missing files (as indicated by
statOrNull returning null) is being properly cached.

The reason it's dangerous to cache exceptions is that (for example) when
an ENOENT exception indicates the file is missing, there will be no more
change events for that file, effectively making the exception permanent,
even if the file comes to exist at a later time.
2016-09-27 10:13:19 -04:00
Ben Newman
ad69d59fa7 Clear dev_bundle/.npm before tests to ensure consistent results. 2016-09-26 20:39:15 -04:00
Ben Newman
7c3fbad5d0 Use version constraint for minifier-css in standard-minifier-css. 2016-09-26 20:27:50 -04:00
Jesse Rosenberger
1c42e0fe22 Await Promise when running npm install (#7805)
I believe this is the fix for the (recent) CI server timeouts.
2016-09-26 20:12:46 -04:00
Ben Newman
c6b2a2f95e Use optimistic functions in meteorNpm.getProdPackageNames. 2016-09-26 20:12:46 -04:00
Ben Newman
8e57ecb731 Use optimistic functions in Builder#copyDirectory. 2016-09-26 20:12:46 -04:00
Ben Newman
c7b8b72e77 Never yield in files.symlink. 2016-09-26 20:04:30 -04:00
Ben Newman
5af59c58bc Always use rimraf.sync in files.rm_recursive. 2016-09-26 20:04:30 -04:00
Ben Newman
50a1f11a10 Use optimistic functions in compileUnibuild. 2016-09-26 20:04:29 -04:00
Ben Newman
978df6e043 Use optimistic functions in meteorNpm.isPortable. 2016-09-26 20:04:29 -04:00
Ben Newman
d954415752 Add profiling to PathWatcher watch function. 2016-09-26 20:04:29 -04:00
Ben Newman
83e7b38779 Break circular dependency between {files,watch,optimistic}.js. 2016-09-26 20:04:28 -04:00
Ben Newman
033a935a89 Use optimistic functions to speed up IO-bound bottlenecks. 2016-09-26 20:04:28 -04:00
Ben Newman
6b320bd64b Avoid starting optimistic watchers for node_modules files.
I've also moved both try-catch blocks out of the optimistic wrapper
function in an effort to help V8 optimize the optimistic functions.
2016-09-26 20:04:28 -04:00
Ben Newman
ae7bd2e5af Ignore meaningless initial fs.watchFile callback.
As a reminder, we use fs.watchFile only as a fallback in environments
where pathwatcher.watch is not available, such as on network or virtual
file systems.
2016-09-26 19:59:40 -04:00
Ben Newman
37647c8657 Implement optimistic versions of heavily used files.* methods. 2016-09-26 18:29:08 -04:00
Ben Newman
26597c4fbb Simplify rehashing in safe-pathwatcher.js. 2016-09-26 15:58:13 -04:00
Jesse Rosenberger
cba649f709 Add Newlines to end of .gitignore files, specifically the new app skel
Even though I think the fight is a bit futile, it is considered best practice to have newlines at the end of all files.  At the request of meteor/meteor#7786, this commit adds newlines to the end of the new app skeleton `.gitignore` file.  These skel files are used when generating new meteor apps so this avoids perpetuation of this problem into futrue generations. ;)

In an effort to beef up this PR, I also took the liberty of fixing the few other Meteor files which were lacking newlines (all `.gitignore` files)

Closes meteor/meteor#7786
2016-09-26 15:32:08 +03:00
Rishabh Singhal
ec644b729a Use -s as short form of --settings flag 2016-09-25 13:56:58 +05:30
Ben Newman
bfa67337dd Cache merging of CSS files in standard-minifier-css.
It's silly that this was happening on every reload, regardless of whether
CSS files had changed.
2016-09-23 19:22:40 -04:00
Jesse Rosenberger
4c2ba4ff4b Await Promise when running npm install (#7805)
I believe this is the fix for the (recent) CI server timeouts.
2016-09-23 11:20:33 -04:00