-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathsnap.txt
More file actions
290 lines (254 loc) · 18.9 KB
/
snap.txt
File metadata and controls
290 lines (254 loc) · 18.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
> vite lib -h # lib help message
tsdown/<semver>
Usage:
$ tsdown [...files]
Commands:
[...files] Bundle files
migrate Migrate from tsup to tsdown
For more info, run any command with the `--help` flag:
$ tsdown --help
$ tsdown migrate --help
Options:
-c, --config <filename> Use a custom config file
--config-loader <loader> Config loader to use: auto, native, unconfig (default: auto)
--no-config Disable config file (default: true)
-f, --format <format> Bundle format: esm, cjs, iife, umd (default: esm)
--clean Clean output directory, --no-clean to disable
--external <module> Mark dependencies as external
--minify Minify output
--debug [feat] Show debug logs
--target <target> Bundle target, e.g "es2015", "esnext"
-l, --logLevel <level> Set log level: info, warn, error, silent
--fail-on-warn Fail on warnings (default: true)
-d, --out-dir <dir> Output directory (default: dist)
--treeshake Tree-shake bundle (default: true)
--sourcemap Generate source map (default: false)
--shims Enable cjs and esm shims (default: false)
--platform <platform> Target platform (default: node)
--dts Generate dts files
--publint Enable publint (default: false)
--attw Enable Are the types wrong integration (default: false)
--unused Enable unused dependencies check (default: false)
-w, --watch [path] Watch mode
--ignore-watch <path> Ignore custom paths in watch mode
--from-vite [vitest] Reuse config from Vite or Vitest
--report Size report (default: true)
--env.* <value> Define compile-time env variables
--on-success <command> Command to run on success
--copy <dir> Copy files to output dir
--public-dir <dir> Alias for --copy, deprecated
--tsconfig <tsconfig> Set tsconfig path
--unbundle Unbundle mode
-W, --workspace [dir] Enable workspace mode
-F, --filter <pattern> Filter workspace packages, e.g. /regex/ or substring
--exports Generate export-related metadata for package.json (experimental)
-h, --help Display this message
-v, --version Display version number
> vite fmt -h # fmt help message
Usage: [--check | --list-different] [PATH]...
Output Options
--check Check mode - check if files are formatted
--list-different List mode - list files that would be changed
Miscellaneous
--no-error-on-unmatched-pattern Do not exit with error when pattern is unmatched
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core
Available positional items:
PATH Single file, single path or list of paths. If not provided, current
working directory is used.
Available options:
-h, --help Prints help information
-V, --version Prints version information
> vite lint -h # lint help message
Usage: [-c=<./.oxlintrc.json>] [PATH]...
Basic Configuration
-c, --config=<./.oxlintrc.json> Oxlint configuration file (experimental)
* only `.json` extension is supported
* you can use comments in configuration files.
* tries to be compatible with the ESLint v8's format
--tsconfig=<./tsconfig.json> TypeScript `tsconfig.json` path for reading path alias and
project references for import plugin
--init Initialize oxlint configuration with default values
Allowing / Denying Multiple Lints
Accumulate rules and categories from left to right on the command-line.
For example `-D correctness -A no-debugger` or `-A all -D no-debugger`.
The categories are:
* `correctness` - code that is outright wrong or useless (default).
* `suspicious` - code that is most likely wrong or useless.
* `pedantic` - lints which are rather strict or have occasional false positives.
* `style` - code that should be written in a more idiomatic way.
* `nursery` - new lints that are still under development.
* `restriction` - lints which prevent the use of language and library features.
* `all` - all the categories listed above except nursery. Does not enable plugins
automatically.
-A, --allow=NAME Allow the rule or category (suppress the lint)
-W, --warn=NAME Deny the rule or category (emit a warning)
-D, --deny=NAME Deny the rule or category (emit an error)
Enable Plugins
--disable-unicorn-plugin Disable unicorn plugin, which is turned on by default
--disable-oxc-plugin Disable oxc unique rules, which is turned on by default
--disable-typescript-plugin Disable TypeScript plugin, which is turned on by default
--import-plugin Enable the experimental import plugin and detect ESM problems. It is
recommended to use along side with the `--tsconfig` option.
--react-plugin Enable react plugin, which is turned off by default
--jsdoc-plugin Enable the experimental jsdoc plugin and detect JSDoc problems
--jest-plugin Enable the Jest plugin and detect test problems
--vitest-plugin Enable the Vitest plugin and detect test problems
--jsx-a11y-plugin Enable the JSX-a11y plugin and detect accessibility problems
--nextjs-plugin Enable the Next.js plugin and detect Next.js problems
--react-perf-plugin Enable the React performance plugin and detect rendering performance
problems
--promise-plugin Enable the promise plugin and detect promise usage problems
--node-plugin Enable the node plugin and detect node usage problems
--regex-plugin Enable the regex plugin and detect regex usage problems
--vue-plugin Enable the vue plugin and detect vue usage problems
Fix Problems
--fix Fix as many issues as possible. Only unfixed issues are reported in
the output
--fix-suggestions Apply auto-fixable suggestions. May change program behavior.
--fix-dangerously Apply dangerous fixes and suggestions.
Ignore Files
--ignore-path=PATH Specify the file to use as your .eslintignore
--ignore-pattern=PAT Specify patterns of files to ignore (in addition to those in
.eslintignore)
--no-ignore Disables excluding of files from .eslintignore files, --ignore-path
flags and --ignore-pattern flags
Handle Warnings
--quiet Disable reporting on warnings, only errors are reported
--deny-warnings Ensure warnings produce a non-zero exit code
--max-warnings=INT Specify a warning threshold, which can be used to force exit with an
error status if there are too many warning-level rule violations in
your project
Output
-f, --format=ARG Use a specific output format. Possible values: `checkstyle`,
`default`, `github`, `gitlab`, `json`, `junit`, `stylish`, `unix`
Miscellaneous
--silent Do not display any diagnostics
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core
--print-config This option outputs the configuration to be used. When present, no
linting is performed and only config-related options are valid.
Inline Configuration Comments
--report-unused-disable-directives Report directive comments like `// eslint-disable-line`
when no errors would have been reported on that line anyway.
--report-unused-disable-directives-severity=SEVERITY Same as
`--report-unused-disable-directives`, but allows you to specify the
severity level of the reported errors. Only one of these two options
can be used at a time.
Available positional items:
PATH Single file, single path or list of paths
Available options:
--rules list all the rules that are currently registered
--disable-nested-config Disables the automatic loading of nested configuration files.
--type-aware Enables rules that require type information.
-h, --help Prints help information
-V, --version Prints version information
> vite build -h # build help message
vite/<semver>
Usage:
$ vite build [root]
Options:
--target <target> [string] transpile target (default: 'baseline-widely-available')
--outDir <dir> [string] output directory (default: dist)
--assetsDir <dir> [string] directory under outDir to place assets in (default: assets)
--assetsInlineLimit <number> [number] static asset base64 inline threshold in bytes (default: 4096)
--ssr [entry] [string] build specified entry for server-side rendering
--sourcemap [output] [boolean | "inline" | "hidden"] output source maps for build (default: false)
--minify [minifier] [boolean | "terser" | "esbuild"] enable/disable minification, or specify minifier to use (default: esbuild)
--manifest [name] [boolean | string] emit build manifest json
--ssrManifest [name] [boolean | string] emit ssr manifest json
--emptyOutDir [boolean] force empty outDir when it's outside of root
-w, --watch [boolean] rebuilds when modules have changed on disk
--app [boolean] same as `builder: {}`
-c, --config <file> [string] use specified config file
--base <path> [string] public base path (default: /)
-l, --logLevel <level> [string] info | warn | error | silent
--clearScreen [boolean] allow/disable clear screen when logging
--configLoader <loader> [string] use 'bundle' to bundle the config with esbuild, or 'runner' (experimental) to process it on the fly, or 'native' (experimental) to load using the native runtime (default: bundle)
-d, --debug [feat] [string | boolean] show debug logs
-f, --filter <filter> [string] filter debug logs
-m, --mode <mode> [string] set env mode
-h, --help Display this message
> vite test -h # test help message
vitest/<semver>
WARN: no options were found for your subcommands so we printed the whole output
Usage:
$ vitest [...filters]
Commands:
run [...filters]
related [...filters]
watch [...filters]
dev [...filters]
bench [...filters]
init <project>
list [...filters]
[...filters]
For more info, run any command with the `--help` flag:
$ vitest run --help
$ vitest related --help
$ vitest watch --help
$ vitest dev --help
$ vitest bench --help
$ vitest init --help
$ vitest list --help
$ vitest --help
$ vitest --help --expand-help
Options:
-v, --version Display version number
-r, --root <path> Root path
-c, --config <path> Path to config file
-u, --update Update snapshot
-w, --watch Enable watch mode
-t, --testNamePattern <pattern> Run tests with full names matching the specified regexp pattern
--dir <path> Base directory to scan for the test files
--ui Enable UI
--open Open UI automatically (default: !process.env.CI)
--api [port] Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204. Use '--help --api' for more info.
--silent [value] Silent console output from tests. Use 'passed-only' to see logs from failing tests only.
--hideSkippedTests Hide logs for skipped tests
--reporter <name> Specify reporters (default, blob, verbose, dot, json, tap, tap-flat, junit, tree, hanging-process, github-actions)
--outputFile <filename/-s> Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters (example: --outputFile.tap=./tap.txt)
--coverage Enable coverage report. Use '--help --coverage' for more info.
--mode <name> Override Vite mode (default: test or benchmark)
--isolate Run every test file in isolation. To disable isolation, use --no-isolate (default: true)
--globals Inject apis globally
--dom Mock browser API with happy-dom
--browser <name> Run tests in the browser. Equivalent to --browser.enabled (default: false). Use '--help --browser' for more info.
--pool <pool> Specify pool, if not running in the browser (default: forks)
--execArgv <option> Pass additional arguments to node process when spawning worker_threads or child_process.
--vmMemoryLimit <limit> Memory limit for VM pools. If you see memory leaks, try to tinker this value.
--fileParallelism Should all test files run in parallel. Use --no-file-parallelism to disable (default: true)
--maxWorkers <workers> Maximum number or percentage of workers to run tests in
--environment <name> Specify runner environment, if not running in the browser (default: node)
--passWithNoTests Pass when no tests are found
--logHeapUsage Show the size of heap for each test when running in node
--allowOnly Allow tests and suites that are marked as only (default: !process.env.CI)
--dangerouslyIgnoreUnhandledErrors Ignore any unhandled errors that occur
--shard <shards> Test suite shard to execute in a format of <index>/<count>
--changed [since] Run tests that are affected by the changed files (default: false)
--sequence <options> Options for how tests should be sorted. Use '--help --sequence' for more info.
--inspect [[host:]port] Enable Node.js inspector (default: <semver>.1:9229)
--inspectBrk [[host:]port] Enable Node.js inspector and break before the test starts
--testTimeout <timeout> Default timeout of a test in milliseconds (default: 5000). Use 0 to disable timeout completely.
--hookTimeout <timeout> Default hook timeout in milliseconds (default: 10000). Use 0 to disable timeout completely.
--bail <number> Stop test execution when given number of tests have failed (default: 0)
--retry <times> Retry the test specific number of times if it fails (default: 0)
--diff <path> DiffOptions object or a path to a module which exports DiffOptions object. Use '--help --diff' for more info.
--exclude <glob> Additional file globs to be excluded from test
--expandSnapshotDiff Show full diff when snapshot fails
--disableConsoleIntercept Disable automatic interception of console logging (default: false)
--typecheck Enable typechecking alongside tests (default: false). Use '--help --typecheck' for more info.
--project <name> The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: --project=1 --project=2. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern.
--slowTestThreshold <threshold> Threshold in milliseconds for a test or suite to be considered slow (default: 300)
--teardownTimeout <timeout> Default timeout of a teardown function in milliseconds (default: 10000)
--cache Enable cache. Use '--help --cache' for more info.
--maxConcurrency <number> Maximum number of concurrent tests in a suite (default: 5)
--expect Configuration options for expect() matches. Use '--help --expect' for more info.
--printConsoleTrace Always print console stack traces
--includeTaskLocation Collect test and suite locations in the location property
--attachmentsDir <dir> The directory where attachments from context.annotate are stored in (default: .vitest-attachments)
--run Disable watch mode
--no-color Removes colors from the console output (default: true)
--clearScreen Clear terminal screen when re-running tests during watch mode (default: true)
--configLoader <loader> Use bundle to bundle the config with esbuild or runner (experimental) to process it on the fly. This is only available in vite version <semver> and above. (default: bundle)
--standalone Start Vitest without running tests. Tests will be running only on change. This option is ignored when CLI file filters are passed. (default: false)
--mergeReports [path] Path to a blob reports directory. If this options is used, Vitest won't run any tests, it will only report previously recorded tests
-h, --help Display this message