mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 07:55:33 +02:00
swc: add page (#7396)
This commit is contained in:
parent
9cdd92e3c3
commit
1d0a5e9c0b
1 changed files with 28 additions and 0 deletions
28
pages/common/swc.md
Normal file
28
pages/common/swc.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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 {{ignored_files}}`
|
Loading…
Add table
Reference in a new issue