Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed May 8, 2019
1 parent 2e18b9b commit 2a3837f
Show file tree
Hide file tree
Showing 24 changed files with 2,154 additions and 872 deletions.
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
# [0.4.0](https://github.com/rafamel/kpo/compare/v0.3.0...v0.4.0) (2019-05-08)


### Bug Fixes

* **core:** uses cache relative to options.id for children and tasks ([dc9e645](https://github.com/rafamel/kpo/commit/dc9e645))
* **core/options:** fixes setters; doesn't call initialize on set on get; rolls back to using object ([05b6308](https://github.com/rafamel/kpo/commit/05b6308))
* **deps:** moves slimconf to devDependencies ([5e3c765](https://github.com/rafamel/kpo/commit/5e3c765))
* **public/exec:** fixes stream commands to match current globals management ([5600b8e](https://github.com/rafamel/kpo/commit/5600b8e))
* **utils/terminate-children:** replaces ps-manager w/ terminate-children; actually sents kill signal ([30dac3a](https://github.com/rafamel/kpo/commit/30dac3a))


### Code Refactoring

* **public, commands:** removes internal kpo commands from public, moves them to commands ([7acaea6](https://github.com/rafamel/kpo/commit/7acaea6))


### Features

* **bin:** adds exits hook to manage child processes termination ([85b4ef8](https://github.com/rafamel/kpo/commit/85b4ef8))
* **bin:** strips out -- fromk logged command when no arguments are passed after it ([3df0061](https://github.com/rafamel/kpo/commit/3df0061))
* **bin, core:** explicitly calls initialize: ensures initialization has always happened -at least o ([b887980](https://github.com/rafamel/kpo/commit/b887980))
* **bin, utils/exec:** uses exits to control spawned processes; exits w/ code 1 for signals ([572f5fe](https://github.com/rafamel/kpo/commit/572f5fe))
* **core, utils:** uses globals to manage core and options state; removes unused utils ([f2674d9](https://github.com/rafamel/kpo/commit/f2674d9))
* **core/scope:** uses only children names to identify childre; removes matcher from IChild ([685d023](https://github.com/rafamel/kpo/commit/685d023))
* **globals:** adds globals ([b1e8f44](https://github.com/rafamel/kpo/commit/b1e8f44))
* **globals:** doesn't pollute global when process is not kpo owned ([de56134](https://github.com/rafamel/kpo/commit/de56134))
* **globals; utils:** globals manages environment variables; places version range validation in utils ([ba9d3d2](https://github.com/rafamel/kpo/commit/ba9d3d2))
* **public:** removes public options; kpo file, when js, should also export an options and scripts o ([1508fc4](https://github.com/rafamel/kpo/commit/1508fc4))
* **utils:** adds guardian ([5b5e698](https://github.com/rafamel/kpo/commit/5b5e698))
* **utils/cache:** allows for getId to be null or return string or number types ([fad3fd6](https://github.com/rafamel/kpo/commit/fad3fd6))
* **utils/env-manager:** adds environment variables manager ([442029b](https://github.com/rafamel/kpo/commit/442029b))
* **utils/env-manager:** adds get, set, and default methods ([b83c138](https://github.com/rafamel/kpo/commit/b83c138))
* **utils/env-manager:** adds purePaths; updates initial; exports initialized manager as default ([4c27842](https://github.com/rafamel/kpo/commit/4c27842))
* **utils/errors:** uses source as message when it's a string ([bbf86d2](https://github.com/rafamel/kpo/commit/bbf86d2))
* **utils/exec:** doesn't reset paths; doesn't add paths unless options.cwd exists ([fe9da49](https://github.com/rafamel/kpo/commit/fe9da49))
* duck types errors to avoid issues w/ different instances; removes redundant error normalizatio ([97f2f8e](https://github.com/rafamel/kpo/commit/97f2f8e))
* errors out on tasks, core, and spawned processes calls if exit has already been triggered ([201dc7a](https://github.com/rafamel/kpo/commit/201dc7a))
* **utils/exec, core/exec:** uses child_process spawn and fork in order to manage child processes in ([19467fa](https://github.com/rafamel/kpo/commit/19467fa))
* **utils/logger:** prefixes messages w/ level and app name ([05fce07](https://github.com/rafamel/kpo/commit/05fce07))
* **utils/paths:** adds getPaths ([eda621b](https://github.com/rafamel/kpo/commit/eda621b))
* **utils/ps-manager:** adds child processes manager ([c90f121](https://github.com/rafamel/kpo/commit/c90f121))
* **utils/ps-manager:** can kill processes for all children of a process ([1157ff3](https://github.com/rafamel/kpo/commit/1157ff3))


### BREAKING CHANGES

* **public, commands:** run, list, raise, and stream are no longer exported
* **public:** doesn't further export options(); kpo file should have a scripts and options key
containing an object, even when a js file; kpo file can't export a default function



# [0.3.0](https://github.com/rafamel/kpo/compare/v0.2.0...v0.3.0) (2019-05-05)


Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

427 changes: 131 additions & 296 deletions docs/globals.html

Large diffs are not rendered by default.

31 changes: 5 additions & 26 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>kpo 0.3.0</title>
<title>kpo 0.4.0</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/main.css">
Expand All @@ -22,7 +22,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="index.html" class="title">kpo 0.3.0</a>
<a href="index.html" class="title">kpo 0.4.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -54,7 +54,7 @@
<a href="globals.html">Globals</a>
</li>
</ul>
<h1> kpo 0.3.0</h1>
<h1> kpo 0.4.0</h1>
</div>
</div>
</header>
Expand Down Expand Up @@ -191,9 +191,6 @@ <h3 id="kpo-cmd-aliased-kpo-"><code>kpo :cmd</code> - aliased <code>kpo :</code>
<li class=" tsd-kind-interface">
<a href="interfaces/ifswriteoptions.html" class="tsd-kind-icon">IFs<wbr>Write<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="interfaces/ilistoptions.html" class="tsd-kind-icon">IList<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="interfaces/imultiexecoptions.html" class="tsd-kind-icon">IMulti<wbr>Exec<wbr>Options</a>
</li>
Expand All @@ -212,9 +209,6 @@ <h3 id="kpo-cmd-aliased-kpo-"><code>kpo :cmd</code> - aliased <code>kpo :</code>
<li class=" tsd-kind-interface">
<a href="interfaces/iparalleloptions.html" class="tsd-kind-icon">IParallel<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="interfaces/iraiseoptions.html" class="tsd-kind-icon">IRaise<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="interfaces/iscopeoptions.html" class="tsd-kind-icon">IScope<wbr>Options</a>
</li>
Expand Down Expand Up @@ -248,9 +242,6 @@ <h3 id="kpo-cmd-aliased-kpo-"><code>kpo :cmd</code> - aliased <code>kpo :</code>
<li class=" tsd-kind-type-alias">
<a href="globals.html#tscriptfn" class="tsd-kind-icon">TScript<wbr>Fn</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="globals.html#tstreamoptions" class="tsd-kind-icon">TStream<wbr>Options</a>
</li>
<li class=" tsd-kind-variable">
<a href="globals.html#parallel" class="tsd-kind-icon">parallel</a>
</li>
Expand All @@ -273,10 +264,10 @@ <h3 id="kpo-cmd-aliased-kpo-"><code>kpo :cmd</code> - aliased <code>kpo :</code>
<a href="globals.html#json" class="tsd-kind-icon">json</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#line" class="tsd-kind-icon">line</a>
<a href="globals.html#kpo" class="tsd-kind-icon">kpo</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#list" class="tsd-kind-icon">list</a>
<a href="globals.html#line" class="tsd-kind-icon">line</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#log" class="tsd-kind-icon">log</a>
Expand All @@ -287,21 +278,12 @@ <h3 id="kpo-cmd-aliased-kpo-"><code>kpo :cmd</code> - aliased <code>kpo :</code>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#move" class="tsd-kind-icon">move</a>
</li>
<li class=" tsd-kind-function">
<a href="globals.html#options" class="tsd-kind-icon">options</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#raise" class="tsd-kind-icon">raise</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#remove" class="tsd-kind-icon">remove</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#rm" class="tsd-kind-icon">rm</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#run" class="tsd-kind-icon">run</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#rw" class="tsd-kind-icon">rw</a>
</li>
Expand All @@ -311,9 +293,6 @@ <h3 id="kpo-cmd-aliased-kpo-"><code>kpo :cmd</code> - aliased <code>kpo :</code>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#silent" class="tsd-kind-icon">silent</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#stream" class="tsd-kind-icon">stream</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="globals.html#write" class="tsd-kind-icon">write</a>
</li>
Expand Down
131 changes: 124 additions & 7 deletions docs/interfaces/iclioptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ICliOptions | kpo 0.3.0</title>
<title>ICliOptions | kpo 0.4.0</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
Expand All @@ -22,7 +22,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">kpo 0.3.0</a>
<a href="../index.html" class="title">kpo 0.4.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -109,7 +109,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> directory</h3>
<div class="tsd-signature tsd-kind-icon">directory<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/0e96323/src/types.ts#L128">types.ts:128</a></li>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/2e18b9b/src/types.ts#L125">types.ts:125</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -125,7 +125,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> env</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="ioptions.html">IOptions</a>.<a href="ioptions.html#env">env</a></p>
<ul>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/0e96323/src/types.ts#L73">types.ts:73</a></li>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/2e18b9b/src/types.ts#L70">types.ts:70</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -140,7 +140,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> file</h3>
<div class="tsd-signature tsd-kind-icon">file<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/0e96323/src/types.ts#L124">types.ts:124</a></li>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/2e18b9b/src/types.ts#L121">types.ts:121</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -156,7 +156,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> log</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="ioptions.html">IOptions</a>.<a href="ioptions.html#log">log</a></p>
<ul>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/0e96323/src/types.ts#L81">types.ts:81</a></li>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/2e18b9b/src/types.ts#L78">types.ts:78</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -172,7 +172,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> silent</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="ioptions.html">IOptions</a>.<a href="ioptions.html#silent">silent</a></p>
<ul>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/0e96323/src/types.ts#L77">types.ts:77</a></li>
<li>Defined in <a href="https://github.com/rafamel/kpo/blob/2e18b9b/src/types.ts#L74">types.ts:74</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -217,6 +217,123 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> silent</h3>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-interface">
<a href="iconfirmoptions.html" class="tsd-kind-icon">IConfirm<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="iexecoptions.html" class="tsd-kind-icon">IExec<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="ifsoptions.html" class="tsd-kind-icon">IFs<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="ifswriteoptions.html" class="tsd-kind-icon">IFs<wbr>Write<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="imultiexecoptions.html" class="tsd-kind-icon">IMulti<wbr>Exec<wbr>Options</a>
</li>
<li class=" tsd-kind-interface tsd-has-type-parameter">
<a href="ioftype.html" class="tsd-kind-icon">IOf<wbr>Type</a>
</li>
<li class=" tsd-kind-interface">
<a href="ioptions.html" class="tsd-kind-icon">IOptions</a>
</li>
<li class=" tsd-kind-interface">
<a href="ipackageoptions.html" class="tsd-kind-icon">IPackage<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="iparallel.html" class="tsd-kind-icon">IParallel</a>
</li>
<li class=" tsd-kind-interface">
<a href="iparalleloptions.html" class="tsd-kind-icon">IParallel<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="iscopeoptions.html" class="tsd-kind-icon">IScope<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="iscripts.html" class="tsd-kind-icon">IScripts</a>
</li>
<li class=" tsd-kind-interface tsd-is-not-exported">
<a href="iscriptsarray.html" class="tsd-kind-icon">IScripts<wbr>Array</a>
</li>
<li class=" tsd-kind-interface">
<a href="iselectoptions.html" class="tsd-kind-icon">ISelect<wbr>Options</a>
</li>
<li class=" tsd-kind-interface">
<a href="iseries.html" class="tsd-kind-icon">ISeries</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="../globals.html#tchildrendefinition" class="tsd-kind-icon">TChildren<wbr>Definition</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="../globals.html#tcopyfilterfn" class="tsd-kind-icon">TCopy<wbr>Filter<wbr>Fn</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="../globals.html#tcoreoptions" class="tsd-kind-icon">TCore<wbr>Options</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="../globals.html#tlogger" class="tsd-kind-icon">TLogger</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="../globals.html#tscript" class="tsd-kind-icon">TScript</a>
</li>
<li class=" tsd-kind-type-alias">
<a href="../globals.html#tscriptfn" class="tsd-kind-icon">TScript<wbr>Fn</a>
</li>
<li class=" tsd-kind-variable">
<a href="../globals.html#parallel" class="tsd-kind-icon">parallel</a>
</li>
<li class=" tsd-kind-variable">
<a href="../globals.html#series" class="tsd-kind-icon">series</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#confirm" class="tsd-kind-icon">confirm</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#copy" class="tsd-kind-icon">copy</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#ensure" class="tsd-kind-icon">ensure</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#exists" class="tsd-kind-icon">exists</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#json" class="tsd-kind-icon">json</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#kpo" class="tsd-kind-icon">kpo</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#line" class="tsd-kind-icon">line</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#log" class="tsd-kind-icon">log</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#mkdir" class="tsd-kind-icon">mkdir</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#move" class="tsd-kind-icon">move</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#remove" class="tsd-kind-icon">remove</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#rm" class="tsd-kind-icon">rm</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#rw" class="tsd-kind-icon">rw</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#select" class="tsd-kind-icon">select</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#silent" class="tsd-kind-icon">silent</a>
</li>
<li class=" tsd-kind-function tsd-is-not-exported">
<a href="../globals.html#write" class="tsd-kind-icon">write</a>
</li>
</ul>
</nav>
</div>
Expand Down
Loading

0 comments on commit 2a3837f

Please sign in to comment.