build-jslib-ci
v1.0.0
Published
Use CI for build and upload js libraries bundles
Downloads
3
Readme
prebuild-ci
Use CI like travis and appveyor for build and upload libraries bundles..
Motivation
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.
Usage
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.
Creditianals
Thank you Julian Gruber for prebuild-ci
License
MIT