Commit Graph

6526 Commits

Author SHA1 Message Date
Ben Newman
03dedce089 Update package-lock.json for modules test app. 2017-08-10 13:09:28 -04:00
Ben Newman
f7f76f6540 Move .babelrc "env" test to imports directory of modules test app. 2017-08-10 13:08:32 -04:00
Ben Newman
408bbdb705 Reinstate .babelrc "env" test, with more reliable NODE_ENV. 2017-08-08 19:32:28 -04:00
Ben Newman
a8b78fc413 Remove .babelrc "env" test for now.
This has been failing consistently on Circle CI, so I'm disabling it until
I know how to fix it better: https://circleci.com/gh/meteor/meteor/5068
2017-08-08 19:20:40 -04:00
Ben Newman
0bf08a5f99 Merge branch 'release-1.5.2' into release-1.6 2017-08-08 18:40:46 -04:00
Ben Newman
cfdc69bf71 Support @~ version constraints and use them for core packages. (#8991) 2017-08-08 18:01:30 -04:00
Ben Newman
6de5c25fed Enable transform-do-expressions in production for modules test app.
The modules test app appears to be running with process.env.NODE_ENV equal
to "production" on Circle CI: https://circleci.com/gh/meteor/meteor/5030.

Enabling this transform in production as well as development is fine
because we primarily want to test that plugins from the "env" section of
.babelrc are respected, regardless of the value of process.env.NODE_ENV.
Using different plugins in production might be worth testing, too, but
that's less critical.

Follow-up to #8963.
2017-08-07 16:19:09 -04:00
Ben Newman
12efaef31a Merge branch 'devel' into release-1.5.2 2017-08-07 14:55:50 -04:00
Ben Newman
5f554ebfa0 Merge pull request #8972 from meteor/run-bare-files-before-eager-modules
Run all "bare" package files before requiring eager entry point modules.
2017-08-07 14:54:24 -04:00
Hugh Willson
b1fd243978 Reduce the "modules - test app" self-test start-up wait time.
The increased mongo connection timeout in 522d86dc4e
means that the we can decrease the "modules - test app" self-test
application start-up wait internval significantly (since mongo
will now start properly and the self-test can continue).
2017-08-07 14:53:37 -04:00
Hugh Willson
b061f4b765 Increase mongo connection timeout to reduce self-test mongo errors.
Certain self-test's like "modules - test app" are encountering
mongo connection timeout errors on some runs. Increasing the
connection timeout helps address these errors.
2017-08-07 14:53:37 -04:00
Jordan Brant Baker
77ecbabf60 Support "env" in .babelrc files. (#8963) 2017-08-07 13:23:56 -04:00
Jesse Rosenberger
4cdfd02e44 Auto-install meteor self-test dependencies upon use. (#8981)
* Auto-install `meteor self-test` dependencies upon use.

This uses the same new facilities which were created for auto-installing
Cordova (#8976) to also auto-install PhantomJS and BrowserStack WebDriver npms
into their appropriate home in the dev bundle when they're needed for running
self-tests.

* Use a more descriptive name for the reference to the `require`-d npm module.
2017-08-07 13:18:49 -04:00
Ben Newman
a4d9f8c0f8 Fix comments about bare files and add a note to History.md. 2017-08-04 13:02:42 -04:00
Ben Newman
6f259003eb Run all bare files before requiring eager entry point modules. 2017-08-04 13:02:41 -04:00
Ben Newman
22e86ce208 Add timeout to static-html test. 2017-08-03 21:19:44 -04:00
Ben Newman
318232da9d Try disabling longjohn completely, as it may affect test performance. 2017-08-03 09:24:15 -04:00
Ben Newman
565281e765 Revert "Add mongo-dev-server package (#8853)"
This reverts commit 4d37a05fb3.

After git bisecting between origin/release-1.5 and origin/release-1.5.2, I
identified this commit as the culprit in recent failures of the modules
test app: https://circleci.com/gh/meteor/meteor/4857#tests/containers/3

Note that the modules test app seems to be failing only on Linux, and it
does pass reliably with this commit reverted. It must have something to do
with Mongo failing to start, and thus the "App running at" message never
appears, but I don't have a good theory why that might be.

The command to run just the modules test app is

  meteor self-test --history 1000 'modules - test app'

@zimme @hwillson @abernix any ideas?
2017-08-02 21:23:39 -04:00
Ben Newman
c0b918c0fc Merge branch 'devel' into release-1.5.2 2017-08-02 15:44:31 -04:00
Hugh Willson
a7aa0175f6 Swap 2 self-test's to get CircleCI tests to pass. 2017-08-02 15:33:15 -04:00
Jesse Rosenberger
f0548ad50d Merge branch 'devel' into release-1.5.2 2017-08-02 22:31:14 +03:00
Ben Newman
f52b1726a5 Scan packages/non-core packages as local packages.
Fixes #8961 and #8962.
2017-08-02 13:40:38 -04:00
Jesse Rosenberger
4665f2aab3 Include the Node.js and npm version in the star.json manifest. (#8956)
* Include the Node.js and npm version in the `star.json` manifest.

This makes it possible to know exactly which version of Node.js and npm
were used by the `meteor` command from which the bundle was built from.

* History.md for #8956.
2017-08-02 08:50:01 -07:00
Ben Newman
ad917dcf0a Merge pull request #8954 from meteor/abernix/auth-deploy-cleanup
`meteor deploy` cleanup and partial modernization
2017-08-02 08:46:44 -07:00
Ben Newman
94c0cd00cd Merge pull request #8951 from meteor/abernix/clear-password-on-retry
Clear credentials before retry on initial `meteor deploy` password failure.
2017-08-02 08:42:33 -07:00
Jesse Rosenberger
26f5ce1833 Introduce Cordova ensureDevBundleDependencies.
This Cordova `ensureDevBundleDependencies` function will utilize a another
method called `ensureDependencies` which checks to see if a module can be
resolved by the tool.  If it cannot be resolved, it will install it using the
`installNpmModule` facilities of `meteor-npm.js` in the same way as other npm
packages within packages, except with the destination as the `dev_bundle`.

This commit also adds a couple of previously not explicitly installed npm
modules which Meteor requires directly: `cordova-registry-mapper` and
`cordova-common`.  Both of these were previously relying on npm package hoisting
which previously occurred during the installation of `cordova-lib` in the dev
bundle which happened under the supervision of a `package.json` file (which is
later purged).

When `cordova-lib` is installed directly, without a package.json, the
aforementioned packages are not hoisted to the top level, but instead reside
inside `cordova-lib`.  This is less than ideal since we're relying on the API
of an indirect dependency of `cordova-lib`.
2017-08-02 17:19:42 +03:00
Jesse Rosenberger
d6d5282509 Introduce new moduleDoesResolve method to detect presence of a module. 2017-08-02 17:19:41 +03:00
Jesse Rosenberger
5b051d0eb5 Move remove-platform into separate method as prep for auto dep install. 2017-08-02 17:19:40 +03:00
Jesse Rosenberger
401cb493cb Move add-platform into separate method as prep for auto dep install. 2017-08-02 17:19:40 +03:00
Jesse Rosenberger
134bc0d2c3 Change Cordova imports to nested to avoid being eagerly evaluated.
This will enable the possibility of deferring the installation of the Cordova
modules (e.g. `cordova-lib`, `cordova-common`) until a time deemed appropriate.
2017-08-02 17:19:39 +03:00
Jesse Rosenberger
8c3cd06b58 Remove unused newToOldPliuginIds from Cordova import.
This symbol is entirely unused.
2017-08-02 17:19:37 +03:00
Jesse Rosenberger
29867c1b5a Define runTarget before use. 2017-08-02 14:31:37 +03:00
Jesse Rosenberger
af2e9e8978 Define platform before use. 2017-08-02 14:31:36 +03:00
Jesse Rosenberger
50929d3f94 Define pluginVersionsToInstall before use. 2017-08-02 14:31:35 +03:00
Jesse Rosenberger
d822836711 Merge branch 'devel' into release-1.5.2 2017-08-01 22:48:48 +03:00
Stephen Darnell
dca2ced014 Avoid new uses of 'package' as it is apparently a reserved keyword. (#8973) 2017-08-01 08:41:32 -07:00
Jesse Rosenberger
4925b40e42 Properly declare platform variable.
Without this, `platform` was causing weird behavior in `meteor run <target>`.
2017-08-01 15:02:13 +03:00
Jesse Rosenberger
043e2922f6 Fix misspelling of options variable.
Which occurred in 640842ad4e by means of tyop.
2017-08-01 15:01:15 +03:00
Jesse Rosenberger
3cdcca6f6a Replace underscore _.clone with Object.assign. 2017-07-31 11:50:36 +03:00
Ben Newman
868ba7ceff Merge branch 'devel' into release-1.5.2 2017-07-28 18:50:20 -04:00
Stephen Darnell
96db56b0ba Add 'meteor list --tree' to show a tree of package dependencies. (#8936)
There's also a --weak command line option which when specified
also shows weak dependencies.
2017-07-28 17:36:07 -04:00
Ben Newman
4f90c54d1a Merge branch 'release-1.5.2' into release-1.6 2017-07-28 16:44:24 -04:00
Jesse Rosenberger
300511450b Change import of underscore to only bring in clone. 2017-07-27 19:32:26 +03:00
Jesse Rosenberger
31735e087d Replace underscore _.each with Array.prototype.forEach. 2017-07-27 19:31:03 +03:00
Jesse Rosenberger
ae9eaf69ac Change require statements to import statements. 2017-07-27 19:31:00 +03:00
Jesse Rosenberger
f896950bfc Replace underscore _.extend with Object.assign. 2017-07-27 19:20:28 +03:00
Jesse Rosenberger
639436b9ef Replace underscore _.has with Object.property.hasOwnProperty. 2017-07-27 19:20:15 +03:00
Jesse Rosenberger
d35f9b52ff Reworking functions and exports in tools/meteor-services/deploy.js. 2017-07-27 18:51:28 +03:00
Hugh Willson
aedd111cbd Increase "modules - test app" self-test wait time to fix Circle (#8948)
* Increase "modules - test app" self-test wait time to fix Circle failures.

* Increase "modules - test app" self-test wait time further.
2017-07-27 16:48:53 +03:00
Jesse Rosenberger
613ce27f69 Remove meteor claim which is no longer a supported command.
This was residue from Meteor Free Hosting, which is no longer available,
and `meteor claim` has not worked in quite some time.
2017-07-27 16:16:07 +03:00