Commit Graph

5475 Commits

Author SHA1 Message Date
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
Ben Newman
d21b004d3a Merge pull request #6490 from M4v3R/release-1.3
Fix for stripping BOM in import scanner. Fixes #6489
2016-03-19 13:56:03 -04:00
Ben Newman
299db526f1 Revert "Bump $MIN_NODE_VERSION to v0.10.43."
This reverts commit 6985c47ea7.

Fixes #6533.
2016-03-19 13:13:22 -04:00
Ben Newman
392d050f2b Make meteor node and meteor npm work on Windows.
Fixes #6531.
2016-03-19 13:06:24 -04:00
Ben Newman
7d5b3c05a1 Normalize relative paths passed to api.addFiles.
Fixes #6527.
2016-03-18 19:11:28 -04:00
Martijn Walraven
0486b473e8 Make some more self tests pass 2016-03-18 20:40:57 +01:00
Martijn Walraven
8ea1e27656 Log client restart before restarting client to get self tests passing 2016-03-18 20:40:56 +01:00
Ben Newman
19d9f33219 Test that #6514 is fixed. 2016-03-18 15:00:54 -04:00
Ben Newman
7e9cc4756e Ensure unibuild.nodeModulesPath defined for backwards compatibility.
Though I would like to transition to using unibuild.nodeModulesDirectories
everywhere, the cosmos:browserify package assumes more than I would like
about the pre-Meteor-1.3 properties of unibuild objects.

Fixes #6449.
2016-03-18 12:46:15 -04:00
Ben Newman
ff023e9c37 Make npmRequire check node_modules paths from control files, too.
Because symlinking is impossible on Windows, and copying node_modules
files is too slow, we can't just symlink/copy all node_modules files into
.meteor/local/build/programs/server/npm like we do for other platforms, so
we have to search for them where they are.

Part of #6500.
2016-03-17 20:59:48 -04:00
Ben Newman
9021ba8756 Allow .sourcePath of NodeModulesDirectory to be absolute. 2016-03-17 19:55:29 -04:00
Ben Newman
6985c47ea7 Bump $MIN_NODE_VERSION to v0.10.43. 2016-03-17 19:55:29 -04:00
Martijn Walraven
0714048b34 Revert "Improve Runner.start logic"
This reverts commit 1032f271e9.
2016-03-17 22:33:56 +01: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
Martijn Walraven
46c9823acd Don't attempt to build web.cordova when platforms have been removed 2016-03-17 16:48:25 +01:00
Martijn Walraven
ece7612a94 Avoid blocking when clearing logs on Android 2016-03-17 16:48:25 +01:00
Ben Newman
b56f4d58fd Always symlink/copy local node_modules into .meteor/local/build.
Part of #6500.
2016-03-17 02:23:49 -04:00
Ben Newman
c79da1be8a Convert module identifiers to OS paths in Npm.require.
Part of #6500.
2016-03-17 02:22:53 -04:00
Ben Newman
37c218ec09 Update version metadata for modules test app. 2016-03-17 01:23:53 -04:00
Tom Coleman
f3957670ce Added a gitignore to the skeleton 2016-03-17 15:10:34 +11:00
Martijn Walraven
8f4e12f417 Update core Cordova plugin dependencies 2016-03-16 22:32:50 +01:00
Martijn Walraven
f53e0bd3a3 Add cordovaCompatibilityVersions to manifest.json
To ensure we don’t hot code push JavaScript that is incompatible with
the bundled native code, we calculate a hash based on the platform and
plugin versions.
2016-03-16 17:21:53 +01:00
Martijn Walraven
9cf9bc5ff2 Ensure LD_RUNPATH_SEARCH_PATHS is set for iOS release builds
Fixes #6492.
2016-03-16 11:53:39 +01:00
Maciej Trębacz
d1871c6ef7 Fix for stripping BOM in import scanner. Fixes #6489 2016-03-15 12:53:43 +01: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
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