Commit Graph

5908 Commits

Author SHA1 Message Date
Ben Newman
4abaa5eb20 Exclude non-core packages from localCatalog.getAllNonTestPackageNames.
This should prevent `meteor admin publish-release` from unnecessarily
checking the consistency of non-core packages.
2016-09-13 13:09:05 -04:00
Ben Newman
1d6fb36547 Include packages/non-core/*/packages/ in self-test search. 2016-09-09 17:30:54 -04:00
Ben Newman
17f79c66ce Search packages/non-core/*/packages for local packages.
Currently this finds only Blaze-related packages, but it does so without
hard-coding "blaze" in tools code.
2016-09-09 13:28:16 -04:00
Ben Newman
3fce5e6f93 Accept glob patterns for local package search directories. 2016-09-09 13:28:16 -04:00
Ben Newman
c6a54546c2 Avoid hard-coding packages/non-core/blaze in tools code.
Now that the blaze submodule is mounted inside the packages/non-core/
directory, it appears that we no longer have to mention it explicitly in
the localPackageSearchDirs array.
2016-09-09 12:12:43 -04:00
Ben Newman
9001b75f44 Move packages-for-isopackets/blaze to packages/non-core/blaze. 2016-09-09 11:17:43 -04:00
Ben Newman
b64f1147e7 Merge branch 'devel' into release-1.4.2 2016-09-08 13:31:17 -04:00
Tom Coleman
74cf7b3b6e Not sure why these weird version numbers were in there
Previously didn't cause a problem because `static-html` was a core pkg
2016-08-29 11:38:45 +10:00
Tom Coleman
edf40c430b Use isopacket packages for self-test also 2016-08-25 13:24:40 +10:00
Tom Coleman
f01653e690 Use submodules for isopacket loading 2016-08-25 12:23:33 +10:00
Tom Coleman
f69f6c091a Added a minimum version for blaze to the skel 2016-08-25 12:23:33 +10:00
Ben Newman
b34a796600 Merge branch 'devel' into release-1.4.2 2016-08-24 11:06:22 -04:00
Ben Newman
d5c83aaf8f Don't try to use native tar command on Windows.
Fixes #7689.
2016-08-22 16:52:03 -04:00
Ben Newman
88db65c837 Update modules test app to Meteor 1.4.1. 2016-08-18 17:31:21 -04:00
Ben Newman
b552011180 Revert "Fix #7491 by wrapping child process in script on OSX"
This reverts commit 98aaaed084.

