зеркало из https://github.com/microsoft/just.git
updated documentation with scripts
This commit is contained in:
Родитель
1142b48f5e
Коммит
4edcc65940
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Command line arguments · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>just-task</code> uses the best pirate themed command line argument library ever: <code>yargs</code>, matey! So, rigs get documented pretty much automatically. However, tasks can customize the arguments that are accepted. <code>just-task</code> exposes these via <code>this.argv</code> inside a task function.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Command line arguments · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>just-task</code> uses the best pirate themed command line argument library ever: <code>yargs</code>, matey! So, rigs get documented pretty much automatically. However, tasks can customize the arguments that are accepted. <code>just-task</code> exposes these via <code>this.argv</code> inside a task function.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Command line arguments · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>just-task</code> uses the best pirate themed command line argument library ever: <code>yargs</code>, matey! So, rigs get documented pretty much automatically. However, tasks can customize the arguments that are accepted. <code>just-task</code> exposes these via <code>this.argv</code> inside a task function.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Command line arguments · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>just-task</code> uses the best pirate themed command line argument library ever: <code>yargs</code>, matey! So, rigs get documented pretty much automatically. However, tasks can customize the arguments that are accepted. <code>just-task</code> exposes these via <code>this.argv</code> inside a task function.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Composition of tasks · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Once a project get to be a bit more complex, a build step might consist of multiple sub tasks. This can be achieved with composition. This is the main reason <code>just-task</code> is made. It simplifies the composition of tasks.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Composition of tasks · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Once a project get to be a bit more complex, a build step might consist of multiple sub tasks. This can be achieved with composition. This is the main reason <code>just-task</code> is made. It simplifies the composition of tasks.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Composition of tasks · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Once a project get to be a bit more complex, a build step might consist of multiple sub tasks. This can be achieved with composition. This is the main reason <code>just-task</code> is made. It simplifies the composition of tasks.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Composition of tasks · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Once a project get to be a bit more complex, a build step might consist of multiple sub tasks. This can be achieved with composition. This is the main reason <code>just-task</code> is made. It simplifies the composition of tasks.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Controlling Task Flow with Conditionals · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Sometimes a <code>just-task.js</code> would include tasks that are skipped depending on the arguments that are given. Use a <code>condition()</code> function to decide to run a task or to skip it.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Controlling Task Flow with Conditionals · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Sometimes a <code>just-task.js</code> would include tasks that are skipped depending on the arguments that are given. Use a <code>condition()</code> function to decide to run a task or to skip it.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Controlling Task Flow with Conditionals · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Sometimes a <code>just-task.js</code> would include tasks that are skipped depending on the arguments that are given. Use a <code>condition()</code> function to decide to run a task or to skip it.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Controlling Task Flow with Conditionals · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Sometimes a <code>just-task.js</code> would include tasks that are skipped depending on the arguments that are given. Use a <code>condition()</code> function to decide to run a task or to skip it.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Getting Started with Just ____ · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Getting Started with Just ____ · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive siteNavItemActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Getting Started with Just · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Getting Started with Just · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive siteNavItemActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
@ -27,7 +27,7 @@
|
|||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/doc-start.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Getting Started with Just ____</h1></header><article><div><span><p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/doc-start.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Getting Started with Just</h1></header><article><div><span><p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
<pre><code class="hljs css language-sh">npm i -D just-task
|
||||
</code></pre>
|
||||
<p>Place some task definitions inside <code>just-task.js</code> in your root folder (next to package.json):</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Getting Started with Just ____ · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Getting Started with Just ____ · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive siteNavItemActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Getting Started with Just · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Getting Started with Just · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive siteNavItemActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
@ -27,7 +27,7 @@
|
|||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/doc-start.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Getting Started with Just ____</h1></header><article><div><span><p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/doc-start.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Getting Started with Just</h1></header><article><div><span><p><code>Just</code> is a build task definition library. It stands on the shoulders of two excellent and well tested libraries: undertaker and yargs. We encourage developers to make <code>just</code> available locally instead of installing <code>just</code> as a global tool.</p>
|
||||
<pre><code class="hljs css language-sh">npm i -D just-task
|
||||
</code></pre>
|
||||
<p>Place some task definitions inside <code>just-task.js</code> in your root folder (next to package.json):</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Logging · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>just-task</code> is simple, but it is opinionated. One of the built-in capabilities of <code>just-task</code> is logging. We feel that this is an important enough of a feature to be available by the library.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Logging · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>just-task</code> is simple, but it is opinionated. One of the built-in capabilities of <code>just-task</code> is logging. We feel that this is an important enough of a feature to be available by the library.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Logging · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><code>just-task</code> is simple, but it is opinionated. One of the built-in capabilities of <code>just-task</code> is logging. We feel that this is an important enough of a feature to be available by the library.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Logging · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p><code>just-task</code> is simple, but it is opinionated. One of the built-in capabilities of <code>just-task</code> is logging. We feel that this is an important enough of a feature to be available by the library.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Jest · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the <code>just-scripts</code> library. Similar to the other presets, this task function assumes that you have a <code>jest.config.js</code> at the root of the project.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Jest · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the <code>just-scripts</code> library. Similar to the other presets, this task function assumes that you have a <code>jest.config.js</code> at the root of the project.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts-jest.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Jest</h1></header><article><div><span><p>Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the <code>just-scripts</code> library. Similar to the other presets, this task function assumes that you have a <code>jest.config.js</code> at the root of the project.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { jestTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'test'</span>, jestTask());
|
||||
</code></pre>
|
||||
<p>You can pass in a few options like any another preset tasks in the <code>just-scripts</code> library.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { jestTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
|
||||
const <span class="hljs-keyword">options</span> = {
|
||||
runInBand: <span class="hljs-keyword">true</span>
|
||||
};
|
||||
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'test'</span>, jestTask(<span class="hljs-keyword">options</span>));
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" id="available-options"></a><a href="#available-options" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Available Options</h2>
|
||||
<h3><a class="anchor" aria-hidden="true" id="config"></a><a href="#config" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>config</h3>
|
||||
<p>You can pass in a different <code>jest.config.js</code> file to the <code>jestTask()</code>.</p>
|
||||
<h3><a class="anchor" aria-hidden="true" id="runinband"></a><a href="#runinband" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>runInBand</h3>
|
||||
<p>This causes the <code>jest</code> runner to run the tests in a single thread.</p>
|
||||
<h3><a class="anchor" aria-hidden="true" id="coverage"></a><a href="#coverage" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>coverage</h3>
|
||||
<p>This causes <code>jest</code> to collect coverage information. It is much slower, and therefore is turned OFF by default.</p>
|
||||
<h3><a class="anchor" aria-hidden="true" id="updatesnapshots"></a><a href="#updatesnapshots" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>updateSnapshots</h3>
|
||||
<p>This causes the <code>jestTask()</code> to update snapshots. Configuration of the snapshot location is subject to the <code>jest.config.js</code> file.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/scripts-tslint">tslint preset</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts-ts"><span class="arrow-prev">← </span><span>Typescript</span></a><a class="docs-next button" href="/just-task/docs/scripts-tslint"><span>Typescript Lint</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#available-options">Available Options</a><ul class="toc-headings"><li><a href="#config">config</a></li><li><a href="#runinband">runInBand</a></li><li><a href="#coverage">coverage</a></li><li><a href="#updatesnapshots">updateSnapshots</a></li></ul></li><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Jest · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the <code>just-scripts</code> library. Similar to the other presets, this task function assumes that you have a <code>jest.config.js</code> at the root of the project.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Jest · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the <code>just-scripts</code> library. Similar to the other presets, this task function assumes that you have a <code>jest.config.js</code> at the root of the project.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts-jest.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Jest</h1></header><article><div><span><p>Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the <code>just-scripts</code> library. Similar to the other presets, this task function assumes that you have a <code>jest.config.js</code> at the root of the project.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { jestTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'test'</span>, jestTask());
|
||||
</code></pre>
|
||||
<p>You can pass in a few options like any another preset tasks in the <code>just-scripts</code> library.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { jestTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
|
||||
const <span class="hljs-keyword">options</span> = {
|
||||
runInBand: <span class="hljs-keyword">true</span>
|
||||
};
|
||||
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'test'</span>, jestTask(<span class="hljs-keyword">options</span>));
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" id="available-options"></a><a href="#available-options" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Available Options</h2>
|
||||
<h3><a class="anchor" aria-hidden="true" id="config"></a><a href="#config" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>config</h3>
|
||||
<p>You can pass in a different <code>jest.config.js</code> file to the <code>jestTask()</code>.</p>
|
||||
<h3><a class="anchor" aria-hidden="true" id="runinband"></a><a href="#runinband" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>runInBand</h3>
|
||||
<p>This causes the <code>jest</code> runner to run the tests in a single thread.</p>
|
||||
<h3><a class="anchor" aria-hidden="true" id="coverage"></a><a href="#coverage" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>coverage</h3>
|
||||
<p>This causes <code>jest</code> to collect coverage information. It is much slower, and therefore is turned OFF by default.</p>
|
||||
<h3><a class="anchor" aria-hidden="true" id="updatesnapshots"></a><a href="#updatesnapshots" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>updateSnapshots</h3>
|
||||
<p>This causes the <code>jestTask()</code> to update snapshots. Configuration of the snapshot location is subject to the <code>jest.config.js</code> file.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/scripts-tslint">tslint preset</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts-ts"><span class="arrow-prev">← </span><span>Typescript</span></a><a class="docs-next button" href="/just-task/docs/scripts-tslint"><span>Typescript Lint</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#available-options">Available Options</a><ul class="toc-headings"><li><a href="#config">config</a></li><li><a href="#runinband">runInBand</a></li><li><a href="#coverage">coverage</a></li><li><a href="#updatesnapshots">updateSnapshots</a></li></ul></li><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Typescript · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the <code>just-scripts</code> library.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Typescript · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the <code>just-scripts</code> library.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts-ts.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Typescript</h1></header><article><div><span><p>Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the <code>just-scripts</code> library.</p>
|
||||
<p>Given a library with Typescript source code, it might be desirable to have multiple output formats for different audiences. By default, the <code>tscTask()</code> function looks for the <code>tsconfig.json</code> present in the project root. The preset higher order function can take in an option that overrides compilation options. The Typescript compiler options are passed to the <code>tsc.js</code> script.</p>
|
||||
<p>A list of available options are located at the <a href="http://www.typescriptlang.org/docs/handbook/compiler-options.html">Typescript documentation site</a>. The options passed into the preset function will be passed in as command line arguments as a string.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts'</span>, tscTask());
|
||||
</code></pre>
|
||||
<p>For variety, try having two kinds of output at the same time (built in parallel)</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { parallel } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-task'</span>;
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts:commonjs'</span>, tscTask({ module: <span class="hljs-string">'commonjs'</span> }));
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts:esnext'</span>, tscTask({ module: <span class="hljs-string">'esnext'</span> }));
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts'</span>, parallel(<span class="hljs-string">'ts:commonjs'</span>, <span class="hljs-string">'ts:esnext'</span>));
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/scripts-jest">Jest preset</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts"><span class="arrow-prev">← </span><span>Just Scripts</span></a><a class="docs-next button" href="/just-task/docs/scripts-jest"><span>Jest</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Typescript · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the <code>just-scripts</code> library.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Typescript · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the <code>just-scripts</code> library.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts-ts.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Typescript</h1></header><article><div><span><p>Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the <code>just-scripts</code> library.</p>
|
||||
<p>Given a library with Typescript source code, it might be desirable to have multiple output formats for different audiences. By default, the <code>tscTask()</code> function looks for the <code>tsconfig.json</code> present in the project root. The preset higher order function can take in an option that overrides compilation options. The Typescript compiler options are passed to the <code>tsc.js</code> script.</p>
|
||||
<p>A list of available options are located at the <a href="http://www.typescriptlang.org/docs/handbook/compiler-options.html">Typescript documentation site</a>. The options passed into the preset function will be passed in as command line arguments as a string.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts'</span>, tscTask());
|
||||
</code></pre>
|
||||
<p>For variety, try having two kinds of output at the same time (built in parallel)</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { parallel } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-task'</span>;
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts:commonjs'</span>, tscTask({ module: <span class="hljs-string">'commonjs'</span> }));
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts:esnext'</span>, tscTask({ module: <span class="hljs-string">'esnext'</span> }));
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'ts'</span>, parallel(<span class="hljs-string">'ts:commonjs'</span>, <span class="hljs-string">'ts:esnext'</span>));
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/scripts-jest">Jest preset</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts"><span class="arrow-prev">← </span><span>Just Scripts</span></a><a class="docs-next button" href="/just-task/docs/scripts-jest"><span>Jest</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Typescript Lint · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Typescript is a very popular compiler. But as the amount of code grows, developers need a way to keep the code looking consistent. <code>tslint</code> is the de facto linter for TS code.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Typescript Lint · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Typescript is a very popular compiler. But as the amount of code grows, developers need a way to keep the code looking consistent. <code>tslint</code> is the de facto linter for TS code.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts-tslint.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Typescript Lint</h1></header><article><div><span><p>Typescript is a very popular compiler. But as the amount of code grows, developers need a way to keep the code looking consistent. <code>tslint</code> is the de facto linter for TS code.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tslintTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'tslint'</span>, tslintTask());
|
||||
</code></pre>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts-jest"><span class="arrow-prev">← </span><span>Jest</span></a><a class="docs-next button" href="/just-task/docs/stacks"><span>Just Stacks</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Typescript Lint · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Typescript is a very popular compiler. But as the amount of code grows, developers need a way to keep the code looking consistent. <code>tslint</code> is the de facto linter for TS code.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Typescript Lint · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Typescript is a very popular compiler. But as the amount of code grows, developers need a way to keep the code looking consistent. <code>tslint</code> is the de facto linter for TS code.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts-tslint.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Typescript Lint</h1></header><article><div><span><p>Typescript is a very popular compiler. But as the amount of code grows, developers need a way to keep the code looking consistent. <code>tslint</code> is the de facto linter for TS code.</p>
|
||||
<pre><code class="hljs css language-tsx"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tslintTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
<span class="hljs-keyword">task</span>(<span class="hljs-string">'tslint'</span>, tslintTask());
|
||||
</code></pre>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts-jest"><span class="arrow-prev">← </span><span>Jest</span></a><a class="docs-next button" href="/just-task/docs/stacks"><span>Just Stacks</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just Scripts · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some script functions to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Just Scripts · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some script functions to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Just Scripts</h1></header><article><div><span><p>Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some script functions to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.</p>
|
||||
<blockquote>
|
||||
<p>NOTE: even though <code>just-scripts</code> interacts with <code>typescript</code>, it does not take <code>typescript</code> as a dependency. It assumes that the developers will include that in their own projects. This gives <code>just-scripts</code> the flexibility of targeting many different versions of individual build tools without imposing a version on the consumers.</p>
|
||||
</blockquote>
|
||||
<p>These scripts are coded as higher order task functions. Each of these script functions return a task function to be registered as a task in your own <code>just-task.js</code> like this:</p>
|
||||
<pre><code class="hljs css language-ts"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
task(<span class="hljs-string">'ts'</span>, tscTask());
|
||||
</code></pre>
|
||||
<p>Generally, these higher order functions also take an <code>options</code> argument to generate a specific task function preconfigured according to the options. For example:</p>
|
||||
<pre><code class="hljs css language-ts"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
task(<span class="hljs-string">'ts:commonjs'</span>, tscTask({ <span class="hljs-keyword">module</span>: 'commonjs' }));
|
||||
task('ts:esnext', tscTask({ <span class="hljs-keyword">module</span>: 'esnext' }));
|
||||
</code></pre>
|
||||
<p>Something like this will give you two separate Typescript compilation task functions that produce different kinds of module output format.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/scripts-ts">Typescript</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/thunk"><span class="arrow-prev">← </span><span>Higher Order Task Functions</span></a><a class="docs-next button" href="/just-task/docs/scripts-ts"><span>Typescript</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just Scripts · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some script functions to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Just Scripts · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some script functions to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Scripts</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/scripts.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Just Scripts</h1></header><article><div><span><p>Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some script functions to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.</p>
|
||||
<blockquote>
|
||||
<p>NOTE: even though <code>just-scripts</code> interacts with <code>typescript</code>, it does not take <code>typescript</code> as a dependency. It assumes that the developers will include that in their own projects. This gives <code>just-scripts</code> the flexibility of targeting many different versions of individual build tools without imposing a version on the consumers.</p>
|
||||
</blockquote>
|
||||
<p>These scripts are coded as higher order task functions. Each of these script functions return a task function to be registered as a task in your own <code>just-task.js</code> like this:</p>
|
||||
<pre><code class="hljs css language-ts"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
task(<span class="hljs-string">'ts'</span>, tscTask());
|
||||
</code></pre>
|
||||
<p>Generally, these higher order functions also take an <code>options</code> argument to generate a specific task function preconfigured according to the options. For example:</p>
|
||||
<pre><code class="hljs css language-ts"><span class="hljs-comment">// just-task.js</span>
|
||||
<span class="hljs-keyword">import</span> { tscTask } <span class="hljs-keyword">from</span> <span class="hljs-string">'just-scripts'</span>;
|
||||
task(<span class="hljs-string">'ts:commonjs'</span>, tscTask({ <span class="hljs-keyword">module</span>: 'commonjs' }));
|
||||
task('ts:esnext', tscTask({ <span class="hljs-keyword">module</span>: 'esnext' }));
|
||||
</code></pre>
|
||||
<p>Something like this will give you two separate Typescript compilation task functions that produce different kinds of module output format.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/scripts-ts">Typescript</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/thunk"><span class="arrow-prev">← </span><span>Higher Order Task Functions</span></a><a class="docs-next button" href="/just-task/docs/scripts-ts"><span>Typescript</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just Stacks · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Just also provides what we call &quot;stacks&quot; to complete the workflow of building a repository. Just Stacks are:</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Just Stacks · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Just also provides what we call &quot;stacks&quot; to complete the workflow of building a repository. Just Stacks are:</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Stacks</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/stacks.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Just Stacks</h1></header><article><div><span><p>Just also provides what we call "stacks" to complete the workflow of building a repository. Just Stacks are:</p>
|
||||
<ol>
|
||||
<li>a project generator for single package or monorepo repository</li>
|
||||
<li>a set of scripts to help keep the generated project up-to-date with the template that generated the project</li>
|
||||
</ol>
|
||||
<h2><a class="anchor" aria-hidden="true" id="generate-a-new-project"></a><a href="#generate-a-new-project" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Generate a new project</h2>
|
||||
<p>Just Stack is really easy to create! We have taken care to make this experience as fast as possible. You can create a project in a couple of seconds:</p>
|
||||
<pre><code class="hljs"><span class="hljs-attr">mkdir</span> <span class="hljs-string">someproject</span>
|
||||
<span class="hljs-attr">cd</span> <span class="hljs-string">someproject</span>
|
||||
<span class="hljs-attr">npm</span> <span class="hljs-string">init just</span>
|
||||
</code></pre>
|
||||
<p>This will present you with a choice of several project types. Choose one to get started with a just-stack generated project!</p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts-tslint"><span class="arrow-prev">← </span><span>Typescript Lint</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#generate-a-new-project">Generate a new project</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just Stacks · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>Just also provides what we call &quot;stacks&quot; to complete the workflow of building a repository. Just Stacks are:</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Just Stacks · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>Just also provides what we call &quot;stacks&quot; to complete the workflow of building a repository. Just Stacks are:</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Stacks</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
||||
const headings = document.querySelector('.toc-headings');
|
||||
headings && headings.addEventListener('click', function(event) {
|
||||
if (event.target.tagName === 'A') {
|
||||
document.body.classList.remove('tocActive');
|
||||
}
|
||||
}, false);
|
||||
|
||||
function createToggler(togglerSelector, targetSelector, className) {
|
||||
var toggler = document.querySelector(togglerSelector);
|
||||
var target = document.querySelector(targetSelector);
|
||||
|
||||
if (!toggler) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggler.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
target.classList.toggle(className);
|
||||
};
|
||||
}
|
||||
});
|
||||
</script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://github.com/kenotron/just-task/tree/master/packages/documentation/docs/stacks.md" target="_blank" rel="noreferrer noopener">Edit</a><h1 class="postHeaderTitle">Just Stacks</h1></header><article><div><span><p>Just also provides what we call "stacks" to complete the workflow of building a repository. Just Stacks are:</p>
|
||||
<ol>
|
||||
<li>a project generator for single package or monorepo repository</li>
|
||||
<li>a set of scripts to help keep the generated project up-to-date with the template that generated the project</li>
|
||||
</ol>
|
||||
<h2><a class="anchor" aria-hidden="true" id="generate-a-new-project"></a><a href="#generate-a-new-project" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Generate a new project</h2>
|
||||
<p>Just Stack is really easy to create! We have taken care to make this experience as fast as possible. You can create a project in a couple of seconds:</p>
|
||||
<pre><code class="hljs"><span class="hljs-attr">mkdir</span> <span class="hljs-string">someproject</span>
|
||||
<span class="hljs-attr">cd</span> <span class="hljs-string">someproject</span>
|
||||
<span class="hljs-attr">npm</span> <span class="hljs-string">init just</span>
|
||||
</code></pre>
|
||||
<p>This will present you with a choice of several project types. Choose one to get started with a just-stack generated project!</p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/scripts-tslint"><span class="arrow-prev">← </span><span>Typescript Lint</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#generate-a-new-project">Generate a new project</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Higher Order Task Functions · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>When a project truly gets big enough to have multiple variants of a build, a simple task function might be reused as variants. For example, the <code>just-task-preset</code> package includes useful collection of task functions like <code>tscTask</code>. However, these tasks tend of be very generic. <code>tscTask()</code> is a task function factory. Calling it will generate a task function. But sometimes variations of the same preconfigured task function is needed. We will use a concept called <code>thunk</code> to create a task function that creates a task function on the fly!</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Higher Order Task Functions · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>When a project truly gets big enough to have multiple variants of a build, a simple task function might be reused as variants. For example, the <code>just-task-preset</code> package includes useful collection of task functions like <code>tscTask</code>. However, these tasks tend of be very generic. <code>tscTask()</code> is a task function factory. Calling it will generate a task function. But sometimes variations of the same preconfigured task function is needed. We will use a concept called <code>thunk</code> to create a task function that creates a task function on the fly!</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
@ -47,5 +47,5 @@ task(<span class="hljs-string">'build'</span>, () => tscTask({ <span class="h
|
|||
$ just build --commonjs
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/presets">Just task presets</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/condition"><span class="arrow-prev">← </span><span>Conditionals</span></a><a class="docs-next button" href="/just-task/docs/presets"><span>Task Presets</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
||||
<p>Learn about the <a href="presets.md">Just task presets</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/condition"><span class="arrow-prev">← </span><span>Conditionals</span></a><a class="docs-next button" href="/just-task/docs/scripts"><span>Just Scripts</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Higher Order Task Functions · Just ____</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p>When a project truly gets big enough to have multiple variants of a build, a simple task function might be reused as variants. For example, the <code>just-task-preset</code> package includes useful collection of task functions like <code>tscTask</code>. However, these tasks tend of be very generic. <code>tscTask()</code> is a task function factory. Calling it will generate a task function. But sometimes variations of the same preconfigured task function is needed. We will use a concept called <code>thunk</code> to create a task function that creates a task function on the fly!</p>
|
||||
"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Higher Order Task Functions · Just ____"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="<p>When a project truly gets big enough to have multiple variants of a build, a simple task function might be reused as variants. For example, the <code>just-task-preset</code> package includes useful collection of task functions like <code>tscTask</code>. However, these tasks tend of be very generic. <code>tscTask()</code> is a task function factory. Calling it will generate a task function. But sometimes variations of the same preconfigured task function is needed. We will use a concept called <code>thunk</code> to create a task function that creates a task function on the fly!</p>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Presets</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/presets">Task Presets</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/preset-tslint">Typescript Lint</a></li></ul></div></div></section></div><script>
|
||||
"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive"><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>Basics</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Basics</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/doc-start">Getting Started</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/composition">Composition of tasks</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/logging">Logging</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/args">Command line arguments</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/condition">Conditionals</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/just-task/docs/thunk">Higher Order Task Functions</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Scripts</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts">Just Scripts</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-ts">Typescript</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-jest">Jest</a></li><li class="navListItem"><a class="navItem" href="/just-task/docs/scripts-tslint">Typescript Lint</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Stacks</h3><ul><li class="navListItem"><a class="navItem" href="/just-task/docs/stacks">Just Stacks</a></li></ul></div></div></section></div><script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
createToggler('#navToggler', '#docsNav', 'docsSliderActive');
|
||||
createToggler('#tocToggler', 'body', 'tocActive');
|
||||
|
@ -47,5 +47,5 @@ task(<span class="hljs-string">'build'</span>, () => tscTask({ <span class="h
|
|||
$ just build --commonjs
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about the <a href="/just-task/docs/presets">Just task presets</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/condition"><span class="arrow-prev">← </span><span>Conditionals</span></a><a class="docs-next button" href="/just-task/docs/presets"><span>Task Presets</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
||||
<p>Learn about the <a href="presets.md">Just task presets</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/condition"><span class="arrow-prev">← </span><span>Conditionals</span></a><a class="docs-next button" href="/just-task/docs/scripts"><span>Just Scripts</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -1 +1 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just ____ · The task library that just works</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="The task library that just works"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Just ____ · The task library that just works"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="The task library that just works"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class=""><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div><div class="homeContainer"><div class="homeSplashFade"><div class="wrapper homeWrapper"><div class="inner"><h2 class="projectTitle">Just ____<small>The task library that just works</small></h2><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><img src="/just-task/img/sample.png" srcSet="/just-task/img/sample-2x.png 2x"/></div></div></div><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><div class="pluginWrapper buttonWrapper"><a class="button" href="/just-task/docs/en/doc-start.html" target="_self">Let's Get Started!</a></div></div></div></div></div></div></div></div></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just ____ · The task library that just works</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="The task library that just works"/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Just ____ · The task library that just works"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="The task library that just works"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class=""><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div><div class="homeContainer"><div class="homeSplashFade"><div class="wrapper homeWrapper"><div class="inner"><h2 class="projectTitle">Just ____<small>The task library that just works</small></h2><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><img src="/just-task/img/sample.png" srcSet="/just-task/img/sample.png, /just-task/img/sample-2x.png 2x"/></div></div></div><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><div class="pluginWrapper buttonWrapper"><a class="button" href="/just-task/docs/en/doc-start.html" target="_self">Let's Get Started!</a></div></div></div></div></div></div></div></div></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -1 +1 @@
|
|||
<!DOCTYPE html><html lang=""><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just ____ · The task library that just works</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="The task library that just works"/><meta property="og:title" content="Just ____ · The task library that just works"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="The task library that just works"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class=""><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div><div class="homeContainer"><div class="homeSplashFade"><div class="wrapper homeWrapper"><div class="inner"><h2 class="projectTitle">Just ____<small>The task library that just works</small></h2><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><img src="/just-task/img/sample.png" srcSet="/just-task/img/sample-2x.png 2x"/></div></div></div><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><div class="pluginWrapper buttonWrapper"><a class="button" href="/just-task/docs/doc-start.html" target="_self">Let's Get Started!</a></div></div></div></div></div></div></div></div></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
||||
<!DOCTYPE html><html lang=""><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Just ____ · The task library that just works</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="The task library that just works"/><meta property="og:title" content="Just ____ · The task library that just works"/><meta property="og:type" content="website"/><meta property="og:url" content="https://kenotron.github.io/just-task/index.html"/><meta property="og:description" content="The task library that just works"/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/just-task/img/favicon.png"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/just-task/css/main.css"/></head><body><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/just-task/"><h2 class="headerTitle">Just ____</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class=""><a href="/just-task/docs/doc-start" target="_self">Documentation</a></li><li class=""><a href="/just-task/help" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div><div class="homeContainer"><div class="homeSplashFade"><div class="wrapper homeWrapper"><div class="inner"><h2 class="projectTitle">Just ____<small>The task library that just works</small></h2><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><img src="/just-task/img/sample.png" srcSet="/just-task/img/sample.png, /just-task/img/sample-2x.png 2x"/></div></div></div><div class="section promoSection"><div class="promoRow"><div class="pluginRowBlock"><div class="pluginWrapper buttonWrapper"><a class="button" href="/just-task/docs/doc-start.html" target="_self">Let's Get Started!</a></div></div></div></div></div></div></div></div></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -8,9 +8,10 @@
|
|||
<url> <loc>https://kenotron.github.io/just-task/docs/condition</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/condition" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/doc-start</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/doc-start" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/logging</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/logging" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/preset-jest</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/preset-jest" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/preset-ts</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/preset-ts" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/preset-tslint</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/preset-tslint" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/presets</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/presets" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/scripts-jest</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/scripts-jest" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/scripts-ts</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/scripts-ts" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/scripts-tslint</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/scripts-tslint" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/scripts</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/scripts" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/stacks</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/stacks" /> </url>
|
||||
<url> <loc>https://kenotron.github.io/just-task/docs/thunk</loc> <changefreq>hourly</changefreq> <priority>1.0</priority> <xhtml:link rel="alternate" hreflang="en" href="https://kenotron.github.io/just-task/docs/thunk" /> </url>
|
||||
</urlset>
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
id: doc-start
|
||||
title: Getting Started with Just ____
|
||||
title: Getting Started with Just
|
||||
sidebar_label: Getting Started
|
||||
---
|
||||
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
---
|
||||
id: presets
|
||||
title: Just Task Presets
|
||||
sidebar_label: Task Presets
|
||||
---
|
||||
|
||||
Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some preset tasks to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.
|
||||
|
||||
> NOTE: even though `just-task-preset` interacts with `typescript`, it does not take `typescript` as a dependency. It assumes that the developers will include that in their own projects. This gives `just-task-preset` the flexibility of targeting many different versions of individual build tools without imposing a version on the consumers.
|
||||
|
||||
These presets are coded as higher order task functions. Each of these preset functions return a task function to be registered as a task in your own `just-task.js` like this:
|
||||
|
||||
```ts
|
||||
// just-task.js
|
||||
import { tscTask } from 'just-task-preset';
|
||||
task('ts', tscTask());
|
||||
```
|
||||
|
||||
Generally, these higher order functions also take an `options` argument to generate a specific task function preconfigured according to the options. For example:
|
||||
|
||||
```ts
|
||||
// just-task.js
|
||||
import { tscTask } from 'just-task-preset';
|
||||
task('ts:commonjs', tscTask({ module: 'commonjs' }));
|
||||
task('ts:esnext', tscTask({ module: 'esnext' }));
|
||||
```
|
||||
|
||||
Something like this will give you two separate Typescript compilation task functions that produce different kinds of module output format.
|
||||
|
||||
## Next Steps
|
||||
|
||||
Learn about the [Typescript preset](preset-ts.md)
|
|
@ -1,22 +1,22 @@
|
|||
---
|
||||
id: preset-jest
|
||||
id: scripts-jest
|
||||
title: Jest
|
||||
sidebar_label: Jest
|
||||
---
|
||||
|
||||
Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the `just-task-preset` library. Similar to the other presets, this task function assumes that you have a `jest.config.js` at the root of the project.
|
||||
Jest is one of the most popular testing libraries in the Javascript ecosystem. It is also a preset supported out of the box inside the `just-scripts` library. Similar to the other presets, this task function assumes that you have a `jest.config.js` at the root of the project.
|
||||
|
||||
```tsx
|
||||
// just-task.js
|
||||
import { jestTask } from 'just-task-preset';
|
||||
import { jestTask } from 'just-scripts';
|
||||
task('test', jestTask());
|
||||
```
|
||||
|
||||
You can pass in a few options like any another preset tasks in the `just-task-preset` library.
|
||||
You can pass in a few options like any another preset tasks in the `just-scripts` library.
|
||||
|
||||
```tsx
|
||||
// just-task.js
|
||||
import { jestTask } from 'just-task-preset';
|
||||
import { jestTask } from 'just-scripts';
|
||||
|
||||
const options = {
|
||||
runInBand: true
|
||||
|
@ -45,4 +45,4 @@ This causes the `jestTask()` to update snapshots. Configuration of the snapshot
|
|||
|
||||
## Next Steps
|
||||
|
||||
Learn about the [tslint preset](preset-tslint.md)
|
||||
Learn about the [tslint preset](scripts-tslint.md)
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
id: preset-ts
|
||||
id: scripts-ts
|
||||
title: Typescript
|
||||
sidebar_label: Typescript
|
||||
---
|
||||
|
||||
Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the `just-task-preset` library.
|
||||
Typescript is a very popular compiler that allows developers to use modern ES6 features as well as a very mature typing system. The benefits are so great that it has become of the first presets supported by the `just-scripts` library.
|
||||
|
||||
Given a library with Typescript source code, it might be desirable to have multiple output formats for different audiences. By default, the `tscTask()` function looks for the `tsconfig.json` present in the project root. The preset higher order function can take in an option that overrides compilation options. The Typescript compiler options are passed to the `tsc.js` script.
|
||||
|
||||
|
@ -12,7 +12,7 @@ A list of available options are located at the [Typescript documentation site](h
|
|||
|
||||
```tsx
|
||||
// just-task.js
|
||||
import { tscTask } from 'just-task-preset';
|
||||
import { tscTask } from 'just-scripts';
|
||||
task('ts', tscTask());
|
||||
```
|
||||
|
||||
|
@ -21,7 +21,7 @@ For variety, try having two kinds of output at the same time (built in parallel)
|
|||
```tsx
|
||||
// just-task.js
|
||||
import { parallel } from 'just-task';
|
||||
import { tscTask } from 'just-task-preset';
|
||||
import { tscTask } from 'just-scripts';
|
||||
task('ts:commonjs', tscTask({ module: 'commonjs' }));
|
||||
task('ts:esnext', tscTask({ module: 'esnext' }));
|
||||
task('ts', parallel('ts:commonjs', 'ts:esnext'));
|
||||
|
@ -29,4 +29,4 @@ task('ts', parallel('ts:commonjs', 'ts:esnext'));
|
|||
|
||||
## Next Steps
|
||||
|
||||
Learn about the [Jest preset](preset-jest.md)
|
||||
Learn about the [Jest preset](scripts-jest.md)
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
id: preset-tslint
|
||||
id: scripts-tslint
|
||||
title: Typescript Lint
|
||||
sidebar_label: Typescript Lint
|
||||
---
|
||||
|
@ -8,6 +8,6 @@ Typescript is a very popular compiler. But as the amount of code grows, develope
|
|||
|
||||
```tsx
|
||||
// just-task.js
|
||||
import { tslintTask } from 'just-task-preset';
|
||||
import { tslintTask } from 'just-scripts';
|
||||
task('tslint', tslintTask());
|
||||
```
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
id: scripts
|
||||
title: Just Scripts
|
||||
sidebar_label: Just Scripts
|
||||
---
|
||||
|
||||
Unlike other build libraries, Just strives to be useful from the beginning. You can choose to write your own tasks that call other Node.js tools like Typescript, jest, and webpack. However, Just includes some script functions to get you up and running immediately. The included tasks are enough to have a very productive environment without dictating a certain stack to be used with Just.
|
||||
|
||||
> NOTE: even though `just-scripts` interacts with `typescript`, it does not take `typescript` as a dependency. It assumes that the developers will include that in their own projects. This gives `just-scripts` the flexibility of targeting many different versions of individual build tools without imposing a version on the consumers.
|
||||
|
||||
These scripts are coded as higher order task functions. Each of these script functions return a task function to be registered as a task in your own `just-task.js` like this:
|
||||
|
||||
```ts
|
||||
// just-task.js
|
||||
import { tscTask } from 'just-scripts';
|
||||
task('ts', tscTask());
|
||||
```
|
||||
|
||||
Generally, these higher order functions also take an `options` argument to generate a specific task function preconfigured according to the options. For example:
|
||||
|
||||
```ts
|
||||
// just-task.js
|
||||
import { tscTask } from 'just-scripts';
|
||||
task('ts:commonjs', tscTask({ module: 'commonjs' }));
|
||||
task('ts:esnext', tscTask({ module: 'esnext' }));
|
||||
```
|
||||
|
||||
Something like this will give you two separate Typescript compilation task functions that produce different kinds of module output format.
|
||||
|
||||
## Next Steps
|
||||
|
||||
Learn about the [Typescript](scripts-ts.md)
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
id: stacks
|
||||
title: Just Stacks
|
||||
sidebar_label: Just Stacks
|
||||
---
|
||||
|
||||
Just also provides what we call "stacks" to complete the workflow of building a repository. Just Stacks are:
|
||||
|
||||
1. a project generator for single package or monorepo repository
|
||||
2. a set of scripts to help keep the generated project up-to-date with the template that generated the project
|
||||
|
||||
## Generate a new project
|
||||
|
||||
Just Stack is really easy to create! We have taken care to make this experience as fast as possible. You can create a project in a couple of seconds:
|
||||
|
||||
```
|
||||
mkdir someproject
|
||||
cd someproject
|
||||
npm init just
|
||||
```
|
||||
|
||||
This will present you with a choice of several project types. Choose one to get started with a just-stack generated project!
|
|
@ -18,28 +18,32 @@
|
|||
"sidebar_label": "Conditionals"
|
||||
},
|
||||
"doc-start": {
|
||||
"title": "Getting Started with Just ____",
|
||||
"title": "Getting Started with Just",
|
||||
"sidebar_label": "Getting Started"
|
||||
},
|
||||
"logging": {
|
||||
"title": "Logging",
|
||||
"sidebar_label": "Logging"
|
||||
},
|
||||
"preset-jest": {
|
||||
"scripts-jest": {
|
||||
"title": "Jest",
|
||||
"sidebar_label": "Jest"
|
||||
},
|
||||
"preset-ts": {
|
||||
"scripts-ts": {
|
||||
"title": "Typescript",
|
||||
"sidebar_label": "Typescript"
|
||||
},
|
||||
"preset-tslint": {
|
||||
"scripts-tslint": {
|
||||
"title": "Typescript Lint",
|
||||
"sidebar_label": "Typescript Lint"
|
||||
},
|
||||
"presets": {
|
||||
"title": "Just Task Presets",
|
||||
"sidebar_label": "Task Presets"
|
||||
"scripts": {
|
||||
"title": "Just Scripts",
|
||||
"sidebar_label": "Just Scripts"
|
||||
},
|
||||
"stacks": {
|
||||
"title": "Just Stacks",
|
||||
"sidebar_label": "Just Stacks"
|
||||
},
|
||||
"thunk": {
|
||||
"title": "Higher Order Task Functions",
|
||||
|
@ -52,7 +56,8 @@
|
|||
},
|
||||
"categories": {
|
||||
"Basics": "Basics",
|
||||
"Presets": "Presets"
|
||||
"Scripts": "Scripts",
|
||||
"Stacks": "Stacks"
|
||||
}
|
||||
},
|
||||
"pages-strings": {
|
||||
|
|
|
@ -61,7 +61,10 @@ class HomeSplash extends React.Component {
|
|||
<div className="inner">
|
||||
<ProjectTitle />
|
||||
<PromoSection>
|
||||
<img src={`${siteConfig.baseUrl}img/sample.png`} srcSet={`${siteConfig.baseUrl}img/sample-2x.png 2x`} />
|
||||
<img
|
||||
src={`${siteConfig.baseUrl}img/sample.png`}
|
||||
srcSet={`${siteConfig.baseUrl}img/sample.png, ${siteConfig.baseUrl}img/sample-2x.png 2x`}
|
||||
/>
|
||||
</PromoSection>
|
||||
<PromoSection>
|
||||
<Button href={docUrl('doc-start.html', language)}>Let's Get Started!</Button>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"docs": {
|
||||
"Basics": ["doc-start", "composition", "logging", "args", "condition", "thunk"],
|
||||
"Presets": ["presets", "preset-ts", "preset-jest", "preset-tslint"]
|
||||
"Scripts": ["scripts", "scripts-ts", "scripts-jest", "scripts-tslint"],
|
||||
"Stacks": ["stacks"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -89,3 +89,17 @@ task('async-task-callback', function(cb) {
|
|||
});
|
||||
});
|
||||
```
|
||||
|
||||
# Contributing
|
||||
|
||||
This project welcomes contributions and suggestions. Most contributions require you to agree to a
|
||||
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
|
||||
the rights to use your contribution. For details, visit https://cla.microsoft.com.
|
||||
|
||||
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
|
||||
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
|
||||
provided by the bot. You will only need to do this once across all repos using our CLA.
|
||||
|
||||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
||||
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
||||
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
||||
|
|
Загрузка…
Ссылка в новой задаче