Open Sourcing Your Stuff
How to create an Open Source JavaScript Library
Kent C. Dodds
Utah
wife, 4 kids, & a dog
PayPal, Inc.

Please Stand...

if you are able ❤️ ♿️

Thanks Azure Advocates!
Diversity Scholarship Sponsors
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

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

Let's
Get
STARTED!


Let's get started...
Identify the component
for open sourcing

Create the new Project


npm init

create your package.json
Copy the needed files

from your project
npm publish

npm install

and add the module dep
Create the GitHub repo

Create the git repo

git init && git remote
Community
You are not an island



ESLint & Jest

setup your project's tests
Build
Write modern JS!

CI
Run tests, linting, and build for every PR

done!



Resources

Thank you!

Open Sourcing Your Stuff
By Kent C. Dodds
Open Sourcing Your Stuff
How to write an Open Source JavaScript Library
- 6,194