Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

33
tldr/swc Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# swc
> JavaScript and TypeScript compiler written in Rust.
> More information: <https://swc.rs>.
- Transpile a specified input file and output to `stdout`:
`swc {{path/to/file}}`
- Transpile the input file every time it is changed:
`swc {{path/to/file}} --watch`
- Transpile a specified input file and output to a specific file:
`swc {{path/to/input_file}} --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}}`
- Transpile a specified input directory using a specific configuration file:
`swc {{path/to/input_directory}} --config-file {{path/to/.swcrc}}`
- Ignore files in a directory specified using glob path:
`swc {{path/to/input_directory}} --ignore {{path/to/ignored_file1 path/to/ignored_file2 ...}}`