# What is the expected way to add code to a package in the metadata directory

**URL:** <https://discourse.julialang.org/t/what-is-the-expected-way-to-add-code-to-a-package-in-the-metadata-directory/4301>\
**Category:** General Usage\
**Tags:** package\
**Created:** [June 16, 2017, 11:55am UTC](https://discourse.julialang.org/t/what-is-the-expected-way-to-add-code-to-a-package-in-the-metadata-directory/4301 "2017-06-16T11:55:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jackels](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Jackels](https://discourse.julialang.org/u/Jackels)\
**Post date:** [June 16, 2017, 11:55am UTC](https://discourse.julialang.org/t/what-is-the-expected-way-to-add-code-to-a-package-in-the-metadata-directory/4301/1 "2017-06-16T11:55:13Z")

</div>

I can use Pkgdev.generate to make a repository. Now what is the expected way to put code into that and how to tell git to use it? Manually copy-pasting stuff in there and manually telling git to use it? Or is there some kind of parameter I can use with Pkgdev.generate to tell which directory contains my source and why directory contains my tests?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [June 16, 2017, 11:59am UTC](https://discourse.julialang.org/t/what-is-the-expected-way-to-add-code-to-a-package-in-the-metadata-directory/4301/2 "2017-06-16T11:59:15Z")

</div>

I think you’d benefit from watching this great video: [Developing and Editing Julia Packages - YouTube](https://www.youtube.com/watch?v=tx8DRc7_c9I)

---

<div class="post-metadata">

**Author:** ![Jackels](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Jackels](https://discourse.julialang.org/u/Jackels)\
**Post date:** [June 16, 2017, 12:18pm UTC](https://discourse.julialang.org/t/what-is-the-expected-way-to-add-code-to-a-package-in-the-metadata-directory/4301/3 "2017-06-16T12:18:30Z")

</div>

Thank you, but I would like some official documentation. The devs cleary had some kind of workflow in mind.

I did not watch the whole video, but in the end all he does is copy-paste the code around and git commits it all manually.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [June 16, 2017, 12:19pm UTC](https://discourse.julialang.org/t/what-is-the-expected-way-to-add-code-to-a-package-in-the-metadata-directory/4301/4 "2017-06-16T12:19:19Z")

</div>

As you wish.

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [June 16, 2017, 12:34pm UTC](https://discourse.julialang.org/t/what-is-the-expected-way-to-add-code-to-a-package-in-the-metadata-directory/4301/5 "2017-06-16T12:34:28Z")

</div>

So, did you read the docs?

Also, maybe of interest

> [@ANN: PackageGenerator.jl](https://discourse.julialang.org/t/ann-packagegenerator-jl/3300):
>
> Generate packages with bells and whistles. These include: a matching github repository an activated repository on travis an appveyor project generated documentation that automatically syncs to changes on github includes doctests as part of your package testing suite Please let you know if you run into any issues/have any suggestions [https://github.com/bramtayl/PackageGenerator.jl](https://github.com/bramtayl/PackageGenerator.jl)
