Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bracketSpacing": false,
"printWidth": 100,
"semi": true,
"singleQuote": false,
"tabWidth": 1,
"trailingComma": "none",
"useTabs": true,
"arrowParens": "always"
}
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
},
"homepage": "https://github.com/runem/web-component-analyzer#readme",
"dependencies": {
"custom-elements-manifest": "^1.0.0",
"fast-glob": "^3.2.2",
"ts-simple-type": "2.0.0-next.0",
"typescript": "^4.4.3",
Expand Down
3 changes: 2 additions & 1 deletion src/cli/analyze/analyze-cli-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const analyzeCliCommand: CliCommand = async (config: AnalyzerCliConfig):
`
!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!
The custom-elements.json format is for experimental purposes. You can expect changes to this format.
Please follow and contribute to the discussion at:
Please follow and contribute to the discussion at:
- https://github.com/webcomponents/custom-elements-json
- https://github.com/w3c/webcomponents/issues/776
!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!
Expand All @@ -42,6 +42,7 @@ Please follow and contribute to the discussion at:
if (config.outDir == null && config.outFile == null && config.outFiles == null) {
switch (config.format) {
case "json2":
case "custom-elements-manifest":
// "json2" will need to output everything at once
return "console_bulk";
default:
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ o {tagname}: The element's tag name`,
})
.option("format", {
describe: `Specify output format`,
choices: ["md", "markdown", "json", "json2", "vscode"],
choices: ["md", "markdown", "json", "json2", "vscode", "custom-elements-manifest"],
nargs: 1,
alias: "f"
})
Expand Down
Loading