Skip to content
JS

How to Write an Open Source JavaScript Library

Course on egghead by Kent C. Dodds

View on egghead (opens in a new tab)
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

Description from egghead

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

23 lessons
  1. 1Introduction to How to Write an Open Source JavaScript Library
  2. 2Setting up GitHub
  3. 3Configuring npm and creating a package.json
  4. 4Creating the library and adding dependencies
  5. 5Pushing to GitHub
  6. 6Publishing to npm
  7. 7Releasing a version to GitHub
  8. 8Releasing a new version to npm
  9. 9Publishing a beta version
  10. 10Setting up Unit Testing with Mocha and Chai
  11. 11Unit Testing with Mocha and Chai
  12. 12Automating Releases with semantic-release
  13. 13Writing conventional commits with commitizen
  14. 14Committing a new feature with commitizen
  15. 15Automatically Releasing with TravisCI
  16. 16Automatically running tests before commits with ghooks
  17. 17Adding code coverage recording with Istanbul
  18. 18Adding code coverage checking
  19. 19Add code coverage reporting
  20. 20Adding badges to your README
  21. 21Adding ES6 Support
  22. 22Adding ES6 Support to Tests using Mocha and Babel
  23. 23Limit Built Branches on Travis

Similar JavaScript courses

  1. A Beginner's Guide to the Google Maps API

    Educative · Educative · 33 lessons · Nov 2024

    Beginner1 h 24 minFree
    Educative33Nov 2024
  2. Intermediate1 h 20 min
    CourseraApr 2021
  3. Facebook Login and the Facebook Graph API

    Educative · Alvin Lee · 14 lessons · Apr 2022

    Beginner1 h 30 minSubscription
    Educative14Apr 2022
  4. Beginner1 h 30 min
    CourseraMar 2021
  5. Learn About JSON with JavaScript

    Coursera · Harrison Kong · Jul 2021

    Beginner1 h 30 min
    CourseraJul 2021
  6. Cycle.js Fundamentals

    egghead · André Staltz · 21 lessons · 5.0 from 2 ratings · Jan 2016

    1 h 32 minFree
    egghead215.0 (2)Jan 2016
  7. Calculator Project: JavaScript

    Master.dev · Brian Holt · 14 lessons · Sept 2019

    1 h 14 minSubscription
    Master.dev14Sept 2019
  8. Regular Expressions for Programmers

    Educative · Yash Gupta · 25 lessons · Oct 2026

    Beginner1 h 40 minSubscription
    Educative25Oct 2026

A hyphen means the provider's catalogue does not state the value.

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.

    Compare