UNPKG

gluon-cli

Version:

Gluon cli: the gitflow and CI tool

225 lines (112 loc) 6.4 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Component lifecycle using Gluon</title> <link rel="stylesheet" type="text/css" href="../../css/main.css"> <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc=" crossorigin="anonymous"></script> </head> <body> <section class="docs"> <aside> <div class="logoContainer"> <a href="../../index.html"> <img src="../../images/logo.svg" class="logo" /> Gluon </a> </div> <ul class="main_menu"> <li> <h4>General</h4> <a href="../../users/get_started.html">How to install</a> <a href="../../users/get_started010whatis.html">What is gluon?</a> </li> <li> <h4>Tutorials</h4> <ul> <li> <a href="../../users/tutorials/000init.html">Start working with Gluon!</a> </li> <li> <a href="../../users/tutorials/010feature.html">Working with Features</a> </li> <li> <a href="../../users/tutorials/020release.html">The Release process</a> </li> <li> <a href="../../users/tutorials/030hotfix.html">Make a Hotfix</a> </li> <li> <a href="../../users/tutorials/040merger.html">Merging master to develop</a> </li> <li> <a href="../../users/tutorials/050conflicts.html">Resolving conflicts with git</a> </li> <li> <a href="../../users/tutorials/060consolidate.html">Consolidate dependencies of master</a> </li> </ul> </li> <li> <h4>Guides</h4> <ul> <li> <a href="../../users/guides/001versioning.html">Versions between branches</a> </li> <li> <a href="../../users/guides/002readlogoutput.html">Reading log execution of Gluon</a> </li> <li> <a href="../../users/guides/003componentlifecycle.html" class="selected">Component lifecycle using Gluon</a> </li> </ul> </li> <li> <h4>API</h4> <h5>FLOWS</h5> <ul> </ul> <h5>STEPS</h5> <ul> </ul> </li> </ul> </aside> <article> <h1 id="using-gluon-in-component-development-lifecycle">Using <strong>Gluon</strong> in component development lifecycle</h1> <p>We are going to see a very simple example with the component (Cells) context, but consider this example could be use for all the contexts you can imagine.</p> <h2 id="start-working-with-gluon">Start working with Gluon</h2> <p>Go to the root of your component and execute</p> <pre><code>cells init </code></pre><p>If develop not exists will prompt this</p> <pre><code>[10:12:44] git branch develop executed: OK Switched to branch &#39;develop&#39; [10:12:44] git checkout develop executed: OK </code></pre><p>If develop already exists</p> <pre><code>fatal: A branch named &#39;develop&#39; already exists. [10:42:09] git branch develop executed: KO [10:42:09] continue with execution! Switched to branch &#39;develop&#39; Your branch is up-to-date with &#39;origin/develop&#39;. [10:42:09] git checkout develop executed: OK </code></pre><p><strong>Gluon</strong> will check if develop exists, if not it will be created. Anyway <strong>Gluon</strong> will check version file in order to set proper version related to master.</p> <p>The tool will ask for the next release version.</p> <pre><code>? Choose next release change (Use arrow keys) major minor ❯ patch </code></pre><p>If everything is Ok develop will be created with patch version inside version file.</p> <p><strong>IMPORTANT</strong>: Is possible to change new release at any time by executing again cells init.</p> </article> </section> <script type="text/javascript" src="../../js/highlight.pack.js"></script> <script> hljs.initHighlightingOnLoad(); $(function(){ $('.toggle_section').on('click', function(ev) { $(ev.currentTarget).parent('li').toggleClass('open'); }); }); </script> </body> </html>