Use CI like travis and appveyor for build and upload libraries bundles..
I often see dist
folder in repositories with builded JS library. Of course it helpful for people because they can download builded library without building on their machine, but this feature adds support complexity. I opened prebuild-ci for myself and think that is a great idea! So I decide made same for dist
folders.
Add build-jslib-ci
to your "test"
script or CI configuration, like this:
"scripts": {
"test": "tape test/**/*.js && build-jslib-ci"
}
Also configure your CI environments to set the environment variable GITHUB_TOKEN
to your upload token.
Then, whenever a CI job passes and updates "version"
in the module's package.json
, the bundles for the current release will be uploaded to GitHub.
Thank you Julian Gruber for prebuild-ci
MIT