mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
docs(tools): add documentation for deno compile cmd (#8615)
This commit is contained in:
parent
362be01abe
commit
2d5c742cf6
3 changed files with 20 additions and 0 deletions
|
@ -69,6 +69,7 @@
|
|||
"formatter": "Formatter",
|
||||
"repl": "Read-eval-print-loop",
|
||||
"bundler": "Bundler",
|
||||
"compiler": "Compiling executables",
|
||||
"documentation_generator": "Documentation generator",
|
||||
"dependency_inspector": "Dependency inspector",
|
||||
"linter": "Linter"
|
||||
|
|
|
@ -4,6 +4,7 @@ Deno provides some built in tooling that is useful when working with JavaScript
|
|||
and TypeScript:
|
||||
|
||||
- [bundler (`deno bundle`)](./tools/bundler.md)
|
||||
- [compiling executables (`deno compile`)](./tools/compiler.md)
|
||||
- [dependency inspector (`deno info`)](./tools/dependency_inspector.md)
|
||||
- [documentation generator (`deno doc`)](./tools/documentation_generator.md)
|
||||
- [formatter (`deno fmt`)](./tools/formatter.md)
|
||||
|
|
18
docs/tools/compiler.md
Normal file
18
docs/tools/compiler.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
## Compiling Executables
|
||||
|
||||
> Since the compile functionality is relatively new, the `--unstable` flag has
|
||||
> to be set in order for the command to work.
|
||||
|
||||
`deno compile [SRC] [OUT]` will compile the script into a self contained
|
||||
executable.
|
||||
|
||||
```
|
||||
> deno compile --unstable https://deno.land/std/http/file_server.ts
|
||||
```
|
||||
|
||||
If you omit the `OUT` parameter, the name of the executable file will be
|
||||
inferred.
|
||||
|
||||
### Cross Compilation
|
||||
|
||||
Cross compiling binaries for different platforms is not currently possible.
|
Loading…
Add table
Reference in a new issue