You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds an optional `description` string field to wireit script
configurations, allowing developers to document what each script does.
- schema.json: adds `description` property with markdownDescription for
IDE autocomplete/hover support
- src/config.ts: adds `description: string | undefined` to
BaseScriptConfig
- src/analyzer.ts: adds #processDescription() method and wires it into
script config parsing
- src/test/json-schema.test.ts: adds test cases for valid/invalid values
- src/test/util/package-json.ts: adds description to test PackageJson type
Closes#1015
Copy file name to clipboardExpand all lines: schema.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@
8
8
"markdownDescription": "The wireit config for the npm script with this name.\n\nThe npm script should just run `wireit` with no args and its actual command should be put in the `command` property of this object.\n\nFor more info see: https://github.com/google/wireit#cleaning-output",
9
9
"additionalProperties": true,
10
10
"properties": {
11
+
"description": {
12
+
"markdownDescription": "A human-readable description of what this script does.\n\nFor example:\n\n```json\n\"description\": \"Compile TypeScript sources to JavaScript\"\n```",
13
+
"type": "string"
14
+
},
11
15
"clean": {
12
16
"markdownDescription": "By default, `output` files are deleted before the command is run.\n\nSet `clean` to false to prevent this.\n\nSome commands, like `tsc --build`, have their own incremental run logic and only write those output files that have changed. In that case, it can be beneficial to only delete output files when one of the input files has been deleted. In that case, set `clean` to \"if-file-deleted\".\n\nFor more info see: https://github.com/google/wireit#cleaning-output",
0 commit comments