Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom elements manifest #219

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
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