-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
167 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<h1 id="developers-information">Developers information</h1> | ||
<p>Do you want to help with making Chorus even better? Find help below...</p> | ||
<p>This page contains information about getting your dev environment up and running so you can build and test your | ||
changes without the hassle of setting up all the required dependencies.</p> | ||
<h2 id="docker-dev-environment">Docker dev environment</h2> | ||
<p>Included in this repo is a <code>Dockerfile</code> which builds the Chorus 2 dev environment image. If you wanted to develop | ||
<em>without</em> using docker, this is a good reference as to what you need installed on your pc. </p> | ||
<p>If you want to make your live much easier, just install docker then grab the pre-built image from docker hub.</p> | ||
<pre><code>docker pull jez500/chorus2<span class="hljs-attribute">-dev</span>:latest | ||
</code></pre><h3 id="installing-dev-dependencies">Installing dev dependencies</h3> | ||
<p>Once you have the docker dev image, you can use this to do all your development related tasks. The first of these should | ||
be installing all the nodejs/ruby dependencies.</p> | ||
<pre><code>docker run <span class="hljs-attribute">-tiP</span> <span class="hljs-attribute">-v</span> <span class="hljs-string">`pwd`</span>:/app jez500/chorus2<span class="hljs-attribute">-dev</span>:latest <span class="hljs-built_in">.</span>/build<span class="hljs-built_in">.</span>sh install | ||
</code></pre><p>This will run <code>npm install</code> and <code>bundle install</code> inside the dev container.</p> | ||
<p>You should only need to do this once, unless... <code>package.json</code> or <code>Gemfile</code> are updated</p> | ||
<h3 id="building-compiling-the-project">Building/Compiling the project</h3> | ||
<p>If you have made changes to some coffee script or sass, you can build those changes via executing commands inside | ||
the dev container. To get a command line in the container:</p> | ||
<pre><code>docker run <span class="hljs-attribute">-tiP</span> <span class="hljs-attribute">-v</span> <span class="hljs-string">`pwd`</span>:/app jez500/chorus2<span class="hljs-attribute">-dev</span>:latest bash | ||
</code></pre><p>Once inside the dev container, you can do the following:</p> | ||
<h4 id="build">Build</h4> | ||
<p>This will build languages, documentation, js and css.</p> | ||
<pre><code>grunt build | ||
</code></pre><h4 id="watch-for-changes-continuously-build-">Watch for changes (continuously build)</h4> | ||
<p>This will only build js and css.</p> | ||
<pre><code>grunt | ||
</code></pre><h2 id="committing-your-changes">Committing your changes</h2> | ||
<p>As a rule of thumb, you should not commit any compiled files unless you are building a release. Eg. only commit files | ||
in the <code>src</code> folder.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.