-
Task
-
Resolution:
Postponed
-
Minor
-
-
- Set up an npm "pre-publish" hook that blocks invocation via "npm publish" - see PoC here: https://gist.github.com/sophistifunk/9ebefcc134f47e310adfd3d077fa8c00
- Write a publish script in vanilla js (targeted at Node 5, probably) that does something along the lines of:
- Make sure on master, with nothing unstaged
- Grab latest published version from npm info, increment it and set local version if it's old or has a -foo suffix. (+commit master)
- Clean build
- Create some tag file in /dist documenting current version and commit hash
- Set the magic env var, npm publish
- Git tag published version
- Increment version in package.json, add -snapshot or -unpublished or something like that, and commit master