Commit Graph

5497 Commits

Author SHA1 Message Date
Ben Newman
d3e7aa9141 Revert enabling partial paths for files.pathRelative.
This reverts a change I made in 75f9214959.
I thought allowing partial paths would make files.pathRelative more
robust, but it had the unintended consequence of causing #6586.
2016-03-24 13:35:31 -04:00
Martijn Walraven
5a1dd20dc6 Replace links to installation Wiki pages with links to the mobile guide 2016-03-24 15:11:23 +01:00
Ben Newman
dc0345b0ff Bundle partial package.json files unconditionally.
Fixes #6582.
2016-03-24 01:02:11 -04:00
Ben Newman
75f9214959 Use OS-specific absolute paths with require.resolve. 2016-03-24 00:48:40 -04:00
Ben Newman
58a7082aa3 Check logging level at beginning of _warnAboutMissingModules. 2016-03-23 20:26:26 -04:00
Ben Newman
07db1eb340 Avoid spurious missing module warnings about server-lib/node_modules. 2016-03-23 20:26:26 -04:00
Ben Newman
11f136228e Revert dynamic meteor-node-stubs import.
Importing meteor-node-stubs in a statically analyzable way is important to
ensure all the aliases for built-in Node modules get set up properly. This
does *not* mean that all meteor-node-stubs/defs/* modules will be imported
unconditionally.

Part of #6562.
2016-03-23 19:57:10 -04:00
Ben Newman
11cbd89e1b Print helpful warnings about unresolved modules. 2016-03-23 18:55:24 -04:00
Ben Newman
df273f3cb4 Report successes as well as failures from ImportScanner#addNodeModules. 2016-03-23 18:55:24 -04:00
Ben Newman
420d001b75 Make sure findAppDir uses correct OS paths.
Fixes #6568.
2016-03-23 13:47:49 -04:00
Ben Newman
15986e6aeb Additional packageName parsing logic for .npm/package/node_modules. 2016-03-22 18:13:25 -04:00
Ben Newman
b8a0340dc9 Fix findAppDir when running from a temp test directory. 2016-03-22 18:13:25 -04:00
Ben Newman
020f9163bb Revert "Always symlink/copy local node_modules into .meteor/local/build."
This reverts commit b56f4d58fd, which may
help with #6561, because we won't be copying node_modules directories into
the development bundle on Windows anymore.
2016-03-22 18:13:24 -04:00
Ben Newman
4c9ecc3c1f Revert watch.isUpToDate optimizations to fix #6556.
This reverts commit 7227f64ea8.
This reverts commit b4972af3a5.

Saving 400ms of rebuild time isn't worth sometimes having to restart the
app from scratch.
2016-03-22 14:17:20 -04:00
Martijn Walraven
0ff7d2b55c Pass-through options for App.accessRule
Closes #6554.
2016-03-22 16:47:12 +01:00
Maciej Trębacz
a133afb375 Get proper packageName in bundler.js. Fixes #6555 2016-03-22 14:41:36 +01:00
Ben Newman
13db0e89ef Nullify source maps if they have no mappings.
Fixes #6506.
2016-03-21 21:51:15 -04:00
Ben Newman
c12c4f455c Add salt to linker cache keys.
This extra hash input makes it easier for us to force relinking when the
linker implementation changes, and will probably make upgrading to Meteor
1.3 smoother for many existing apps.
2016-03-21 21:51:15 -04:00
Ben Newman
ba63cbd959 Make ImportScanner case-insensitive.
Specifically, with this change, the ImportScanner will never include two
files whose paths differ only in case. If one of the files is processed by
compiler plugins, then that file's actual path will "win" in the sense
that its installed module identifier will preserve the original casing.

Fixes #6428.
2016-03-21 21:08:21 -04:00
Ben Newman
65f83bbce6 Allow plugins to import native Node modules.
Fixes #6549.
2016-03-21 19:54:06 -04:00
Ben Newman
5d7b14a82b Infer package name for plugin node_modules directories.
Part of #6549.
2016-03-21 19:54:06 -04:00
Ben Newman
67491a66dd Fix .npm/{package,plugin}/... parsing.
For package dependencies, the node_modules directory immediately follows
the /package/ part of the path, but for plugins the name of the plugin
comes before the node_modules directory.
2016-03-21 19:54:05 -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
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