How to Write an Open Source JavaScript Library
Course on egghead by Kent C. Dodds
- 1 h 25 min
- LengthVideo runtime
- Free
- Price modelListed as free
- 23
- Lessons
- 4.8
- Rating out of 54 ratings on egghead
- Apr 2016
- Published19 Apr 2016
About this course
Publishing a JavaScript library for public use requires some extra steps. You need to think about how people will use the library. From end users, to contributors your library now has a variety of people outside of yourself potentially making use of the code that you've released into the wild. From Github and npm, to releasing beta versions, semantic versioning, code coverage, continuous integration, and providing your library with a solid set of unit tests, there are a ton of things to learn. This series will guide you through a set of steps to publish a JavaScript open source library. You might also enjoy this article about contributing to open source.
What it covers
- 1Introduction to How to Write an Open Source JavaScript Library
- 2Setting up GitHub
- 3Configuring npm and creating a package.json
- 4Creating the library and adding dependencies
- 5Pushing to GitHub
- 6Publishing to npm
- 7Releasing a version to GitHub
- 8Releasing a new version to npm
- 9Publishing a beta version
- 10Setting up Unit Testing with Mocha and Chai
- 11Unit Testing with Mocha and Chai
- 12Automating Releases with semantic-release
- 13Writing conventional commits with commitizen
- 14Committing a new feature with commitizen
- 15Automatically Releasing with TravisCI
- 16Automatically running tests before commits with ghooks
- 17Adding code coverage recording with Istanbul
- 18Adding code coverage checking
- 19Add code coverage reporting
- 20Adding badges to your README
- 21Adding ES6 Support
- 22Adding ES6 Support to Tests using Mocha and Babel
- 23Limit Built Branches on Travis
Similar JavaScript courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.