Commit Graph

5487 Commits

Author SHA1 Message Date
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
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