Commit Graph

11 Commits

Author SHA1 Message Date
Ben Newman
5aee7a9a09 Use an appropriate module object in meteor shell. 2016-05-19 17:04:08 -04:00
Ben Newman
2f0aaa947a Make meteor shell help text robust across Node versions. 2016-05-16 18:21:13 -04:00
Ben Newman
52e2c6a36c Use setImmediate instead of process.nextTick in shell-server.js.
Since process.nextTick fires before IO events, it doesn't give the server
much chance to make progress starting up.
2016-05-16 18:21:13 -04:00
Ben Newman
d94e7d812d Upgrade dev bundle meteor-promise to 0.7.1. 2016-05-16 18:21:11 -04:00
Ben Newman
3c20ea603f Use meteorInstall's root require function in meteor shell.
Helps with #6271.
2016-02-26 12:36:58 -05: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
7bd0382ad9 Allow piping commands to meteor shell via stdin. 2015-11-12 16:33:21 -05:00
Ben Newman
7eafc55eb2 Improve meteor shell command evaluation.
Specific improvements:

- Parentheses are now stripped from commands that look like named classes
  so that they will be treated as class declarations rather than as named
  class expressions.

- When the `ecmascript` package is installed, `compileForShell` errors are
  now exposed to the `evalCommand` callback.

- Instead of using `vm.runInThisContext` to parse and evaluate commands at
  the same time, `evalCommand` now parses commands by creating a new
  `vm.Script` and later evaluates them using `script.runInThisContext()`,
  so that `SyntaxError`s can be reported immediately. Fixes #5131.
2015-09-11 18:32:39 -04:00
Ben Newman
5a880a00bb If Package.ecmascript is installed, use it to compile shell commands. 2015-08-13 20:01:01 -04:00
Ben Newman
0cd38690e9 Use a Promise to run shell commands using recycled Fibers. 2015-08-13 20:01:01 -04:00
Slava Kim
35aef2b296 Create 'static-assets' folder in tools
To keep files that are not run by tool itself, but are used by generated code.
2015-07-31 17:12:38 -07:00