Commit Graph

5374 Commits

Author SHA1 Message Date
Ben Newman
636c4b9046 Update tools/tests/apps/modules/.meteor/versions for beta.12. 2016-02-29 23:35:17 -05:00
Ben Newman
08c66c2b34 Work around Babel bug with const in async functions. 2016-02-29 23:07:45 -05:00
Ben Newman
62ccaaad89 Don't treat file.servePath as absolute. 2016-02-29 21:37:55 -05:00
Ben Newman
5c47891489 Allow custom stubs to override meteor-node-stubs.
Part of #6056.
2016-02-29 19:45:52 -05:00
Ben Newman
757660a85d Prevent erroneous calls to String.prototype.{to,toEnd}.
Fixes #5107.
2016-02-29 17:32:22 -05:00
Ben Newman
db437e23c3 Revert "Stop protecting against String.prototype modifications in shelljs"
This reverts commit 7a2e6de78e, reinstating
@dgreensp's earlier commit 98886f98ef.

Related: #5107
2016-02-29 16:57:57 -05:00
Ben Newman
9ff3cdc7eb Ensure every file the ImportScanner scans has a valid sourcePath.
Packages published before the modules package existed may acquire a
dependency on the modules package upon upgrading to Meteor 1.3, because
they depended on the ecmascript package, which now implies the modules
package. If the previously published isopacket does not provide a
sourcePath or path property, then we should use the servePath property
instead. With that fix in place, I am now strictly enforcing that all
files scanned by the ImportScanner actually exist on disk.

Should fix #5871.
2016-02-29 16:40:06 -05:00
Ben Newman
99cb96fcf7 Don't scan require calls in Browserify/Webpack bundles.
This analysis isn't perfect, but it addresses the biggest source of
dependency false positives, namely Browserify and Webpack bundles that
provide their own implementation of the require function.
2016-02-29 16:12:21 -05:00
Ben Newman
3271bb803d Make sure file.data instanceof Buffer. 2016-02-29 16:12:21 -05:00
Ben Newman
7acca944a9 Remove manual stream stub, now that we have meteor-node-stubs. 2016-02-29 16:12:21 -05:00
Ben Newman
4236cdafbf Test with meteor test --full-app instead of meteor test-app. 2016-02-29 15:42:59 -05:00
Tom Coleman
95db365484 Added a message for successful auth transfers 2016-02-29 20:06:20 +11:00
Tom Coleman
59e3a5c1ff Merge pull request #6338 from meteor/release-1.3-change-test-paths-6321
Changes to testing file matching patterns #6321
2016-02-29 11:18:42 +11:00
Tom Coleman
ab5ab15768 Rename test-app -> test and test --full-app
Our old "unit" test mode didn't really enforce "unit-ness" and was perfectly capable of running integration test. So it was confusing to call the two modes unit and integration test modes.

Instead, we call them "test mode" and "full app test mode", run with `meteor test` and `meteor test --full-app`.

The rules for test files were also simplified -- simply *.test[s].* for test mode, and *.app-test[s].* for full app tests. `tests/` directories are simply ignored again.
2016-02-29 11:16:54 +11:00
Tom Coleman
0cee429c7f Add a new file regexp for unit and integration tests
You can now differentiate test files based on their filename.

Also added an exclude for the acceptance-tests folder in all situations.

#6321
2016-02-29 11:11:44 +11:00
Tom Coleman
a22b7e4eff Fix bug where app would restart when you changed a test 2016-02-29 11:11:44 +11:00
Tom Coleman
a168ce9149 Merge pull request #6348 from meteor/release-1.3-tool-changes-for-galaxy
Changes to the tool due to #5787
2016-02-29 11:06:05 +11:00
Tom Coleman
18f112bfc7 Typo, slightly clearer 2016-02-29 11:04:31 +11:00
Ben Newman
63e4e6c99c Make sure require("process") works on the server. 2016-02-28 14:03:01 -05:00
Ben Newman
1d5e424bb7 Remove assertion that assumed too much about the util stub package. 2016-02-28 14:02:21 -05:00
Ben Newman
2fa65685d6 Install stubs for Node built-in modules automatically.
The implementation of these stubs is controlled by an optional npm package
called meteor-node-stubs, so we can keep iterating on them after releasing
Meteor 1.3, if we need to.

