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

Add a cli #598

Open
marcoscaceres opened this issue Jun 17, 2021 · 4 comments
Open

Add a cli #598

marcoscaceres opened this issue Jun 17, 2021 · 4 comments

Comments

@marcoscaceres
Copy link
Member

Maybe we want a separate project for this (-cli) that allows for validation from the command line.

webidl --validate some.webidl

This would be great for CI, to allow Bikeshed document's to be checked for errors (the WebIDL parse/processor in Bikeshed is a bit limited).

@saschanaz
Copy link
Member

Sounds good, but I don't think .webidl works for bikeshed? Does it support extracting idls to separate files?

@marcoscaceres
Copy link
Member Author

yeah, we would need to extract the IDL by some other means (i.e., this would be spec-writing tool agnostic). But that's fine.

@dontcallmedom
Copy link
Member

https://github.com/w3c/reffy/blob/master/src/cli/extract-webidl.js is a tool that extract IDL fragments from specs independently of their authoring tool

@saschanaz
Copy link
Member

https://github.com/saschanaz/webidl-updater/blob/cabc499302214586f84c7186b4497a06793fc977/src/utils/extract-webidl.js is my tweaked version of it for rewriting.

Sounds like it could be useful to have that logic here, probably in a separate package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants