Commit Graph

73 Commits

Author SHA1 Message Date
Ben Newman
74aea0ca3c Update modules test app to Meteor 1.3.4.4. 2016-07-10 15:26:06 -04:00
Ben Newman
126b9172c7 Update modules test app to Meteor 1.3.4.3. 2016-07-08 22:07:05 -04:00
Ben Newman
b907fea4c4 Update modules test app to use the official Meteor 1.3.3 release. 2016-06-10 17:21:30 -04:00
Ben Newman
eea8612834 Update modules test app to 1.3.3-rc.5. 2016-06-09 13:20:20 -04:00
Ben Newman
5ae53de46b Warn but do not crash when .babelrc dependencies unmet. 2016-06-06 19:55:22 -04:00
Ben Newman
bfc59dd3e3 Test that relative module identifiers work for .babelrc plugins. 2016-06-01 01:39:24 -04:00
Ben Newman
eb18d43024 Test that unprefixed .babelrc package names work too. 2016-06-01 01:39:23 -04:00
Ben Newman
398c2717e7 Use .babelrc instead of package.json in modules-test-plugin. 2016-05-20 13:09:41 -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
7c63a8e704 Allow custom Babel presets and plugins via package.json.
When the babel-compiler package is processing files, it will now read
their package.json files looking for a "babel" section with "presets" or
"plugins" fields. If found, these presets or plugins will be appended to
the existing babelOptions.presets or babelOptions.plugins arrays.

Note that no other Babel options are currently supported, and the
"babel-preset-meteor" preset cannot be removed, though additional presets
and/or plugins can be added to it. This is by design: Meteor cannot
support your configuration it uses babel-preset-meteor, at least.

The preset and/or plugin modules listed in package.json must be installed
locally somewhere such that the given file can import them. If they are
top-level identifiers, they will be prefixed with "babel-plugin-" or
"babel-preset-", the same as Babel does it. Otherwise they will be
required as-is, so that you can implement your own Babel plugins locally,
rather than always using plugins installed from npm.

See the included tests for a concrete example.

Fixes #6351.
2016-05-18 16:37:38 -04:00
Ben Newman
b16e8d5019 Implement inputFile.{getPackageJson,resolve,require} for use by plugins.
These changes allow Package.registerCompiler-style compiler plugins to
extract package.json and npm package information at compile time from the
files that the plugin processes.

This information was accessible before, but it certainly wasn't easy to
obtain it. These convenience methods should satisfy the motivation behind
2016-05-18 16:37:37 -04:00
Ben Newman
f6b75305b3 Pay attention to unibuild.arch when determining usesModules.
Fixes #6877.
2016-05-17 14:27:56 -04:00
Ben Newman
f616b6bc81 Let multiple files have the same .sourcePath in the ImportScanner.
Importantly, the files can now differ with respect to their .lazy
properties, which fixes #6806 and related issues. Note that the files must
have different .targetPath values if they have the same .sourcePath.

This is a minor breaking change for code that relied on module.id being
based on the .sourcePath instead of the .targetPath.
2016-04-13 19:49:29 -04:00
Ben Newman
b4fe0d5c85 Allow importing .css files from node_modules directories.
Fixes #6037.
2016-04-07 13:05:49 -04:00
Ben Newman
94d03ee6bb Update the modules test app to Meteor 1.3.1. 2016-04-07 13:05:49 -04:00
Ben Newman
5f6f585276 Test fallback to index.js when package.json has no "main" field.
Related to #6589.
2016-03-24 20:07:14 -04:00
Ben Newman
be871bf2ed Upgrade modules-runtime install package to v0.6.1.
Fixes #6543.
2016-03-20 13:44:10 -04:00
Ben Newman
19d9f33219 Test that #6514 is fixed. 2016-03-18 15:00:54 -04:00
Ben Newman
37c218ec09 Update version metadata for modules test app. 2016-03-17 01:23:53 -04:00
Ben Newman
267bae8803 Remove meteor-env-{dev,prod} from modules test app .meteor/versions. 2016-03-14 21:05:55 -04:00
Ben Newman
c27e96bbd5 Update .meteor/versions for the modules test app. 2016-03-11 19:24:28 -05:00
Ben Newman
f56940b314 Fix CSS computed property tests broken by app-hiding logic. 2016-03-10 16:04:04 -05:00
Ben Newman
ab959fb700 import assert from "assert" 2016-03-10 16:03:52 -05:00
Ben Newman
8c6d38ea3f Use avital:mocha for the modules test app. 2016-03-10 15:47:56 -05:00
Ben Newman
4f5cb1d7a0 Bump package versions for 1.3-beta.16 release.
What happened to beta.13, beta.14, and beta.15? All unfortunately suffered
from problems that made it either impossible or unwise to upgrade to those
versions.
2016-03-09 12:13:18 -05:00
Ben Newman
2cc42128a6 Bump package versions for 1.3-beta.13 release 2016-03-08 22:48:49 -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
636c4b9046 Update tools/tests/apps/modules/.meteor/versions for beta.12. 2016-02-29 23:35:17 -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
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
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
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
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
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
0efd8b7bef Allow JSX syntax in .js files compiled with ecmascript.
Fixes #6151.
2016-02-23 18:32:32 -05:00
Ben Newman
1f3c03d662 Use meteor test-app to run the modules test app. 2016-02-19 17:07:07 -05:00
Martijn Walraven
d922c816be Bump package versions for 1.3-beta.11 release 2016-02-18 14:26:48 +01:00
Ben Newman
868c249c15 Add a test to verify #6240 has been fixed.
Closes #6240.
2016-02-16 20:58:12 -05:00
Ben Newman
4e5f7ab83c Update .meteor/versions for modules test app. 2016-02-16 16:46:56 -05:00
Ben Newman
1fd6a31913 Update .meteor/versions for modules test app. 2016-02-13 16:17:46 -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