Commit Graph

34 Commits

Author SHA1 Message Date
Ben Newman
8fe91e22e7 Set METEOR_ALLOW_SUPERUSER if necessary when springboarding.
Part of #7959.
2016-10-31 13:57:27 -04:00
Jesse Rosenberger
74afdd5daf Don't pass --allow-superuser flags to a springboarded version of Meteor
By removing the `--allow-superuser` and `--unsafe-perm` arguments before springboarding, it prevents older versions of Meteor from objecting to its use.  Catching it at the highest level should be sufficient to discourage root usage as intended in meteor/meteor#7821

Intended to fix...  meteor/meteor#7959
2016-10-31 13:26:04 -04:00
Ben Newman
50528819cf Change terminology from METEOR_UNSAFE_PERM to METEOR_ALLOW_SUPERUSER.
The --unsafe-perm option is still supported but no longer advertised.
2016-10-28 16:11:29 -04:00
Ben Newman
e4acc36f63 Respect METEOR_UNSAFE_PERM in addition to --unsafe-perm.
This is important for `meteor npm`, since we don't parse or pass through
Meteor-specific command-line arguments when running `meteor npm`.

When METEOR_UNSAFE_PERM is set, its value is now propagated to any npm
commands via the NPM_CONFIG_UNSAFE_PERM variable.

Helps with #7959.
Follow-up to #7821.
2016-10-28 16:11:29 -04:00
Ben Newman
4300d261f3 Support meteor <command> for any dev_bundle/bin/<command> executable.
This will make it easier to use tools like https://yarnpkg.com/ with the
right version of Node, etc.

With this commit, here's all you have to do:

  meteor npm install -g yarnpkg

Then test that it works:

  meteor yarn info

Note that any commands registered by Meteor itself will not be honored.
2016-10-12 13:22:26 -04:00
Mehdi Ahraoui
2bc5b4b3b6 Meteor should check if is running as root and prevent it on Unix (#7821)
* Prevent running sudo meteor run it on Unix

Prevent running sudo meteor run it on Unix

Fix for all commands

remove empty line

Revert "Prevent running sudo meteor run it on Unix"

This reverts commit d2867561bb6fb1b259a59556628b56a64c677a0b.

improve PR

improve PR

improve PR

fix PR

* improve PR

* fix PR

* fix PR

* fix PR
2016-09-28 09:34:53 -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
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
8248d86fb2 Consolidate exit code logic for meteor npm and meteor node.
Follow-up to #6675.
2016-04-01 12:08:55 -04:00
Ben Newman
2ccb7467c9 Merge branch 'master' into devel 2016-03-28 18:35:58 -04:00
Sarah A
2b8b4598c2 Update main.js
Changes "this in especially inefficient" to "this is especially inefficient"
2016-03-03 22:58:52 -08:00
Tom Coleman
5b064f15df Allow arbitrary options on meteor deploy
And pass them through to both the /info and /deploy calls.
2016-02-26 15:24:25 +11:00
Ben Newman
4c890ac20d Use Babel 6 to implement ECMAScript 2015+ in tool code.
Note that `export default` no longer modifies `module.exports`, but simply
defines `exports.default`, so these two import styles will work:

  import DefaultExport from "./export-default-module.js"; // preferred
  var DefaultExport = require("./export-default-module.js").default;

but this style will no longer work:

  var DefaultExport = require("./export-default-module.js");
2016-02-04 21:37:34 -05:00
Ben Newman
8dffdaeb38 Eliminate Future from tools/main.js. 2015-12-09 12:06:49 -05:00
Ben Newman
76609a615c Upgrade to Node v0.10.41. 2015-12-08 18:43:15 -05:00
Ben Newman
ed17924940 Add braces to every if/for(-in)/while statement in tools directory. 2015-11-13 12:25:19 -05:00
mbrookes
b64428e24b Add 'Did you mean?' reminders for Rails developers
Closes PR #5593

[stubailo: squash commits]
2015-11-02 16:22:06 -08:00
Sashko Stubailo
ff3f2ee31b Fix create on Windows; don't copy git hooks on Windows 2015-09-10 20:52:21 -07:00
Martijn Walraven
6e622a36f6 Revert "Temporarily print errors until meteor-promise exception handling is fixed"
See https://github.com/meteor/promise/issues/2.
2015-08-26 19:26:50 +02:00
Martijn Walraven
d21bddeece Temporarily print errors until meteor-promise exception handling is fixed
See https://github.com/meteor/promise/issues/2
2015-08-26 19:26:48 +02:00
Martijn Walraven
74b5f7bcea Move cordova-lib and ios-sim from dev bundle to package 2015-08-26 19:26:47 +02:00
Martijn Walraven
185e04c9a7 Move tools/cordova/commands.js to tools/cli/commands-cordova.js 2015-08-26 19:26:47 +02:00
Martijn Walraven
7d34b1296b Split up and sanitize cordova-commands.js, use cordova-lib 2015-08-26 19:26:45 +02:00
Slava Kim
afee6b07c7 move catalog/ into packaging/ 2015-08-06 16:39:01 -07:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -07:00
Slava Kim
76b001d0da Kill some dead code 2015-08-05 15:03:53 -07:00
Slava Kim
6b1bb038d8 Move files into tools/fs 2015-08-03 22:09:28 -07:00
Slava Kim
8a8db83d29 Move files into tools/utils 2015-08-03 20:32:38 -07:00
Slava Kim
36b542f822 move files into tools/packaging 2015-08-03 16:03:15 -07:00
Slava Kim
5472331fc5 Move isopackets.js to tool-env
Because it is only used in tool to load packages, so it is sort of a
setup environment file.
2015-08-01 14:13:53 -07:00
Slava Kim
49a7088c30 Create a folder "tool-env"
Contains uninteresting setup and cleanup files
2015-07-31 18:38:25 -07:00
Slava Kim
e5ddbaa244 Fix a couple of bugs introduced in renamings 2015-07-31 17:12:38 -07:00
Slava Kim
3ddd281d8c Move catalog files into tools/catalog/ 2015-07-30 12:12:07 -07:00
Slava Kim
cb681e595f Move CLI files into a CLI folder in tools 2015-07-29 23:58:04 -07:00