Commit Graph

5447 Commits

Author SHA1 Message Date
Ben Newman
8768f989fb Bump compiler.BUILT_BY due to modules-related isopack format changes. 2016-03-14 23:21:23 -04:00
Ben Newman
3f3222938b Make bundleSource file copying more robust.
When we call readAndWatchFileWithHash, if the file does not exist, we
still want to add it to the watchSet with a null hash. Later, however, we
have to be careful we do not assume every file in watchSet.files exists.
2016-03-14 23:21:22 -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
1880d76a8c Fix faulty node_modules portability caching logic. 2016-03-14 20:35:33 -04:00
Ben Newman
9411f0a80e Make sure meteorEnv is defined in Cordova environments.
Fixes #6459.
2016-03-14 19:35:52 -04:00
Ben Newman
7227f64ea8 Don't assume <10sec build times in watch.isUpToDate.
If you have a lot of packages and you change something in a package that
is used by lots of other packages, such as "meteor" or "modules", then the
rebuild can take a lot longer than ten seconds.
2016-03-14 19:35:52 -04:00
Ben Newman
1a1f8327c6 Avoid depainting console messages after server restarts.
Fixes #6226.
2016-03-14 17:07:17 -04:00
Ben Newman
b4972af3a5 Optimize watch.isUpToDate for rebuilds.
Another ~400ms saved.
2016-03-14 13:40:03 -04:00
Ben Newman
4b9ef8241a Cache node_modules portability check.
Another ~200ms saved on each rebuild.
2016-03-14 13:40:03 -04:00
Ben Newman
3417f104eb Stop deleting nonexistent pre-linker files.
This one weird trick saves ~800 calls to files.rm_recursive on every
rebuild, or ~300 milliseconds of rebuild time.
2016-03-14 13:40:02 -04:00
Ben Newman
9e4c383b79 Merge pull request #6479 from meteor/unify-build-mode
`buildMode === "test"` for both `test` and `test-packages`
2016-03-14 13:15:06 -04:00
Ben Newman
711d3674ba Implement LintingFile#getFileOptions.
Fixes #6414.
2016-03-13 23:39:38 -04:00
Ben Newman
a737d43bde Properly save "_resolved" and "_from" fields in npm-shrinkwrap.json.
Versions 2.x and 3.x of npm prefix internal package.json fields with
underscores, though `npm shrinkwrap` removes the underscores, so fields
like "_resolved" become just "resolved" in the shrinkwrap file.

This commit also fixes #5940.
2016-03-13 23:39:38 -04:00
Ben Newman
f595034e1a Allow npmRequire to load dev bundle and built-in modules. 2016-03-13 23:39:38 -04:00
Tom Coleman
96c802edb4 Correct behavior for setting buildMode/NODE_ENV 2016-03-14 11:18:23 +11:00
Tom Coleman
fe0c65c504 buildMode === "test" for both test and test-packages
I think we hadn't done this for back-compat reasons, however it doesn't make sense as it means that test-drivers and test utilities can't be `testOnly` if they want to be usable for `meteor test-packages`. Which kind of makes it pointless to have `testOnly`.

I don't anticipate it will cause problems, but I'm not entirely sure.
2016-03-14 11:05:07 +11:00
Tom Coleman
3a98d04b71 Make test-packages actually run again #6470 2016-03-12 14:06:37 +11:00
Ben Newman
730e713592 Allow values other than "development" and "production" for $NODE_ENV. 2016-03-11 21:30:19 -05:00
David Glasser
6b7565cea1 Merge pull request #6468 from meteor/glasser/no-mother
docs: Remove references to free hosting service
2016-03-11 18:06:38 -08:00
Ben Newman
c27e96bbd5 Update .meteor/versions for the modules test app. 2016-03-11 19:24:28 -05:00
Tom Coleman
50540e5e28 Merge branch 'aldeed-pr' into release-1.3 2016-03-12 10:55:20 +11:00
David Glasser
cea4d07e22 docs: Remove references to free hosting service 2016-03-11 15:32:15 -08:00
Ben Newman
d737d9f8aa Merge pull request #6461 from meteor/6454-fix-production-setting-in-test
Ensure that runAll always sets NODE_ENV+buildMode sensibly.
2016-03-11 17:30:30 -05:00
Ben Newman
23149cd7aa Collect .resolved and .from properties in getInstalledDependenciesTree. 2016-03-11 15:38:24 -05:00
Ben Newman
d37520ceaa Make sure shrinkwrap and getInstalledDependenciesTree agree. 2016-03-11 13:46:22 -05:00
Eric Dobbertin
134707be68 Add Assets.absoluteFilePath 2016-03-11 15:09:55 +11:00
Eric Dobbertin
1032f271e9 Improve Runner.start logic
No visible changes
2016-03-11 15:09:41 +11:00
Tom Coleman
2c617225cd Ensure that runAll always sets NODE_ENV+buildMode sensibly.
Note there are a few use cases I can think of we want to worry about:

