Commit Graph

5590 Commits

Author SHA1 Message Date
Ben Newman
fdce895bba Make sure env.Path === env.PATH on Windows. 2016-05-16 18:21:09 -04:00
Ben Newman
d060ae9a2d Decompose a helper for cloning process.env for npm-related commands. 2016-05-16 18:21:09 -04:00
Ben Newman
2d2f21f7d5 Use env vars instead of $PATH to select python.exe and MSVS version. 2016-05-16 18:21:08 -04:00
Ben Newman
81756d9833 Make sure python.exe is in $PATH when running npm on Windows. 2016-05-16 18:21:08 -04:00
Ben Newman
de5411e8fd Allow importing from app node_modules when running test-packages.
Fixes #6827.
2016-05-16 18:21:08 -04:00
Ben Newman
ff621a88fe Rebuild non-portable Meteor packages when downloaded.
Together with c18c1f5278, this commit is a
big step towards liberating Meteor from Node 0.10.

Part of #5124.
2016-05-16 18:21:07 -04:00
David Glasser
26584165e5 discover deploy server and change default
Update the default deploy server from deploy.meteor.com (which no longer
exists) to galaxy.meteor.com.  However, if your app's DNS is already
pointed at Galaxy, automatically discover the deploy server's URL.

See meteor/amsterdam#305
2016-05-16 13:03:27 -07:00
David Glasser
6619d9bead remove unnecessary log 2016-05-13 18:06:26 -07: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
David Glasser
731716efe1 delete dead code
This code makes it look like there are more codepaths that care about
$DEPLOY_HOSTNAME than there actually are.
2016-05-13 14:33:30 -07:00
Tom Coleman
01a745a99d Ensure that test files for both kinds of tests.
Fixes #6901 by ensuring that we short circuit laziness detection for test files in both modes.
2016-05-10 16:58:59 -07:00
Ben Newman
b3bcdbafda Disable progress spinner when running headless CI tests. 2016-05-09 18:00:32 -04:00
Tom Coleman
2961030112 Merge pull request #6981 from meteor/fix-selftest-errors
Use longjohn to repair stacktraces on self-test
2016-05-06 16:50:19 -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
15db86ec3e Minor cleanup 2016-05-05 16:32:10 -07: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
88ed8e289a Use longjohn to repair stacktraces on self-test 2016-05-05 15:05:52 -07:00
Tom Coleman
4056111acb Use longjohn to repair stacktraces on self-test 2016-05-05 14:42:05 -07:00
Wexpo Lyu
52930179aa Fixing #5384 (#6962) 2016-05-04 23:01:43 -07:00
Tom Coleman
249e4498b7 Increase timeout on test self-test (#6964) 2016-05-03 16:33:30 -07:00
Tom Coleman
b2bb995ddf Merge pull request #6964 from abernix/issue-6961-fix-test-bindaddr
Allow --port in "test" to support a bindaddr, same as non-test
2016-05-03 15:46:27 -07:00
Tom Coleman
a2da8d5c54 Merge pull request #5777 from carlosbaraza/issue-5776
Fixes #5776: Test app debugger listens TOOL_NODE_FLAGS debug port + 1
2016-05-03 15:31:51 -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
Wexpo Lyu
bfdca2aaf9 METEOR_LOCAL_DIR. Fixing #6532
Update History.md
2016-05-02 10:52:20 -07:00
Martijn Walraven
49c9d07be8 Always build web.cordova arch when --mobile-server is passed
Closes #6862.
2016-04-28 15:06:56 -07:00
Tom Coleman
d6288aceed Fix name in skeleton
At some point I accidentally reset it to "simple"
2016-04-25 12:35:16 -07:00
Ben Newman
12d2d4229d When testing, load test files in imports directories eagerly.
Fixes #6831.
2016-04-18 10:34:10 -04:00
Ben Newman
6e792a7cf2 Normalize .sourcePath and .targetPath before comparing them.
Fixes https://github.com/meteor/meteor/issues/6806#issuecomment-210365603,
which was also affecting the todos example app.
2016-04-15 16:58:05 -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
3a5e8da935 Make sure JS resources have a .targetPath property.
This path can be specified by calling addJavaScript({ path: ... }), and
defaults to being identical to the .sourcePath if no options.path is
provided.  The .targetPath may be different from the .sourcePath when a
compiler plugin calls addJavaScript multiple times for the same file,
using a different options.path each time, e.g. when a JSON configuration
file turns into multiple JS resources.
2016-04-13 19:26:33 -04:00
Ben Newman
8e9d0ab7ba Let ImportScanner resolve input files not on disk.
If we pass a file to ImportScanner#addInputFiles, and a module identifier
resolves to that file, it shouldn't matter if the file actually exists on
disk. A common example is a new file generated by a compiler plugin.
2016-04-13 16:34:58 -04:00
Ben Newman
1d31896564 Normalize node_modules directory names when cross-building.
Really fixes #6765.
2016-04-12 12:19:06 -04:00
Ben Newman
984e27e372 Better error message for _combineFiles lazy/bare mismatch. 2016-04-11 18:26:37 -04:00
Ben Newman
d287681868 Don't interfere with explicit sourceReadOptions.names.
Fixes #6787.
2016-04-11 17:02:10 -04:00
Ben Newman
865735a436 Tolerate malformed .meteor-portable files. 2016-04-11 17:02:10 -04:00
Ben Newman
cf98e285ac Fix imports of tools/tool-env/isopackets.js.
Fixes #6778.
2016-04-11 12:33:16 -04:00
Ben Newman
5c7e6065ac Keep quiet about legacy registerBuildPlugin errors in lazy files.
Fixes #6767.

This is essentially the same treatment we give to compilation errors in
lazy files processed by Package.registerCompiler-style plugins, which
fixed a similar issue: #5998. Here are the relevant commits:

be986fd709
ce4fda3783
2016-04-10 12:02:10 -04:00
Ben Newman
c0b64865ab Don't try to use CSS source maps for CommonJS-ified CSS modules.
Part of #6037.
2016-04-08 19:37:47 -04:00
Ben Newman
911b4aa4cb Simplify CSS-to-CommonJS conversion by not handling @import rules.
We can revisit this conversion if it turns out anyone really wants to use
@import rules in CSS files instead of using something like LESS.

Part of #6037.
2016-04-08 19:02:33 -04:00
Ben Newman
2b62539d9f Allow Galaxy users to disable npm rebuild if they really want to.
Part of #6537..
2016-04-08 15:20:09 -04:00
Ben Newman
a073280e3f Ignore nested node_modules directories if parent contains no sources.
This in important optimization for #6037, and it also fixes #6627, since
we are now registering watchSet dependencies on the contents of
node_modules directories.
2016-04-08 11:11:01 -04:00
Ben Newman
43659ff561 Search local node_modules directories for non-.js(on) source files.
Part of #6037.
2016-04-08 11:11:01 -04:00
Ben Newman
eb18d59faa Make all files in imports and node_modules directories lazy.
The most notable change here is that we now treat files in app imports
directories as lazy even before we know whether the app is using modules.
This could be a breaking change for some 1.3 apps that do not use modules
but have imports directories containing eager .js files. That (very minor)
level of backwards incompatibility seems acceptable in the context of
upgrading to Meteor ~1.3, however.
2016-04-08 11:10:52 -04:00
Ben Newman
6849b93fd2 Add trailing newline to bundle/programs/server/package.json. 2016-04-07 14:13:33 -04:00
Ben Newman
5a78420b10 Upgrade meteor-babel versions to 0.9.2. 2016-04-07 13:51:24 -04:00
Ben Newman
7c3014302c Add install script to programs/server/package.json when bundling.
This package.json file is used at times when npm-rebuild.js is not
available, such as when we're building the dev bundle.
2016-04-07 13:05:53 -04:00
Ben Newman
a7c3aa6a50 Tolerate (and prevent) missing file.deps in the ImportScanner.
Fixes #6724.
2016-04-07 13:05:52 -04:00