Ben Newman
1df6668cc9
Test that importing the winston npm package works now.
...
This is a test that should have accompanied my previous commit
81a07ed84f .
2017-05-29 19:37:33 -04:00
Ben Newman
672c4f338a
Add the modules test app to the self-test suite.
...
I've been running these tests manually ever since Meteor 1.3, but they
really should run every time.
2017-02-09 12:09:48 -05:00
Ben Newman
8f07a87bd5
Give package test modules access to Npm.depends dependencies.
...
Similar in spirit to bbac272530 .
Fixes #7999 .
2016-11-08 15:36:36 -05:00
Ben Newman
5dc2eaa0f7
Add babel-runtime to test app package.json files.
2016-11-02 13:32:01 -04:00
Ben Newman
bdee913b1b
Support npm packages with native .node "main" modules.
...
Note that the value of the "main" property must include the ".node"
extension explicitly, because I have yet to encounter an npm package with
a native "main" module that omits the ".node" extension, and I am loathe
to start calling files.stat(id + ".node") uselessly for every single
missing module.
Fixes #7947 .
2016-10-23 17:43:06 -04:00
Ben Newman
1ef013f6ad
Use regenerator-runtime in modules test app.
...
Apparently regenerator/runtime is now deprecated. I say "apparently," but
of course is my own doing.
2016-05-19 17:04:07 -04:00
Ben Newman
8c6d38ea3f
Use avital:mocha for the modules test app.
2016-03-10 15:47:56 -05:00
Ben Newman
a92aaee133
Test that various packages can now be imported using pure Node.
...
Closes #6165 .
Closes #6173 .
Closes #6285 .
Closes #6313 .
Closes #6373 .
2016-03-07 19:52:05 -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
4236cdafbf
Test with meteor test --full-app instead of meteor test-app.
2016-02-29 15:42:59 -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
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
Ben Newman
67e5157db4
Test that stub modules can be installed under different names.
...
This relies on the symbolic link functionality provided by meteorInstall.
2016-02-23 19:53:09 -05:00
Ben Newman
1f3c03d662
Use meteor test-app to run the modules test app.
2016-02-19 17:07:07 -05:00
Ben Newman
017ded7ab6
Install client-side stub for buffer module in modules test app.
2016-02-13 16:17:02 -05:00
Ben Newman
c368d98593
Support __filename and __dirname.
...
Part of #6055 .
Fixes #6022 .
2016-02-13 16:09:40 -05:00
Ben Newman
3ecc3e43a9
Allow main/browser field of package.json to be top-level identifier.
2016-02-12 16:58:12 -05:00
Ben Newman
e4544b5428
Prevent local node_modules from overriding builtins on the server.
2016-02-12 12:21:19 -05:00
Ben Newman
0907f52f53
Expose the "version" field of package.json files at runtime.
2016-01-18 19:27:04 -05:00
Ben Newman
c631d3ac35
Bundle global npm dependencies into the modules bundle.
...
This allows packages to import npm packages they have not installed, with
the expectation that the app developer will provide those dependencies by
installing them into the top-level node_modules directory in the app.
For example, an app can now `npm install react` and that npm package can
be used by any package as well as by the app.
2016-01-18 19:05:43 -05:00
Ben Newman
807e36a852
Make sure to run modules tests with meteor from checkout.
2016-01-13 16:29:17 -05:00
Ben Newman
988b8b3d0c
Commit an app that tests many aspects of the module system.
...
Partially satisfies #5782 .
2016-01-11 15:31:32 -05:00