Commit Graph

997 Commits

Author SHA1 Message Date
Ben Newman
dce2b20ddb Merge pull request #7033 from meteor/release-1.3.3
Release 1.3.3
2016-06-10 18:18:28 -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
chemicstry
512799ed9e Initial IPv6 support 2016-06-06 02:17:36 +03: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
b1df82ac0a Merge branch 'devel' into release-1.3.3 2016-05-31 14:09:46 -04:00
Gadi Cohen
dfee72792f Proper import chain for Meteor packages (closes #6907)
Don't include the ", false" for install() on traditional packages

add tests
2016-05-28 20:30:34 +02:00
Ben Newman
bae5983d59 Merge branch 'devel' into release-1.3.3 2016-05-27 00:02:48 -04:00
Tom Coleman
3b0ae7a903 Rebalanced tests 2016-05-25 17:03:05 -07:00
Tom Coleman
47308da931 Added a test that reproduces logging out of order 2016-05-25 10:54:43 -07:00
Tom Coleman
eadfd1f5b2 Upped timeout for bad PID test 2016-05-24 16:48:43 -07:00
Tom Coleman
c4258d68f1 Marked issues with custom-warehouse tag 2016-05-24 15:03:33 -07:00
Tom Coleman
a5970be04b Mark wipe-all-packages test as slow 2016-05-24 14:41:23 -07:00
Tom Coleman
16e0cac3e3 Upping the wait in "run and SIGKILL parent process" 2016-05-23 14:18:39 -07: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
David Glasser
2b6b02439d destroy universe
"universe" was an old attempt to allow you to run various MDG
servers (Meteor Developer Accounts, the package server, an old version
of the Galaxy deploy server, etc) on localhost and configure the tool to
talk to it not via a bunch of environment variables but via a file
called "universe" at the root of your checkout. Nobody uses this (and
most of the URLs have environment variables for them anyway).  Simplify
the code by removing this entirely.

Also remove some more dead code, and a test that claims it only runs if
you have universe set up.
2016-05-13 15:09:03 -07:00
Tom Coleman
1344228a51 Mark the bottom of the stack everytime we start a new self test.
Because longjohn was collecting frames across runs of self test in the loop, we were actually seeing frame lists that applied to more than one test. 

This wasn't actually causing problems except in our frame parsing tests, but you can imagine that it would be quite unhelpful.
2016-05-06 15:11:32 -07:00
Tom Coleman
b5acef6def Stack parsing test was failing due to longjohn 2016-05-06 10:00:57 -07:00
Ben Newman
18df026cad Fix less caching self-test (#6982). 2016-05-06 12:07:25 -04:00
Tom Coleman
c9f0f5c0e0 Switch the order of messages in autoupdate test
This seems really brittle but solves the test issue for now
2016-05-05 16:21:47 -07:00
Tom Coleman
bd8ecfeec9 Removed package test part that is failing
This is a legitimate bug https://github.com/meteor/meteor/issues/6541 but I'm not sure we are going to fix it. So removing for now.
2016-05-05 15:41:35 -07:00
Tom Coleman
249e4498b7 Increase timeout on test self-test (#6964) 2016-05-03 16:33:30 -07:00
Jesse Rosenberger
454a76191c Allow --port in "test" to allow a bindaddr, same as non-test
The `test` mode wasn't passing the proper proxyHost and proxyPort values to runAll.  This changes the behaviour to work the same as the regular `run` mode and also adds tests for both modes to test the bindaddr (localAddress) is taking effect properly.

Fixes meteor/meteor#6961
2016-05-03 17:35:57 +03: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
Jesse Rosenberger
97cb2c14a8 "meteor npm/node" should return exit code from command
Fixes #6673

The Meteor "dev bundle bin commands" which proxy through to the
meteor version of npm/node was not returning the exit code from the
command which it executed.  This creates problems for things like
`meteor npm run script-name` when the exit code is important.  This
comes into play when you run npm scripts which run tests, lint code, etc.

This fix causes the meteor-tool to process.exit with the spawned process
exit code.

Windows Disclaimer: I used the same flush-buffers-on-exit-in-windows
that the tool/cli/main.js uses because I would assume the same problem
exists, however, I don't have the Windows environment to test or confirm
that this code works at all.

Also, couldn't find any tests that directly tested this dev bundle
bin-command passing scenario (though hard to search through them all),
so I created a barebones test app and tests.
2016-04-01 17:09:03 +03: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
5d4bc59a20 Fix source maps-related self-tests.
We no longer go to the trouble of generating source maps for files not
processed by compiler plugins, since that was slow and not very useful
(see ad3f56a0bf).

However, that means the test app and package that we use to test source
maps and stack trace rewriting need to use the ecmascript package in order
to behave as they did before that commit.
2016-03-20 13:44:09 -04:00
Ben Newman
e901134004 Fix findAssignedGlobals self-test.
It turns out the test itself was wrong, and the new findAssignedGlobals
implementation does a better job than the old.
2016-03-20 11:41:45 -04:00
Martijn Walraven
38236ddaa5 Make another self-test pass 2016-03-20 12:30:31 +01:00
Martijn Walraven
0486b473e8 Make some more self tests pass 2016-03-18 20:40:57 +01:00
Ben Newman
19d9f33219 Test that #6514 is fixed. 2016-03-18 15:00:54 -04:00
Martijn Walraven
d54d681697 Make some more self tests pass 2016-03-17 21:20:12 +01:00
Martijn Walraven
45ad2ed21e Make Cordova self tests pass 2016-03-17 16:48:25 +01: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