# How to start writing a new Julia package?

**URL:** <https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864>\
**Category:** General Usage\
**Tags:** package, github\
**Created:** [March 23, 2017, 5:13pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864 "2017-03-23T17:13:22Z")\
**Posts on this page:** 8\
**Page:** 3

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [March 25, 2017, 6:03pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/41 "2017-03-25T18:03:10Z")

</div>

> [@sbohor3](#):
>
> Yes, I have installed all the packages needed for my package.Still the same problem.

Did you make sure you did `using OtherPackage` in the module?

> [@sbohor3](#):
>
> However, when I cloned the package from Github to another computer. I see my package folder has .jl extension on it. Is that how it should be?

I don’t think it matters, but it shouldn’t have the `.jl` extension.

> [@sbohor3](#):
>
> Also, do I need to clone the package to ~\v0.5? Can I clone it to another location?

It needs to be in your load path. I think there is a way to change it but I’m not sure.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [March 25, 2017, 6:03pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/42 "2017-03-25T18:03:40Z")

</div>

Is there a repo that I can look at? I am sure this would be much easier if I could see what it looks like right now.

---

<div class="post-metadata">

**Author:** ![sbohor3](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sbohor3](https://discourse.julialang.org/u/sbohor3)\
**Post date:** [March 25, 2017, 6:09pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/43 "2017-03-25T18:09:45Z")

</div>

@Tero_Frondelius: I tried that one too. My account has 2FA enabled. It did not work as intended. Thanks.

---

<div class="post-metadata">

**Author:** ![sbohor3](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sbohor3](https://discourse.julialang.org/u/sbohor3)\
**Post date:** [March 25, 2017, 6:57pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/44 "2017-03-25T18:57:35Z")

</div>

> [@ChrisRackauckas](#):
>
> Is there a repo that I can look at?

Here it is: [https://github.com/sbohora/AreaUnderCurves.jl](https://github.com/sbohora/AreaUnderCurves.jl)

Thanks.

---

<div class="post-metadata">

**Author:** ![bramtayl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bramtayl/32/3614_2.png) [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Post date:** [March 25, 2017, 9:20pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/45 "2017-03-25T21:20:35Z")

</div>

I have a WIP pull request to automate a lot of pckage generation/documentation setup here: [https://github.com/JuliaDocs/Documenter.jl/pull/416](https://github.com/JuliaDocs/Documenter.jl/pull/416)

---

<div class="post-metadata">

**Author:** ![sbohor3](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sbohor3](https://discourse.julialang.org/u/sbohor3)\
**Post date:** [March 25, 2017, 10:39pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/46 "2017-03-25T22:39:31Z")

</div>

@bramtayl: Thanks. Do I need to do anything besides installing `Documenter.jl`?

---

<div class="post-metadata">

**Author:** ![bramtayl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bramtayl/32/3614_2.png) [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Post date:** [March 25, 2017, 10:45pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/47 "2017-03-25T22:45:21Z")

</div>

To use the pull request, you’d need to check out my branch then run Documenter.generate. It would be actually a great help, especially if you want to contribute! It automates a lot, but not all, steps. What operating system are you on?

---

<div class="post-metadata">

**Author:** ![sbohor3](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sbohor3](https://discourse.julialang.org/u/sbohor3)\
**Post date:** [March 26, 2017, 9:07pm UTC](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864/48 "2017-03-26T21:07:43Z")

</div>

I am using Windows. Thanks.

[Previous page](https://discourse.julialang.org/t/how-to-start-writing-a-new-julia-package/2864.md?page=2)
