WICG starter kit

I’ve put together a “starter kit” for the WICG. It helps get a repository set up with the files you need to get started with editing a spec, etc.


To install it:

npm install wicg

Then go to some directory where you want to start a project (or to an existing repo):

wicg init "My Awesome API"

And follow the prompts.


Would appreciate any feedback and suggestion to improving it.

I slapped it together rather quickly, so it’s still a bit rough… PRs/issues welcomed!


Limitations (wish list)

Currently, it only supports adding a ReSpec document. However, if someone wants to contribute a BikeShed template, I would gladly accept it. Then I can have the program prompt the end-user for which spec processor they would like to use.

I hear it doesn’t work in Windows (Bash). Can’t confirm tho. Can someone check?

1 Like

I’ve now added a simple BikeShed template:

The utility also now prompts for a pre-processor to use, defaulting to ReSpec.

I’d note tho that using an npm script just to generate a Bikeshed template probably isn’t the most useful, since Bikeshed needs Python to run instead. :slight_smile: (Also, bikeshed template > index.bs generates roughly the same thing already.)

I know. We could do better here. The idea is to help people get started by pointing them in the right direction. Writing specs for those that have never done it is going to be really hard - even just getting the right tools in place. The idea is to help minimize a bit of the friction.

Right, but adding an entire build tool (npm) that is used solely to generate a template for something that doesn’t use NPM at all isn’t a great move. Like, even if they’re npm users already, they can’t do anything with that Bikeshed template until they start using Bikeshed. Maybe if the tool also had a function to curl to the API endpoint? Then it would be useful on its own.

True. Good suggestion re-curl’ing… then I guess they can upgrade to a local bikeshed if they need more advanced functionality.