0.0.8 • Published 5 years ago

bs-run v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Easily run .re and .ml files directly in your BuckleScript project.

bs-run demo

Note that bs-run does not compile .re and .ml files, it will execute yarn build and will use the BuckleScript compiled files.

Suggested flow to use bs-run:

  npm -g install bs-run

Install VSCode formulahendry.code-runner (a VS Code extension):

  1. Edit your vscode user/workspace settings:
  "code-runner.executorMapByFileExtension": {
    ".re": "bs-run",
    ".ml": "bs-run"
  },
for OCaml you might also have to change:
  "code-runner.executorMap": {
    "ocaml": "bs-run",
  },
  1. Add in cmd+shift+p -> Preferences: Open Keyboard Shortcuts (JSON):
{
  "key": "shift+enter",
  "command": "code-runner.run",
  "when": "editorTextFocus"
}
  1. While in a .re or .ml file use shift+enter to run it

Now you can log and test short snippets of your code.

0.0.8

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago