Alec Mather
1 min readApr 28, 2021

--

This is completely up to you, just depends on whether or not you want the compiled code or the source code to live in your repo. Typically I keep the original code (anything I wrote in ES6 syntax BEFORE compiling it - aka the "lib" folder) in the github, and ignore the compiled code. This is just to keep the repo slim, because if i wanna fork it somewhere else, I can just recompile it after I've pulled in the repo.

That being said, I've also been in situations where I needed the compiled code to live directly in the repo (although this is more rare). For example, I once had a free tier server on AWS that took forever to compile the code because it was so slow. So I compiled the code before I pushed it to github, that way the compiled code could be pulled directly into the server.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Alec Mather
Alec Mather

Written by Alec Mather

Developer 💻 || Writer 📝

Responses (1)

Write a response