Commit Graph

16289 Commits

Author SHA1 Message Date
Ben Newman
541db059cc Bump package versions for 1.3-rc.0 release. release/METEOR@1.3-rc.0 2016-03-14 23:21:44 -04:00
Ben Newman
8768f989fb Bump compiler.BUILT_BY due to modules-related isopack format changes. 2016-03-14 23:21:23 -04:00
Ben Newman
e215f164e2 Update meteor-promise version to 0.6.3. 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
3208952239 Update all npm-shrinkwrap.json files. 2016-03-14 21:05:55 -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
Tom Coleman
889ea6a8e1 Merge pull request #6472 from aldeed/fix-test-driver-error-logic
Fix logic for showing --driver-package error
2016-03-15 09:38:41 +11:00
Eric Dobbertin
ff1c75bacf Don't throw test driver error here 2016-03-14 17:09:20 -05: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
322e86c86b Update npm-shrinkwrap.json files for core packages. 2016-03-13 23:39:39 -04:00
Ben Newman
fe82fdb127 Fix meteor-promise tests with api.use("modules"). 2016-03-13 23:39:39 -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
Eric Dobbertin
2a4700dd02 Fix logic for showing --driver-package error 2016-03-12 22:47:05 -06: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
d87dddfc9b Consolidate meteor-env-{dev,prod} into meteorEnv.js in meteor package.
We no longer rely on the debugOnly/prodOnly behavior of these modules to
determine the value of meteorEnv.NODE_ENV, so there's really no need to
have such a complicated system of packages anymore.
2016-03-11 20:50:33 -05:00
Ben Newman
e7fa85de09 When running meteor npm, ensure $DEV_BUNDLE/bin is first in $PATH.
Otherwise `meteor npm install` may use a different version of node/v8 to
compile binary packages.
2016-03-11 20:21:52 -05:00
Ben Newman
b3b8bcd272 Go back to using our fork of node. 2016-03-11 19:42:36 -05:00
Ben Newman
c27e96bbd5 Update .meteor/versions for the modules test app. 2016-03-11 19:24:28 -05:00
Ben Newman
b7b854511f Upgrade install package to remove APIs unused by modules-runtime.
The npm install package has coevolved with the Meteor 1.3 module system,
and now it's time to prune off vestigial features that were never actually
useful to Meteor.
2016-03-11 19:24:27 -05:00
Ben Newman
4921bc3f0b Modularize the es5-shim package. 2016-03-11 19:24:27 -05:00
Ben Newman
3d54564fa9 Let packages that need es5-shim register a weak dependency on it.
Registering a weak dependency on es5-shim in the meteor package made it
difficult to implement es5-shim using modules.
2016-03-11 19:24:27 -05:00
Ben Newman
e613e9ccb3 Modularize the promise package. 2016-03-11 19:24:27 -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
Ben Newman
f0239a64b2 Use the new Node 0.10.43 build in the dev bundle. 2016-03-11 12:56:57 -05:00
Ben Newman
94896b78f4 Upgrade dev bundle Node to 0.10.43. 2016-03-11 12:45:12 -05:00
Ben Newman
a5b7bde167 Mention meteor npm and meteor node in the modules README.md. 2016-03-11 12:18:44 -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
eb990daea0 Ignore the version of npm that comes with Node 0.10.41. 2016-03-10 19:56:56 -05:00
Ben Newman
be280958e8 Upgrade npm to 2.14.22 and bump $BUNDLE_VERSION to 0.5.28. 2016-03-10 19:34:34 -05:00
Ben Newman
f5eccd7c40 Update npm-shrinkwrap.json files. 2016-03-10 19:24:19 -05: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