Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-26 00:20:44 +00:00
parent 048e3ad81e
commit 197e4c944f
55 changed files with 110 additions and 80 deletions

View File

@@ -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: