Commit Graph

57 Commits

Author SHA1 Message Date
Renan Castro
4f16220fa6 Fix hangs on mac m1 - increase Fiber poolsize when on arm64 2021-11-17 06:21:16 -04:00
Jan Dvorak
b6e127cfc9 Minor tools update
Replace underscore where easy and feasible & other minor modernization that I came across.
2021-06-25 00:36:03 +02:00
Jan Dvorak
5f59a6ad15 Bump to Node 14.15.1 to include security patch
Bumps to latest Node 14 version to include October security patch & bumps minimum node versions in dev bundle and boot.
2020-11-25 14:24:57 +01:00
Ben Newman
cb58f9af85 Require Node.js 12 when running Meteor 1.9 apps.
We haven't always updated this minimum version when we've changed the
Node.js version bundled with Meteor, which is fine because most deployment
strategies (including Galaxy) use the right version of Node.js
automatically. With Meteor 1.9 and Node.js 12.14.0, however, it seems
important that we make absolutely sure new Meteor apps are not getting run
in production with an end-of-life'd version of Node.js (v8).
2020-01-02 11:38:21 -05:00
Ben Newman
c90246d55b Merge branch 'devel' into release-1.9 2019-11-26 15:46:38 -05:00
Ben Newman
407b2d17cb Remove eslint and pre-commit hook to fix npm security warnings. 2019-11-14 17:34:29 -05:00
Ben Newman
b32e44a5d5 Merge branch 'release-1.8.2' into release-1.9 2019-07-30 14:24:09 -04:00
Paulo Mogollón
2ae2690f3a Convert tools/utils/archinfo.js to TypeScript. (#10624)
* Updated code to use modern JS
* Added types
* Stopped using 2 underscore functions (1 remaining)
2019-07-21 12:01:24 -04:00
Ben Newman
53fd2a1f4a Merge branch 'release-1.8.2' into release-1.9 2019-07-04 17:27:51 -04:00
Ben Newman
5ed64fb1db Remove explicit .js extension from tools/fs/files imports. 2019-07-04 10:32:09 -04:00
Ben Newman
d11dc73223 Use kexec for Mac/Linux springboarding, again. 2019-05-10 11:52:04 -04:00
Ben Newman
9765f8cd11 Make springboarding execute meteor.bat only on Windows. 2019-05-08 17:21:27 -04:00
Ben Newman
7d87638249 Remove kexec from dev bundle until it works with Node 12. 2019-05-06 12:13:24 -04:00
Ben Newman
e1e2c2b490 Terminate SQLite database connection before springboarding.
https://github.com/meteor/meteor/issues/9703#issuecomment-383620007
2018-04-24 11:37:33 -04:00
Ben Newman
a7585da87c Bump MIN_NODE_VERSION to enforce Node >= 8 in production. (#9485)
Clearly we haven't remembered to bump this version for some time now,
which is too bad, because it could have provided a more helpful error for
developers using an older version of Node in their non-Galaxy deployment
environments: https://github.com/meteor/meteor/issues/9470
2017-12-19 13:10:54 -05:00
Jesse Rosenberger
9b056f5e91 Merge pull request #9341 from meteor/glasser/progress-status-only
Improved console behavior within the Emacs shell, and also general
Console refactoring to modernize ECMAScript use and remove Underscore.
2017-12-13 20:14:13 +02:00
Jesse Rosenberger
7268fb8ca0 Improve Emacs shell support by auto-detecting Emacs.
This adds a memoized helper function for detecting Emacs throughout the
CLI tool and automatically resorts to "ProgressDisplayStatus" mode when
Emacs is enabled.

In my tests with both Emacs 22 and 27, this nearly doubled performance
when using Meteor from within the Emacs shell (i.e. `M-x shell`).
2017-12-12 17:19:16 +02:00
David Brown
ed10ede29d Fix error message for invalid ROOT_URL #8026 (#9261) 2017-12-05 10:14:28 -05:00
Ben Newman
bbd3b9ffca Tolerate springboarding to the same meteor-tool build directory.
Though this seems wasteful, it can happen if a SpringboardToLatestRelease
exception is thrown, and it definitely should spawn a new process rather
than returning normally from the springboard function.
2017-10-15 20:10:21 -04:00
Ben Newman
5a9e837937 Upgrade to 64-bit when possible on Windows.
Since we can't change the springboarding logic of existing Meteor
releases, this decision has to be made by the springboarded-to Meteor 1.6
release, and may result in a second springboarding.
2017-10-15 19:36:37 -04:00
Ben Newman
e9db660d03 Allow 64-bit Windows builds of meteor-tool to download 32-bit builds.
Once Windows developers update to a 64-bit version of Meteor 1.6, they may
still wish to run apps using older versions of Meteor where only 32-bit
builds of meteor-tool are available. This commit makes that possible.
2017-10-15 19:32:18 -04:00
Ben Newman
5154835c73 Allow asynchronous meteor command implementations. 2017-10-12 16:45:04 -04:00
Ben Newman
7485d50ff6 Support --inspect and --inspect-brk for all meteor test/run commands. (#9201)
The syntax of these flags is the same as the equivalent Node.js options:
https://nodejs.org/en/docs/inspector/#command-line-options

When no port value is provided, the default is 9229.

Two notable differences:

  * The flags affect the server process spawned by the parent build
    process, rather than affecting the build process itself.

  * The --inspect-brk flag causes the server process to pause just after
    server code has loaded but before it begins to execute. This timing is
    more useful than the Node.js --inspect-brk behavior, which is to pause
    on the first instruction executed by the process, since that is too
    early to set any useful breakpoints.

Implements https://github.com/meteor/meteor-feature-requests/issues/194.
2017-10-10 09:23:46 -04:00
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