4.0.4 • Published 11 years ago
publicist v4.0.4
publicist
publicist generates and tags a UMD build for releases of code that may be used in a browser outside of CommonJS. It automates a workaround for dealing with Bower and other package managers that use Git repositories instead of storing code in a registry like NPM. If you commit your builds to master, you:
- pollute your commit history
- spend time fixing PRs where users commit changes to builds
Publicist avoids these issues by tagging commits on a temporary branch. Read more in How It Works
Installing
# globally
$ npm install -g publicist
# locally
$ npm install publicistUsage
$ publish <version | semver-increment>You should add release/ to a .npmignore file to ensure that it is not needlessly published to npm.
How it Works
git checkout master- Update
package.jsonandbower.jsontoversionor increment it bysemver-increment git commitchanges with the message'Release v<version>'git checkouta newrelease-*branch, where*is a random string- Bundle the
mainfile using browserify as standalone (UMD) bundle and output it to a./releasedirectory git committhe bundle with the messagev<version> UMD Bundlegit tagthe release commitgit checkout masterand force-delete the temporary release branch
The end result is a tag that points to a commit that no longer sits on a branch, but will remain in the tree.