GMOD / jbrowse-plugin-template

Template to quickly start a new JBrowse 2 plugin
https://jbrowse.org/
Apache License 2.0
4 stars 0 forks source link

Add pre- and post- version processing which aids yarn publish of plugin to npm #5

Closed cmdcolin closed 3 years ago

cmdcolin commented 3 years ago

This adds a couple things seen while trying to release to npm

Basically takes a lightweight approach to what is in @GMOD/bam 1) It does not run the build step during yarn publish, so now preversion: runs yarn build 2) It does a clean using rimraf 3) It does clean with prebuild step 4) With postversion it pushes back to github, also what is in @gmod/bam

cmdcolin commented 3 years ago

Note that without these, running yarn publish would not even run a build from my experience

cmdcolin commented 3 years ago

Moved build to postversion so the correct version is encoded into the binary (xref #4 )