package.json => component.json, component.json => package.json
wilmoore opened this issue · 3 comments
Now that I've actually experienced publishing a component to the component(1) registry and npm and bower (some people are into that, so why not), I'm noticing that better tooling to automate some of the tedium would be nice.
Like, when I bump the version, it's kinda annoying to have to do it in {package,component}.json as well as bump History.md.
I realize that the tool shouldn't do everything for you; however, something to at least convert one json format to the other might be a good idea even if it is only useful for some folks.
I have a tool called component-release
which is on npm. It lets you type component-release 1.0.0
and automatically checks the version number in both component.json and package.json. If the version number in them is lower than the version number you specified it bumps it up (after prompting to check it's ok to do so). Then it npm publishes (if there's a package.json) and git commits, tags and pushes.
P.S. this discussion really belongs in component/component as it's not anything directly to do with the website.
Ah, I'll check out component-release
. And you are right, I should have opened this in the other project. Anyhow, closing in favor of component-release
.