Open Sourcing Your Stuff

How to create an Open Source JavaScript Library

Kent C. Dodds


1 wife, 3 kids

PayPal, Inc.



Please Stand...

What this talk is not

  • An explanation of all of the benefits of open sourcing
  • Everything you need to know to maintain an open source project

What this talk is

  • Identifying a good candidate in a project for open sourcing
  • Extracting it to a solid open source project
  • Pushing the library to a GitHub org
  • Publishing the library on npm
  • Replacing the custom project code with a library dependency

Let's get started...

Identify the component

for open sourcing

Create the new Project

Create the GitHub repo

Create the git repo

git init && git remote

Copy the needed files

from your project

Alter the files

so they can stand on their own

npm init

create your package.json

karma init

setup your project's tests

npm publish

and git tag && git push

npm install

and add the module dep


Resources... Series:

"How to Write an Open Source JavaScript Library"


"How to Distribute Your AngularJS Module"

Thank You!

Open Sourcing Your Stuff

By Kent C. Dodds

Open Sourcing Your Stuff

How to write an Open Source JavaScript Library

  • 937
Loading comments...

More from Kent C. Dodds