`meteor run` -- both should be "development"
`meteor run --production` - both should be "production"
`NODE_ENV=production meteor run` - as above
`NODE_ENV=development meteor run --production` - `--production` should win
`meteor test` - NODE_ENV should be "development", buildMode should be "test"
`NODE_ENV=production meteor test" - NODE_ENV should be "production", buildMode should be "test"
2016-03-11 12:29:36 +11:00
Ben Newman
9a68f09742 Reimplement npm shrinkwrap to avoid warnings about extraneous packages.
This implementation also removes the need for the minimizeShrinkwrap
function, because we only record the information we need.
2016-03-10 19:24:18 -05:00
Ben Newman
43ed177c0d Make npm ls --json more tolerant of warnings. 2016-03-10 19:24:18 -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
1189c217be Make sure ImportScanner#_resolveNodeModule uses the correct sourceRoot.
Fixes #6453.
2016-03-10 15:27:28 -05:00
Ben Newman
ad3f56a0bf Don't bother generating identity source maps in the linker.
For really big files, constructing a source map can be incredibly slow.
2016-03-10 13:57:00 -05:00
Tom Coleman
a5fb01310c Removed references to --deploy argument of test modes 2016-03-10 15:49:23 +11:00
Tom Coleman
75749bb544 Fix problem with previous commit 2016-03-10 13:44:58 +11:00
Tom Coleman
5e4107b899 Actually test properly that things exist.
For the `meteor test` command when copying build directories into the test app
2016-03-10 12:35:13 +11:00
Tom Coleman
64e2758bb1 Merge pull request #6442 from meteor/fix-meteor-istest-for-packages-6331
Fix meteor istest for packages 6331
2016-03-10 09:45:17 +11:00
Tom Coleman
b6c2ecf5fc A couple of small typos 2016-03-10 09:37:11 +11: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
f74975d0df Write node_modules metadata as single strings.
Packages published with node_modules unibuild properties that are
object-valued instead of string-valued cannot be loaded by the previous
version of meteor-tool, so the tool can't upgrade itself if any packages
have object-valued node_modules properties. Fortunately, no packages
currently exist that need both Npm.depends and local node_modules
directories, so we can just keep writing strings for now. At some point in
the future (maybe 1.3.1), we can assume people have upgraded to a version
of the tool that supports object-valued node_modules properties, and then
we can start writing those properties to disk without worrying about
old versions of the tool.
2016-03-09 11:52:09 -05:00
Ben Newman
992c27e716 Recreate symlinks in Builder#copyDirectory, even if !canSymlink.
According to the comment for the copyDirectory method, this was the
intended behavior before I changed it.
2016-03-09 11:52:08 -05:00
Ben Newman
b82f82e7da Revert "Follow symbolic links in builder.copyDirectory."
This reverts commit e6b33a2627.
2016-03-09 11:52:08 -05:00
Tom Coleman
27faeefb31 Pass test metadata in via an environment variable.
[Only works on the server right now, fairly uselessly]

For #6331
2016-03-09 15:30:45 +11:00
Ben Newman
2cc42128a6 Bump package versions for 1.3-beta.13 release 2016-03-08 22:48:49 -05:00
Ben Newman
e6b33a2627 Follow symbolic links in builder.copyDirectory.
Fixes a blocking bug with the `meteor publish-release` command.
2016-03-08 22:48:48 -05:00
Tom Coleman
33e619e3ab Added *.[app-]spec[s].* as valid test file names 2016-03-09 14:34:30 +11:00
Ben Newman
40857bdaff Propagate meteorEnv subset of process.env from server to client.
Fixes #6399.
2016-03-08 19:37:57 -05:00
Ben Newman
93e5e7391f Concatenate files that have the same .sourcePath.
Fixes #6422.
2016-03-08 16:30:54 -05:00