This change is no longer necessary with Node 4.5.0, which was included
with Meteor 1.4.1.
2016-08-18 17:13:48 -04:00
Ben Newman
4618b3d8de Remove --no-bin-links flag from default npm rebuild arguments.
After recent discussion on https://github.com/meteor/meteor/issues/7401,
@glasser and I think the relatively obscure benefit of --no-bin-links is
outweighed by the problems it causes for packages whose rebuild scripts
need executable scripts installed in the node_modules/.bin/ directory.
2016-08-18 16:39:52 -04:00
Ben Newman
4c1fe8ff22 Convert options.npmDir only if it's a string. 2016-08-17 18:18:07 -04:00
Ben Newman
61c1ab0cac Avoid colons in .npm/plugin/... paths.
Fixes #7661.
2016-08-17 18:08:29 -04:00
Ben Newman
61012963a5 Fix test description to say --all-packages instead of --update-all. 2016-08-17 14:53:28 -04:00
Ben Newman
d6ffff50b5 Recommend meteor update --all-packages after partial update. 2016-08-17 14:53:28 -04:00
Ben Newman
9249985875 Filter --all-packages package names through isIsobuildFeaturePackage. 2016-08-17 14:53:28 -04:00
Yo-An Lin
e326fddafb Add option to skip release check (#7445)
* Add --no-release-check option to skip release check

* Add METEOR_NO_RELEASE_CHECK environment variable
2016-08-17 14:53:27 -04:00
Tom Coleman
2290911723 Added meteor update --all-packages to update indirect dependencies
See #7495. Still some decisions to be made:

 - Should we make --all-packages the default?
 - How should we deal with *new* indirect dependencies?
 - Should we do anything about underpinning indirect dependencies when updating?
2016-08-17 14:53:27 -04:00
Ben Newman
88bccdb36a Tolerate missing source files in files.cp_r. 2016-08-16 22:20:53 -04:00
Ben Newman
cc362a3bca Fix typo in new version of files.cp_r. 2016-08-16 18:34:25 -04:00
Ben Newman
31155ad990 Do not run npm rebuild for local node_modules directories.
Since we do not write .meteor-last-rebuild-version.json files when
developers run `meteor npm install ...`, this commit saves us from
unnecessarily rebuilding any freshly-installed binary npm dependencies
when Meteor starts.
2016-08-16 17:36:18 -04:00
Ben Newman
21462959f6 Try to symlink rather than copying node_modules when rebuilding. 2016-08-16 17:36:17 -04:00
Ben Newman
c5809a4a1c Allow files.cp_r to copy non-directories. 2016-08-16 16:27:09 -04:00
Ben Newman
b2e2d0651b Don't install node-gyp or node-pre-gyp in server bundle.
These packages need to be installed when we run `npm install` in
`bundle/programs/server` (which this commit ensures), but they don't need
to be part of the dev bundle.
2016-08-15 14:31:10 -04:00
Ben Newman
f6a52788f0 Remove BrowserStack from dev bundle. 2016-08-15 14:23:09 -04:00
Ben Newman
0a58a93490 Allow tests to share .meteor/local/shell with apps.
This change means `meteor shell` will now work when running tests with
`meteor test`.
2016-08-11 19:05:50 -04:00
Ben Newman
38096aafc8 Use --debug instead of --debug-brk for meteor debug.
Breaking on the first statement in the program used to be the only way to
get the debugger to stop at any breakpoints, but more recent versions of
node-inspector (compatible with Node 4) do a much better job of stopping
at breakpoints after the program starts.
2016-08-11 18:36:05 -04:00
Ben Newman
027a7b6e32 Merge branch 'devel' into release-1.4.1 2016-08-11 11:30:40 -04:00
Ben Newman
a78dde0225 Make meteor publish-for-arch unnecessary in most cases (#7608)
* Include process.{platform,arch} in .meteor-last-rebuild-version.json.

This supports rebuilding binary npm packages published by completely
different architectures, not just different versions of Node.

* Make publish-for-arch unnecessary in most cases.

* Don't rebuild binary packages when Node patch version changes.

* Permit patch-compatible versions in .meteor-last-rebuild-version.json.

This is a more general solution than simply discarding the patch version
for currentVersions.versions.node, as I did in a previous commit.
2016-08-11 11:24:38 -04:00
Ben Newman
3c7f83778f Move server-side component of meteor shell into a package. (#7624)
This will make it much easier to fix bugs and make improvements going
forward, since they won't have to wait for the next release of Meteor.

One functional change: when the parent process exits, it no longer forces
all connected shell clients to disconnect, which is actually a more
convenient behavior, because it gives the clients a chance to reconnect
when/if the server starts up again, and it's easy enough to kill the
clients if that's what you want.
2016-08-11 09:11:40 -04:00
Ben Newman
e4e87ecce4 Don't touch ~/.meteor/meteor after background updates. (#7616) 2016-08-10 16:53:56 -04:00
Ben Newman
a1c3516053 Use pure-JavaScript implementation for npm-bcrypt package. (#7595)
According to the README, this implementation is approximately 2.7 times
slower than native: https://www.npmjs.com/package/bcryptjs

Apps that wish to continue using the native bcrypt package should run
`meteor npm install --save bcrypt` in the root application directory, and
the npm-bcrypt package will prefer that implementation.
2016-08-09 16:42:41 -04:00
Ben Newman
184dcb78a5 Merge branch 'devel' into release-1.4.1 2016-08-08 19:36:24 -04:00
Ben Newman
a912eed990 Fix accidental stripping of @scoped npm packages. (#7609)
The previous code did not accommodate the possibility that
`meteorNpm.getProdPackageNames` might return a package name that contained
one or more `/` characters.

Fixes #7579.
2016-08-08 19:35:11 -04:00
Ben Newman
4bdc65919d Set $USERPROFILE to the dev bundle directory for meteor {node,npm}.
The node-gyp tool uses `process.env.HOME || process.env.USERPROFILE` to
determine where it should install the .node-gyp directory containing Node
headers and libraries, and we now preinstall that directory at
dev_bundle/.node-gyp/, so (with this change) no download should be
necessary.
2016-08-06 13:46:16 -04:00
Ben Newman
cfa38d1de6 Fix call to nonexistent method buildmessage.hasMessages(). 2016-08-06 13:45:20 -04:00
Ben Newman
aacfbbf5d2 Merge pull request #7485 from kaneoh/bugfix/sourcemap-header-fix
Fix source map header for the prelinked files
2016-08-03 17:10:11 -04:00
Ben Newman
44cf6bbe4d Add some basic self-tests of meteor shell.
Related to #7504.
2016-08-03 15:56:34 -04:00
Ben Newman
08f14ef1a2 Add a basic app template for testing meteor shell. 2016-08-03 15:56:34 -04:00
Ben Newman
83b0d90180 Fix multi-line input to meteor shell.
There is unfortunately no way to access the special Recoverable
constructor defined in node/lib/repl.js unless we temporarily use the
defaultEval function, trigger a recoverable error, and capture its
.constructor property. Fortunately we are that clever.

Fixes #7504.
2016-08-03 15:56:34 -04:00
Ben Newman
1d5ca820df Don't swallow unexpected errors when checking for phantomjs-prebuilt. 2016-08-03 15:26:36 -04:00
Ben Newman
2de0fb59ef Make sure self-tests have a consistent runtime environment. 2016-08-03 15:25:15 -04:00
Ben Newman
36afd7f5c3 Defend global.Promise against misbehaving polyfills. 2016-08-03 15:25:13 -04:00
c9s
8ac556b993 Fix source map header 2016-08-03 13:39:08 +08:00
Ben Newman
c475ffc161 Create .meteor/local directory if necessary for meteor {node,npm}.
Fixes #7546.
2016-08-01 20:37:42 -04:00