Skip to content

Commit 7abfc83

Browse files
authored
Merge branch 'main' into rss1102/fix-relative-path-bin-resolution
2 parents 36c105b + a7fee4e commit 7abfc83

38 files changed

Lines changed: 1568 additions & 1215 deletions

File tree

crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/builtin_script_note/snapshots/builtin_script_note.global.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,20 @@ Arguments:
9191
[ROOT] Project root directory (default: current directory)
9292
9393
Options:
94-
--host [HOST] Specify hostname
95-
--port <PORT> Specify port
96-
--open [PATH] Open browser on startup
97-
--cors Enable CORS
98-
--strictPort Exit if specified port is already in use
99-
--force Ignore the optimizer cache and re-bundle
100-
--experimentalBundle Use experimental full bundle mode
101-
--base <PATH> Public base path
102-
-l, --logLevel <LEVEL> Set log level
103-
--clearScreen Allow or disable clearing the screen
104-
-d, --debug [FEAT] Show debug logs
105-
-f, --filter <FILTER> Filter debug logs
106-
-m, --mode <MODE> Set env mode
107-
-h, --help Print help
94+
--host [host] [string] specify hostname
95+
--port <port> [number] specify port
96+
--open [path] [boolean | string] open browser on startup
97+
--cors [boolean] enable CORS
98+
--strictPort [boolean] exit if specified port is already in use
99+
--force [boolean] force the optimizer to ignore the cache and re-bundle
100+
--experimentalBundle [boolean] use experimental full bundle mode (this is highly experimental)
101+
--base <path> [string] public base path (default: /)
102+
-l, --logLevel <level> [string] info | warn | error | silent
103+
--clearScreen [boolean] allow/disable clear screen when logging
104+
-d, --debug [feat] [string | boolean] show debug logs
105+
-f, --filter <filter> [string] filter debug logs
106+
-m, --mode <mode> [string] set env mode
107+
-h, --help Display this message
108108
109109
Examples:
110110
vp dev

crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/builtin_script_note/snapshots/builtin_script_note.local.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,20 @@ Arguments:
7979
[ROOT] Project root directory (default: current directory)
8080
8181
Options:
82-
--host [HOST] Specify hostname
83-
--port <PORT> Specify port
84-
--open [PATH] Open browser on startup
85-
--cors Enable CORS
86-
--strictPort Exit if specified port is already in use
87-
--force Ignore the optimizer cache and re-bundle
88-
--experimentalBundle Use experimental full bundle mode
89-
--base <PATH> Public base path
90-
-l, --logLevel <LEVEL> Set log level
91-
--clearScreen Allow or disable clearing the screen
92-
-d, --debug [FEAT] Show debug logs
93-
-f, --filter <FILTER> Filter debug logs
94-
-m, --mode <MODE> Set env mode
95-
-h, --help Print help
82+
--host [host] [string] specify hostname
83+
--port <port> [number] specify port
84+
--open [path] [boolean | string] open browser on startup
85+
--cors [boolean] enable CORS
86+
--strictPort [boolean] exit if specified port is already in use
87+
--force [boolean] force the optimizer to ignore the cache and re-bundle
88+
--experimentalBundle [boolean] use experimental full bundle mode (this is highly experimental)
89+
--base <path> [string] public base path (default: /)
90+
-l, --logLevel <level> [string] info | warn | error | silent
91+
--clearScreen [boolean] allow/disable clear screen when logging
92+
-d, --debug [feat] [string | boolean] show debug logs
93+
-f, --filter <filter> [string] filter debug logs
94+
-m, --mode <mode> [string] set env mode
95+
-h, --help Display this message
9696
9797
Examples:
9898
vp dev

crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/command_fmt_help/snapshots/command_fmt_help.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ Usage: vp fmt [PATH]... [OPTIONS]
1010
Format code.
1111
Options are forwarded to Oxfmt.
1212
13-
Arguments:
14-
[PATH]... Files, directories, or glob patterns (default: current directory)
13+
Available positional items:
14+
[PATH]... Single file, path or list of paths. Glob patterns are also supported. (Be sure to quote them, otherwise your shell may expand them before passing.) Exclude patterns with `!` prefix like `'!**/fixtures/*.js'` are also supported. If not provided, current working directory is used.
1515
1616
Mode Options:
17-
--stdin-filepath <PATH> Specify the file name used to infer the parser for stdin
17+
--stdin-filepath=PATH Specify the file name to use to infer which parser to use
1818
1919
Output Options:
20-
--write Format and write files in place
21-
--check Check whether files are formatted and show statistics
20+
--write Format and write files in place (default)
21+
--check Check if files are formatted, also show statistics
2222
--list-different List files that would be changed
2323
2424
Ignore Options:
25-
--ignore-path <PATH> Path to an ignore file; may be specified multiple times
26-
--with-node-modules Format files in node_modules, which are skipped by default
25+
--ignore-path=PATH Path to ignore file(s). Can be specified multiple times. If not specified, .gitignore and .prettierignore in the current directory are used.
26+
--with-node-modules Format code in node_modules directory (skipped by default)
2727
2828
Runtime Options:
29-
--no-error-on-unmatched-pattern Do not exit with an error when the pattern is unmatched
30-
--threads <INT> Number of threads to use; set to 1 to use one CPU core
29+
--no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
30+
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core.
3131
32-
Options:
33-
-h, --help Print help information
32+
Available options:
33+
-h, --help Prints help information
3434
3535
Examples:
3636
vp fmt
@@ -50,27 +50,27 @@ Usage: vp fmt [PATH]... [OPTIONS]
5050
Format code.
5151
Options are forwarded to Oxfmt.
5252
53-
Arguments:
54-
[PATH]... Files, directories, or glob patterns (default: current directory)
53+
Available positional items:
54+
[PATH]... Single file, path or list of paths. Glob patterns are also supported. (Be sure to quote them, otherwise your shell may expand them before passing.) Exclude patterns with `!` prefix like `'!**/fixtures/*.js'` are also supported. If not provided, current working directory is used.
5555
5656
Mode Options:
57-
--stdin-filepath <PATH> Specify the file name used to infer the parser for stdin
57+
--stdin-filepath=PATH Specify the file name to use to infer which parser to use
5858
5959
Output Options:
60-
--write Format and write files in place
61-
--check Check whether files are formatted and show statistics
60+
--write Format and write files in place (default)
61+
--check Check if files are formatted, also show statistics
6262
--list-different List files that would be changed
6363
6464
Ignore Options:
65-
--ignore-path <PATH> Path to an ignore file; may be specified multiple times
66-
--with-node-modules Format files in node_modules, which are skipped by default
65+
--ignore-path=PATH Path to ignore file(s). Can be specified multiple times. If not specified, .gitignore and .prettierignore in the current directory are used.
66+
--with-node-modules Format code in node_modules directory (skipped by default)
6767
6868
Runtime Options:
69-
--no-error-on-unmatched-pattern Do not exit with an error when the pattern is unmatched
70-
--threads <INT> Number of threads to use; set to 1 to use one CPU core
69+
--no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
70+
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core.
7171
72-
Options:
73-
-h, --help Print help information
72+
Available options:
73+
-h, --help Prints help information
7474
7575
Examples:
7676
vp fmt
@@ -90,27 +90,27 @@ Usage: vp fmt [PATH]... [OPTIONS]
9090
Format code.
9191
Options are forwarded to Oxfmt.
9292
93-
Arguments:
94-
[PATH]... Files, directories, or glob patterns (default: current directory)
93+
Available positional items:
94+
[PATH]... Single file, path or list of paths. Glob patterns are also supported. (Be sure to quote them, otherwise your shell may expand them before passing.) Exclude patterns with `!` prefix like `'!**/fixtures/*.js'` are also supported. If not provided, current working directory is used.
9595
9696
Mode Options:
97-
--stdin-filepath <PATH> Specify the file name used to infer the parser for stdin
97+
--stdin-filepath=PATH Specify the file name to use to infer which parser to use
9898
9999
Output Options:
100-
--write Format and write files in place
101-
--check Check whether files are formatted and show statistics
100+
--write Format and write files in place (default)
101+
--check Check if files are formatted, also show statistics
102102
--list-different List files that would be changed
103103
104104
Ignore Options:
105-
--ignore-path <PATH> Path to an ignore file; may be specified multiple times
106-
--with-node-modules Format files in node_modules, which are skipped by default
105+
--ignore-path=PATH Path to ignore file(s). Can be specified multiple times. If not specified, .gitignore and .prettierignore in the current directory are used.
106+
--with-node-modules Format code in node_modules directory (skipped by default)
107107
108108
Runtime Options:
109-
--no-error-on-unmatched-pattern Do not exit with an error when the pattern is unmatched
110-
--threads <INT> Number of threads to use; set to 1 to use one CPU core
109+
--no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
110+
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core.
111111
112-
Options:
113-
-h, --help Print help information
112+
Available options:
113+
-h, --help Prints help information
114114
115115
Examples:
116116
vp fmt
@@ -130,27 +130,27 @@ Usage: vp fmt [PATH]... [OPTIONS]
130130
Format code.
131131
Options are forwarded to Oxfmt.
132132
133-
Arguments:
134-
[PATH]... Files, directories, or glob patterns (default: current directory)
133+
Available positional items:
134+
[PATH]... Single file, path or list of paths. Glob patterns are also supported. (Be sure to quote them, otherwise your shell may expand them before passing.) Exclude patterns with `!` prefix like `'!**/fixtures/*.js'` are also supported. If not provided, current working directory is used.
135135
136136
Mode Options:
137-
--stdin-filepath <PATH> Specify the file name used to infer the parser for stdin
137+
--stdin-filepath=PATH Specify the file name to use to infer which parser to use
138138
139139
Output Options:
140-
--write Format and write files in place
141-
--check Check whether files are formatted and show statistics
140+
--write Format and write files in place (default)
141+
--check Check if files are formatted, also show statistics
142142
--list-different List files that would be changed
143143
144144
Ignore Options:
145-
--ignore-path <PATH> Path to an ignore file; may be specified multiple times
146-
--with-node-modules Format files in node_modules, which are skipped by default
145+
--ignore-path=PATH Path to ignore file(s). Can be specified multiple times. If not specified, .gitignore and .prettierignore in the current directory are used.
146+
--with-node-modules Format code in node_modules directory (skipped by default)
147147
148148
Runtime Options:
149-
--no-error-on-unmatched-pattern Do not exit with an error when the pattern is unmatched
150-
--threads <INT> Number of threads to use; set to 1 to use one CPU core
149+
--no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
150+
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core.
151151
152-
Options:
153-
-h, --help Print help information
152+
Available options:
153+
-h, --help Prints help information
154154
155155
Examples:
156156
vp fmt

0 commit comments

Comments
 (0)