From 1d0a5e9c0b5a7c7bc07b4cff046ce5da91e9eb61 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Tue, 9 Nov 2021 09:40:40 -0300 Subject: [PATCH] swc: add page (#7396) --- pages/common/swc.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/swc.md diff --git a/pages/common/swc.md b/pages/common/swc.md new file mode 100644 index 000000000..3823e3eee --- /dev/null +++ b/pages/common/swc.md @@ -0,0 +1,28 @@ +# swc + +> JavaScript and TypeScript compiler written in Rust. +> More information: . + +- 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}}`