prettier / prettier-browser-extension

Prettier Browser Extension

Home Page:https://chrome.google.com/webstore/detail/prettier/fbcfnmplppajblbmdehballiekfgdkhp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add scripts for updating the version

lipis opened this issue · comments

commented

It should

  • update the version (patch, minor, major) in package.json and manifest.json
  • commit the changes
  • create a new tag with that version
  • push the changes to GitHub

The first three are built into yarn version. Then you just need to push with your preferred git client.

commented

but not the manifest.json.. We need have scripts like:

yarn release:patch
yarn release:minor
yarn release:major

Ah I misunderstood, good point. I wonder if we can hook onto these scripts like with postinstall. Also Mozilla's web-ext tool may help automate this, otherwise it's not too difficult to edit a JSON file with Node scripts.

commented

Nothing fancy.. my idea was to have node scripts anyway.

This is how I’m syncing package.json version with manifest, https://github.com/felixmosh/10bis-chrome-extension/blob/master/webpack.config.js#L109 maybe can be helpful