Commit Graph

230 Commits

Author SHA1 Message Date
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
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
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
c475ffc161 Create .meteor/local directory if necessary for meteor {node,npm}.
Fixes #7546.
2016-08-01 20:37:42 -04:00
Wexpo Lyu
57a28eafff Have meteor update explain how to update cordova packages (#7233) 2016-07-29 23:43:53 +03:00
Tom Coleman
c315861c6c Merge branch 'master' into devel 2016-07-29 23:37:11 +10:00
Tom Coleman
98aaaed084 Fix #7491 by wrapping child process in script on OSX
See https://github.com/meteor/meteor/issues/7491#issuecomment-235887764

NOTE: this issue should be fixed in the next release of node v4
(4.4.8 or 4.5). When we include that in the dev bundle we should
revert this change
2016-07-29 12:23:04 +10:00
Ben Newman
23a3ba0e72 Use getUrlWithResuming for publish-for-arch, and log extraction. 2016-07-28 14:42:45 -04:00
Wexpo Lyu
9581a6920c Update commands.js 2016-07-22 16:10:14 -04:00
Wexpo Lyu
317edd88ab Add a warning when use --production. 2016-07-22 16:10:13 -04:00
Dotan Simha
9003eb47b1 Updated the name of the example for angular 2 2016-07-22 16:10:13 -04:00
Dotan Simha
1c64d3a6da Added Angular2 to the example repositories 2016-07-22 16:10:12 -04:00
Ben Newman
00c05facde Merge branch 'devel' into release-1.4 2016-07-18 14:52:14 -04:00
Ben Newman
39851fc6b0 Use known dev_bundle path for internal npm commands. 2016-07-17 21:26:53 -04:00
Ben Newman
35b387bdc1 Always default to checkout dev_bundle for meteor {node,npm}. 2016-07-17 13:09:06 -04:00
Ben Newman
4e2615e3fc Use Buffer.concat instead of joining strings. 2016-07-17 13:08:37 -04:00
Ben Newman
57ccaa27f9 Return an OS path for .meteor/local/dev_bundle. 2016-07-15 18:29:44 -04:00
Ben Newman
f08ea70a47 Print stack traces from failed meteor {node,npm} commands. 2016-07-15 18:29:13 -04:00
Ben Newman
0f49be5973 Don't pass custom env to python.exe in addWindowsVariables.
The env isn't necessary, and it seems to cause problems running python.exe
in some Windows environments.
2016-07-15 16:27:46 -04:00
Ben Newman
578d40a753 Use node-gyp to infer GYP_MSVS_VERSION when possible.
As a refinement of my previous commit, we will continue setting the
$GYP_MSVS_VERSION variable to "2015" except in cases where the Python
library behind node-gyp succeeds in inferring the correct version.

Note that the Python library will never infer "2015" by itself, even
though that's the version recommended by the node-gyp setup instructions:

  https://github.com/nodejs/node-gyp#installation.

Note also that the Windows machines used by `meteor admin get-machine` and
build.meteor.com have version "2010e", which can be inferred.

In other words, this commit allows the following groups of developers to
avoid setting $GYP_MSVS_VERSION manually:

  1. Developers who followed the node-gyp setup instructions.
  2. Package authors who run `meteor publish-for-arch` on build machines.
2016-07-15 15:57:31 -04:00
Ben Newman
3c06050a25 Stop setting process.env.GYP_MSVS_VERSION for meteor npm.
Setting GYP_MSVS_VERSION to 2015 when the Visual C++ 2015 build tools are
not (and/or cannot be) installed is (in my experience) the leading cause
of `npm rebuild` failures on older Windows machines.

Auto-detecting the appropriate version is something node-gyp ought to be
able to do as well as Meteor possibly could, at least according to
https://github.com/nodejs/node-gyp/blob/1dcf356ca7/gyp/pylib/gyp/MSVSVersion.py#L222-L223

When selecting a different version is important, you can always set the
GYP_MSVS_VERSION environment variable yourself. Specifically, if you're a
package author, and your package depends on npm packages that can only be
compiled with a newer version of MSBuild.exe, then you might need to run

  $env:GYP_MSVS_VERSION = "2015"
  meteor publish-for-arch name:package@x.y.z

I fully trust that the folks in that small category can handle that
additional burden.
2016-07-15 12:42:49 -04:00
Ben Newman
d20dcbeab5 Don't let meteor {node,npm} fail if packages.data.db incomplete.
It's pretty strange that `data` can be undefined when there is no `error`,
but that's the API we're dealing with.
2016-07-14 14:39:38 -04:00
Ben Newman
73e44a3c9c Use .meteor/local/dev_bundle instead of .meteor/dev_bundle.
I'm deliberately leaving in the code to ensure .meteor/.gitignore contains
dev_bundle for now, so that the old file won't get accidentally checked
into anyone's app repository.
2016-07-14 11:47:30 -04:00
Ben Newman
ea236fc9da Try harder to create .meteor/dev_bundle symlink.
May help with #7391.
2016-07-14 11:27:55 -04:00
Ben Newman
c946e77d64 Use .meteor/local/dev_bundle instead of .meteor/dev_bundle.
I'm deliberately leaving in the code to ensure .meteor/.gitignore contains
dev_bundle for now, so that the old file won't get accidentally checked
into anyone's app repository.
2016-07-14 10:12:47 -04:00
Ben Newman
0a028a5cb1 Merge branch 'devel' into release-1.4 2016-07-13 13:17:09 -04:00
Eli Skeggs
6c455a9321 Add --raw-logs option for meteor test (#7398)
Fixes #7396.
2016-07-13 17:15:40 +00:00
Ben Newman
bee3112a63 Try harder to create .meteor/dev_bundle symlink.
May help with #7391.
2016-07-12 11:41:27 -04:00
Ben Newman
586af3482c Merge branch 'devel' into release-1.4 2016-07-10 15:50:03 -04:00
Ben Newman
f8b1bba606 Improve .meteor/dev_bundle link reading and creation. 2016-07-10 15:39:46 -04:00
Ben Newman
1dac34f00c Store .meteor/dev_bundle target as text when symbolic linking fails.
This wouldn't work if .meteor/dev_bundle needed to be a true symbolic
link, but fortunately we just need to record the target path in a way that
allows us to read it later.

Fixes #7374.
2016-07-09 17:15:21 -04:00
Ben Newman
77feb7b76a Decompose readLink and makeLink helper functions.
Part of #7374.
2016-07-09 16:55:14 -04:00
Ben Newman
ac28ac16d9 Fix bug: solutionReleaseName no longer defined. 2016-07-09 16:31:46 -04:00
Ben Newman
c54686126e Merge branch 'devel' into release-1.4 2016-07-09 15:07:52 -04:00
Ben Newman
e2dbb6093e Always call updateMeteorToolSymlink after successful update.
https://github.com/meteor/meteor/pull/7340#issuecomment-231254368
2016-07-08 13:44:04 -04:00
Ben Newman
542891b65d Make meteor {node,npm} respect .meteor/dev_bundle when possible. 2016-07-07 15:24:25 -04:00
Ben Newman
6cd1c472d9 Create a .meteor/dev_bundle symlink when writing .meteor/release.
This will make it easier for `meteor node` and `meteor npm` to find the
right dev_bundle for the current application.
2016-07-07 15:24:24 -04:00
Ben Newman
b23ad6d85f Respect .meteor/release when running meteor {npm,node} from checkout. 2016-07-07 15:24:24 -04:00
Ben Newman
eadb6e65cc Ensure only one Promise constructor is ever used by tools code. 2016-07-07 11:04:18 -04:00
Ben Newman
f812762353 Infer dev_bundle for meteor {npm,node} from .meteor/release.
Fixes #7338.
Fixes #7297.
2016-07-06 21:00:40 -04:00
Ben Newman
9d417303c1 Symlink .meteor/local/plugin-cache in temporary test directory.
Because the cache directories are shared instead of copied, the results
now have a chance of surviving multiple invocations of `meteor test`.

This significantly reduces rebuild times when testing a large app; for
example, the meteor/tools/tests/apps/modules app now takes less than 10
seconds to rebuild (after restarting the process, not after a file change)
instead of 60 seconds or more.
2016-07-06 21:00:38 -04:00
Ben Newman
f38725e0b2 Infer dev_bundle for meteor {npm,node} from .meteor/release.
Fixes #7338.
Fixes #7297.
2016-07-01 20:38:44 -04:00
Tom Coleman
d2d1455f40 Updated meteor create to write package versions 2016-06-29 14:14:09 -04:00
Tom Coleman
63f1311630 First version of release constraint unpinning
For #7004. Still working on the self test but it appears to work :)
2016-06-29 14:14:08 -04:00
Ben Newman
e229c3546c Symlink .meteor/local/plugin-cache in temporary test directory.
Because the cache directories are shared instead of copied, the results
now have a chance of surviving multiple invocations of `meteor test`.

This significantly reduces rebuild times when testing a large app; for
example, the meteor/tools/tests/apps/modules app now takes less than 10
seconds to rebuild (after restarting the process, not after a file change)
instead of 60 seconds or more.
2016-06-28 12:59:50 -04:00
Martijn Walraven
238623ca74 Avoid building Cordova project when no run targets are specified
Fixes #7271.
2016-06-24 15:19:09 +02:00