Fixes #6056.
2016-02-27 18:41:23 -05:00
Ben Newman
c51b8cf7ff Update the app skeleton to include a package.json file. 2016-02-27 18:34:11 -05:00
Ben Newman
a00e1f51b5 Avoid generating source maps for packages with no files.
Chrome has difficulty parsing these (arguably useless) source maps,
anyway. I don't want to speak too soon, but this also seems to help with
2016-02-27 17:20:56 -05:00
David Glasser
83e9e68e2b Drop tests that use the test-package-stats server
These tests have long been flaky, and we are changing some of the
infrastructure that the test server relies on.
2016-02-26 14:28:29 -08:00
Ben Newman
ae8705a74e Include more file metadata in linker cache keys.
Fixes #6214.
2016-02-26 15:52:47 -05:00
Ben Newman
22d423e5a5 Infer optional import extensions from source processors.
This way, enabling an optional import extension like .jsx or .ts is as
easy as using the relevant compiler plugin.

Fixes #6151.
2016-02-26 14:36:32 -05:00
Ben Newman
ed454dfd7b Test that #6312 was fixed by the recent Babel upgrade.
Closes #6312.
2016-02-26 13:26:06 -05:00
Ben Newman
c1b57d672e Update .meteor/versions for modules test app. 2016-02-26 12:51:13 -05:00
Ben Newman
72195684ad Strip #! from the beginning of files read by the ImportScanner.
Fixes #6204.
2016-02-26 12:48:27 -05:00
Ben Newman
3c20ea603f Use meteorInstall's root require function in meteor shell.
Helps with #6271.
2016-02-26 12:36:58 -05:00
Ben Newman
292824da3f Update babel-compiler dependencies.
The meteor-babel update includes a change to ignore .babelrc files, which
fixes #6016.

The check update just seemed like a good idea.
2016-02-26 12:36:57 -05:00
Ben Newman
c9f42c7bc2 Always enable profiling when running the modules test app. 2016-02-26 12:36:57 -05:00
Ben Newman
c33f2f25c4 Use --driver-package when testing the modules app. 2016-02-26 11:00:16 -05:00
Tom Coleman
bd92c15ee2 Add authorized --transfer command for Galaxy 2016-02-26 16:26:29 +11:00
Tom Coleman
121d875a20 Remove code that adds .meteor.com to hostnames in the tool
Instead let the server (both Galaxy and Mother do this) decide on how to postfix the hostname.
2016-02-26 15:53:37 +11:00
Tom Coleman
2def9fbd05 Send tool capabilities on every request. 2016-02-26 15:50:21 +11:00
Tom Coleman
91c64a4fd2 Log messages returned from deploy commands 2016-02-26 15:46:07 +11:00
Tom Coleman
5b064f15df Allow arbitrary options on meteor deploy
And pass them through to both the /info and /deploy calls.
2016-02-26 15:24:25 +11:00
Tom Coleman
017e32e41a Change the message that we send when try to deploy when not logged in 2016-02-26 15:22:46 +11:00
Zoltan Olah
3e59f7110e Merge branch 'devel' into release-1.3 2016-02-25 14:34:09 -08:00
Martijn Walraven
6429f47294 Use OS independent functions to resolve local plugin path
Fixes #6345.
2016-02-25 21:35:10 +01:00
Martijn Walraven
e129879702 Always try to use auto-detected IP as Cordova ROOT_URL
Fixes part of #5973.
2016-02-25 13:05:18 +01:00
Martijn Walraven
f578edf13b Add --server-only option to meteor build to skip building mobile apps
Closes #6270.
2016-02-25 12:39:51 +01:00
Martijn Walraven
b425d2271f Always warn if building inside the app directory, and fix warning 2016-02-25 12:32:09 +01:00
Martijn Walraven
17efcd8501 Fix API docs for App.accessRule 2016-02-24 20:06:05 +01:00
Martijn Walraven
edd896b379 Don't ignore top-level special directories if they occur elsewhere 2016-02-24 19:53:58 +01:00
Avital Oliver
70983aa865 Correctly set Meteor.isTest on the server.
Same for `Meteor.isIntegrationTest` and `Meteor.isUnitTest`.
2016-02-24 10:11:15 -08:00
Avital Oliver
0bbae6a58d meteor test-app now works without ever running meteor run 2016-02-24 10:06:44 -08:00
Martijn Walraven
743b740359 Add a trailing slash in utils.formatUrl for consistency with Meteor.absoluteUrl 2016-02-24 12:55:26 +01:00
Martijn Walraven
601f805a1f Add type option to App.accessRule to support allow-navigation
Closes #6280.
2016-02-24 12:55:26 +01:00