mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 04:01:20 +00:00
Update cheatsheets
This commit is contained in:
8
tldr/swc
8
tldr/swc
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# swc
|
||||
|
||||
> JavaScript and TypeScript compiler written in Rust.
|
||||
> More information: <https://swc.rs>.
|
||||
> More information: <https://swc.rs/docs/usage/cli>.
|
||||
|
||||
- Transpile a specified input file and output to `stdout`:
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Transpile the input file every time it is changed:
|
||||
|
||||
`swc {{path/to/file}} --watch`
|
||||
`swc {{path/to/file}} {{[-w|--watch]}}`
|
||||
|
||||
- Transpile a specified input file and output to a specific file:
|
||||
|
||||
`swc {{path/to/input_file}} --out-file {{path/to/output_file}}`
|
||||
`swc {{path/to/input_file}} {{[-o|--out-file]}} {{path/to/output_file}}`
|
||||
|
||||
- Transpile a specified input directory and output to a specific directory:
|
||||
|
||||
`swc {{path/to/input_directory}} --out-dir {{path/to/output_directory}}`
|
||||
`swc {{path/to/input_directory}} {{[-d|--out-dir]}} {{path/to/output_directory}}`
|
||||
|
||||
- Transpile a specified input directory using a specific configuration file:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user