Skip to content

fanatid/build-jslib-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prebuild-ci

NPM Package Standard - JavaScript Style Guide

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

About

Use CI for build and upload js libraries bundles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published