diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js new file mode 100644 index 00000000..2971b48c --- /dev/null +++ b/docs/.vuepress/config.js @@ -0,0 +1,45 @@ +module.exports = { + title: "just ___", + description: "The task library that just works", + base: "/just/", + themeConfig: { + nav: [ + { text: "Home", link: "/" }, + { text: "Guide", link: "/guide/" }, + { text: "Github", link: "https://github.com/microsoft/just" }, + ], + sidebar: [ + { + title: 'Home', // required + path: '/', // optional, link of the title, which should be an absolute path and must exist + }, + { + title: 'Tasks', + path: '/tasks', + collapsable: false, + sidebarDepth: 1, + children: [ '/tasks/composition', '/tasks/logging', '/tasks/args', '/tasks/condition', '/tasks/thunk' ] + }, + { + title: 'Scripts', + path: '/scripts', + collapsable: false, + sidebarDepth: 1, + children: [ '/scripts/typescript', '/scripts/webpack', '/scripts/lint', '/scripts/jest' ] + } + ] + }, + + plugins: [ + [ + "mermaidjs", + { + gantt: { + barHeight: 20, + fontSize: 12, + useWidth: 960, + }, + }, + ], + ], +}; diff --git a/docs/.vuepress/public/.nojekyll b/docs/.vuepress/public/.nojekyll new file mode 100644 index 00000000..33afd9f5 --- /dev/null +++ b/docs/.vuepress/public/.nojekyll @@ -0,0 +1 @@ +Keep \ No newline at end of file diff --git a/docs/.vuepress/styles/palette.styl b/docs/.vuepress/styles/palette.styl new file mode 100644 index 00000000..f60e0f45 --- /dev/null +++ b/docs/.vuepress/styles/palette.styl @@ -0,0 +1,2 @@ +$contentWidth ?= 960px +$accentColor = #000080 \ No newline at end of file diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..b2271ecc --- /dev/null +++ b/docs/README.md @@ -0,0 +1,23 @@ +--- +home: true +# heroImage: /hero.png +heroText: The task library that just works +tagline: A sensible set of task to build, test, and lint your frontend projects +actionText: Get Started → +actionLink: /tasks/ +features: + - title: Flexible + details: 'Unlike create-react-app, just gives sensible defaults but does not hide config files' + - title: Task orchestration + details: Like gulp, just provides parallel() and series() to fine tune task runs + - title: No waiting for latest devDependencies + details: just-scripts knows how to run tools, but it does not prescribe versions of the dependencies - you upgrade at your own timing! + - title: TypeScript suport + details: just-scripts configurations are TypeScript-enabled, so you don't have to have a separate build step to use your build tools + - title: Lightweight task orchestration + details: just-task is a lightweight task orchestrator that has no streaming file system abstraction + - title: Battle tested + details: just is built upon just the right abstraction from the gulp ecosystem, which is used by many repos + +footer: MIT Licensed | Copyright © 2020-present Microsoft +--- diff --git a/docs/docs/assets/failure.png b/docs/assets/failure.png similarity index 100% rename from docs/docs/assets/failure.png rename to docs/assets/failure.png diff --git a/docs/docs/assets/typical.png b/docs/assets/typical.png similarity index 100% rename from docs/docs/assets/typical.png rename to docs/assets/typical.png diff --git a/docs/css/main.css b/docs/css/main.css deleted file mode 100644 index f43a27de..00000000 --- a/docs/css/main.css +++ /dev/null @@ -1 +0,0 @@ -a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}body{color:#24292e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:16px;line-height:1.5;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-wrap:break-word}*{box-sizing:border-box}b,strong{font-weight:600}em,i{font-style:italic}[type=checkbox]{box-sizing:border-box;padding:0}a,a:hover{color:#2e8555;text-decoration:none}a:active,a:hover{outline-width:0}a:not([href]){color:inherit;text-decoration:none}p{margin-bottom:1em;margin-top:0}h1,h2,h3,h4,h5,h6{color:inherit;font-weight:600;line-height:1.25;margin-bottom:16px;margin-top:1.5em}h1{font-size:32px}h2{font-size:24px}h3{font-size:20px}h4{font-size:16px}h5{font-size:14px}h6{font-size:13.6px}ol,ul{margin-bottom:1em;margin-top:0;padding-left:2em}ol ol,ul ol{list-style-type:lower-roman}ol ol,ol ul,ul ol,ul ul{margin-bottom:0;margin-top:0}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}li{word-wrap:break-all}li>p{margin-top:1em}li+li{margin-top:.25em}img{border-style:none;box-sizing:content-box;max-width:100%}img[align=right]{padding-left:1.25em}img[align=left]{padding-right:1.25em}table{border-collapse:collapse;border-spacing:0;display:block;margin-bottom:16px;margin-top:0;overflow:auto;width:100%}table tr{background-color:transparent;border-top:1px solid #dfe2e5}table tr:nth-child(2n){background-color:#f6f8fa}table td,table th{border:1px solid #dfe2e5;padding:6px 13px}table th{background-color:inherit;font-weight:600}table td,table th{color:inherit}blockquote{color:#6a737d;font-size:16px;margin:0 0 16px;padding:0 1em}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}code{background-color:rgba(27,31,35,.05);border-radius:3px;color:inherit;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:85%;margin:0;padding:3.2px 6.4px}pre{margin-bottom:16px}pre code{background-color:transparent;border:0;display:inline;font-size:85%;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0;white-space:pre;word-break:normal;word-wrap:normal}kbd{background-color:#fafbfc;border:1px solid #d1d5da;border-bottom-color:#c6cbd1;border-radius:3px;box-shadow:inset 0 -1px 0 #c6cbd1;color:#444d56;display:inline-block;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:68.75%;line-height:10px;padding:3px 5px;vertical-align:middle}hr{border:1px solid #dfe2e5;box-sizing:content-box;margin:1.5em 0;overflow:hidden;padding:0}hr:after,hr:before{content:"";display:table}hr:after{clear:both}body{background-color:#fff;min-height:100vh;text-rendering:optimizeLegibility}@media only screen and (min-width:736px){body{display:flex;flex-direction:column}}article:after,article:before{content:"";display:table}article:after{clear:both}article>:first-child{margin-top:0}article>:last-child{margin-bottom:0}article iframe,article p img{display:block;margin-left:auto;margin-right:auto;max-width:100%}.anchor{display:block;position:relative;top:-80px}.hash-link{line-height:1;margin-left:-20px;opacity:0;padding-right:4px;transition:opacity .3s}.hash-link:hover{opacity:1!important;transition:none}.hash-link .hash-link-icon{vertical-align:middle}.button{border:1px solid #2e8555;border-radius:3px;color:#2e8555;display:inline-block;font-size:14px;font-weight:400;line-height:1.2em;padding:10px;text-decoration:none!important;text-transform:uppercase;transition:background .3s,color .3s}.button:hover{background:#2e8555;color:#fff}h1:hover .hash-link,h2:hover .hash-link,h3:hover .hash-link,h4:hover .hash-link{opacity:.5;transition:none}blockquote{background-color:rgba(255,229,100,.3);border-left:8px solid #ffe564;padding:15px 30px 15px 15px}.wrapper{margin:0 auto;max-width:1100px;padding:0 20px}.wrapper blockquote>p:first-child{padding-top:0}.center{display:block}.center,.homeContainer{text-align:center}.homeContainer .homeWrapper{padding:2em 10px}.homeContainer .homeWrapper .wrapper{margin:0 auto;max-width:900px;padding:0 20px}.homeContainer .homeWrapper .projectLogo img{height:100px;margin-bottom:0}.homeContainer .homeWrapper #project_title{font-size:300%;letter-spacing:-.08em;line-height:1em;margin-bottom:80px}.homeContainer .homeWrapper #project_tagline{font-size:200%;letter-spacing:-.04em;line-height:1em}.projectLogo{display:none;pointer-events:none}.projectLogo img{height:100px;margin-bottom:0}.projectIntro{margin:40px 0}.projectTitle{color:#2e8555;font-size:250%;line-height:1em}.projectTitle>small{display:block;font-weight:400;font-size:50%;line-height:1em;margin:.7em 0 1.3em}@media only screen and (min-width:480px){.projectTitle{font-size:300%;margin:.3em 0}.projectLogo img{height:200px;margin-bottom:10px}.homeContainer .homeWrapper{padding-left:10px;padding-right:10px}}@media only screen and (min-width:736px){.homeContainer .homeWrapper{position:relative}.homeContainer .homeWrapper #inner{max-width:600px;padding-right:40px}}@media only screen and (min-width:1200px){.homeContainer .homeWrapper #inner{max-width:750px}.homeContainer .homeWrapper .projectLogo{align-items:center;bottom:0;display:flex;justify-content:flex-end;left:0;padding:2em 100px 4em;position:absolute;right:0;top:0}.homeContainer .homeWrapper .projectLogo img{height:100%;max-height:250px}}@media only screen and (min-width:1500px){.homeContainer .homeWrapper #inner{max-width:1100px;padding-bottom:40px;padding-top:40px}.wrapper{max-width:1400px}}.mainContainer{flex:1 1 auto;max-width:100%;padding:40px 0}.mainContainer .wrapper{text-align:left}.mainContainer .wrapper .allShareBlock{padding:10px 0}.mainContainer .wrapper .allShareBlock .pluginBlock{margin:12px 0;padding:0}.mainContainer .wrapper .post{position:relative}.mainContainer .wrapper .post.basicPost{margin-top:30px}.mainContainer .wrapper .post .postHeader{margin-bottom:16px}.mainContainer .wrapper .post .postHeaderTitle{margin-top:0;padding:0}.mainContainer .wrapper .post .postSocialPlugins{padding-top:1em}.mainContainer .wrapper .post .docPagination{background:#2e8555;bottom:0;left:0;position:absolute;right:0}.mainContainer .wrapper .post .docPagination .pager{display:inline-block;width:50%}.mainContainer .wrapper .post .docPagination .pagingNext{float:right;text-align:right}.mainContainer .wrapper .post .docPagination a{border:none;color:#fff;display:block;padding:4px 12px}.mainContainer .wrapper .post .docPagination a:hover{background-color:#f9f9f9;color:#393939}.mainContainer .wrapper .post .docPagination a .pagerLabel{display:inline}.mainContainer .wrapper .post .docPagination a .pagerTitle{display:none}@media only screen and (min-width:480px){.mainContainer .wrapper .post .docPagination a .pagerLabel{display:none}.mainContainer .wrapper .post .docPagination a .pagerTitle{display:inline}}@media only screen and (min-width:1024px){.mainContainer .wrapper .post{display:block}.mainContainer .wrapper .posts .post{width:100%}}.fixedHeaderContainer{background:#2e8555;color:#fff;min-height:50px;padding:8px 0;position:fixed;width:100%;z-index:9999;transform:translateZ(0)}@media only screen and (min-width:1024px){.fixedHeaderContainer{flex-shrink:0}}.fixedHeaderContainer a{align-items:center;border:0;color:#fff;display:flex;flex-flow:row nowrap;height:34px;z-index:10000}.fixedHeaderContainer header{display:flex;flex-flow:row nowrap;position:relative;text-align:left}.fixedHeaderContainer header img{height:100%;margin-right:10px}.fixedHeaderContainer header .headerTitle{font-size:1.25em;margin:0}.fixedHeaderContainer header .headerTitleWithLogo{display:block;font-size:1.25em;line-height:18px;margin:0;position:relative;z-index:9999}.fixedHeaderContainer header h3{color:#fff;font-size:16px;margin:0 0 0 10px;text-decoration:underline}@media (max-width:480px){.headerTitle{font-size:17px}.headerTitleWithLogo{display:none!important}}.promoSection{display:flex;flex-flow:column wrap;font-size:125%;line-height:1.6em;position:relative;z-index:99}.promoSection .promoRow{padding:10px 0}.promoSection .promoRow .pluginWrapper{display:block}.promoSection .promoRow .pluginWrapper.ghStarWrapper,.promoSection .promoRow .pluginWrapper.ghWatchWrapper{height:28px}.promoSection .promoRow .pluginRowBlock{display:flex;flex-wrap:wrap;justify-content:center;margin:0 -2px}.promoSection .promoRow .pluginRowBlock .pluginWrapper{padding:0 2px}.promoSection .promoRow .pluginRowBlock iframe{margin-left:2px;margin-top:5px}input[type=search]{-moz-appearance:none;-webkit-appearance:none}.navSearchWrapper{align-items:center;align-self:center;display:flex;justify-content:center;padding-left:10px;position:absolute;right:10px;top:15px}.navSearchWrapper:before{border:3px solid #e5e5e5;border-radius:50%;content:" ";display:block;height:6px;left:15px;position:absolute;top:50%;transform:translateY(-58%);width:6px;z-index:1}.navSearchWrapper:after{background:#e5e5e5;content:" ";height:7px;left:24px;position:absolute;top:55%;transform:rotate(-45deg);width:3px;z-index:1}.navSearchWrapper .aa-dropdown-menu{background:#f9f9f9;border:3px solid rgba(57,57,57,.25);color:#393939;font-size:14px;left:auto!important;line-height:1.2em;right:0!important}.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--category-header{background:#2e8555;color:#fff;font-size:14px;font-weight:400}.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight{background-color:#2e8555;color:#fff}.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--subcategory-column .algolia-docsearch-suggestion--highlight,.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--title .algolia-docsearch-suggestion--highlight{color:#2e8555}.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion--subcategory-column,.navSearchWrapper .aa-dropdown-menu .algolia-docsearch-suggestion__secondary{border-color:rgba(57,57,57,.3)}input#search_input_react{background-color:rgba(0,0,0,.2);border:none;border-radius:20px;color:#fff;font-size:14px;font-weight:300;line-height:20px;outline:none;padding-left:25px;position:relative;transition:width .5s ease;width:170px}.navSearchWrapper:before{left:24px}.navSearchWrapper:after{left:35px}input#search_input_react:active,input#search_input_react:focus{color:#fff;width:220px}.navigationSlider .slidingNav .navSearchWrapper .algolia-docsearch-footer a{height:auto}@media only screen and (max-width:735px){.navSearchWrapper{width:40%}}input::-webkit-input-placeholder{color:#e5e5e5}input::-moz-placeholder{color:#e5e5e5}input:-ms-input-placeholder{color:#e5e5e5}input::-ms-input-placeholder{color:#e5e5e5}input::placeholder{color:#e5e5e5}.hljs{padding:1.25rem 1.5rem}.gridBlock{padding:0}.gridBlock>*{box-sizing:border-box}.gridBlock .fourByGridBlock img,.gridBlock .threeByGridBlock img,.gridBlock .twoByGridBlock img{max-width:100%}.gridBlock .gridClear{clear:both}@media only screen and (max-width:735px){.gridBlock .fourByGridBlock{flex:1 0 26%}}@media only screen and (min-width:736px){.gridBlock{display:flex;flex-direction:row;flex-wrap:wrap}.gridBlock>*{margin:0 12px}.gridBlock>:first-child{margin-left:0}.gridBlock>:last-child{margin-right:0}.gridBlock .twoByGridBlock{flex:1 0 40%}.gridBlock .threeByGridBlock{flex:1 0 26%}.gridBlock .fourByGridBlock{flex:1 0 20%}h2+.gridBlock{padding-top:20px}}@media only screen and (min-width:1400px){.gridBlock{display:flex;flex-direction:row;flex-wrap:wrap}}.alignCenter{text-align:center}.alignRight{text-align:right}.imageAlignSide{display:flex;flex-flow:row wrap}.blockImage{max-width:730px}.imageAlignSide .blockImage{flex:0 1 500px;max-width:500px}@media only screen and (max-width:735px){.imageAlignSide .blockImage{display:none}}.imageAlignSide .blockContent{flex:1 1}.imageAlignBottom .blockImage{margin:0 auto 20px;max-width:730px}.imageAlignBottom.alignCenter .blockImage{margin-left:auto;margin-right:auto}.imageAlignTop .blockImage{margin-bottom:20px;max-width:80px}.imageAlignTop.alignCenter .blockImage{margin-left:auto;margin-right:auto}.imageAlignRight .blockImage{margin-left:40px}.imageAlignLeft .blockImage{margin-right:40px}.container .gridBlock .blockContent p{padding:0}.container .wrapper .alignCenter h2{text-align:center}.container .wrapper .imageAlignSide h2{text-align:left}.container .wrapper .imageAlignSide p{margin:0 0 40px;max-width:560px}.highlightBackground{background:rgba(153,66,79,.7);color:#fff}.highlightBackground a{font-weight:800}.container.highlightBackground .wrapper h1,.container.highlightBackground .wrapper h2,.container.highlightBackground .wrapper h3,.container.highlightBackground .wrapper h4,.container.highlightBackground .wrapper h5,.highlightBackground a{border-color:#fff;color:#fff}.lightBackground{background:#f7f7f7}.darkBackground{background:grey;color:#fff}.darkBackground a,.darkBackground code{color:#d6b3b8}.container.darkBackground .wrapper h1,.container.darkBackground .wrapper h2,.container.darkBackground .wrapper h3,.container.darkBackground .wrapper h4,.container.darkBackground .wrapper h5{border-color:#fff;color:#fff}.container.paddingAll{padding:40px}.container.paddingBottom{padding-bottom:80px}.container.paddingLeft{padding-left:40px}.container.paddingRight{padding-right:40px}.container.paddingTop{padding-top:80px}@media only screen and (max-width:735px){.container.paddingBottom{padding-bottom:40px}.container.paddingTop{padding-top:20px}}@media only screen and (max-width:1023px){.responsiveList .blockContent{position:relative}.responsiveList .blockContent>div{padding-left:20px}.responsiveList .blockContent:before{content:"\2022";position:absolute}}.navigationSlider .navSlideout{cursor:pointer;padding-top:4px;position:absolute;right:10px;top:0;transition:top .3s;z-index:101}.navigationSlider .slidingNav{bottom:auto;box-sizing:border-box;left:0;position:fixed;right:0;top:0}.navigationSlider .slidingNav.slidingNavActive{height:auto;padding-top:42px;width:300px}.navigationSlider .slidingNav ul{background:#205c3b;box-sizing:border-box;color:#fff;display:flex;flex-wrap:nowrap;list-style:none;margin-top:50px;padding:0;width:100%}.navigationSlider .slidingNav.slidingNavActive ul{display:block}.navigationSlider .slidingNav ul li{flex:1 1 auto;margin:0;text-align:center;white-space:nowrap}.navigationSlider .slidingNav ul li a{align-items:center;box-sizing:border-box;color:#2e8555;color:inherit;display:flex;font-size:.9em;height:auto;height:50px;justify-content:center;margin:0;padding:10px;transition:background-color .3s}.navigationSlider .slidingNav ul li.siteNavGroupActive>a,.navigationSlider .slidingNav ul li.siteNavItemActive>a,.navigationSlider .slidingNav ul li>a:focus,.navigationSlider .slidingNav ul li>a:hover{background-color:#2e8555}.languages-icon{width:20px}#languages-dropdown{pointer-events:none;position:absolute;width:100%}#languages-dropdown.visible{display:flex}#languages-dropdown.hide{display:none}#languages-dropdown-items{background-color:#2e8555;display:flex;flex-direction:column;min-width:120px;pointer-events:all}#languages li{display:block}.navPusher{left:0;min-height:100%;padding-top:100px;position:relative;z-index:99}.singleRowMobileNav.navPusher{padding-top:50px}.navPusher:after{background:rgba(0,0,0,.4);content:"";height:0;opacity:0;position:absolute;right:0;top:0;transition:opacity .5s,width .1s .5s,height .1s .5s;width:0}@media screen and (min-width:1024px){.navPusher{display:flex;flex-direction:column;min-height:calc(100vh - 50px);padding-top:50px}.navPusher,.navPusher>:first-child{flex-grow:1}}.sliderActive .navPusher:after{height:100%;opacity:1;transition:opacity .5s;width:100%;z-index:100}@media only screen and (max-width:1024px){.reactNavSearchWrapper input#search_input_react{background-color:rgba(242,196,178,.25);border:none;border-radius:20px;box-sizing:border-box;color:#393939;font-size:14px;line-height:20px;outline:none;padding-left:38px;position:relative;transition:background-color .2s cubic-bezier(.68,-.55,.265,1.55),width .2s cubic-bezier(.68,-.55,.265,1.55),color .2s ease;width:100%}.reactNavSearchWrapper input#search_input_react:active,.reactNavSearchWrapper input#search_input_react:focus{background-color:#2e8555;color:#fff}.reactNavSearchWrapper .algolia-docsearch-suggestion--subcategory-inline{display:none}.reactNavSearchWrapper>span{width:100%}.reactNavSearchWrapper .aa-dropdown-menu{font-size:12px;line-height:2em;padding:0;border-width:1px;min-width:500px}.reactNavSearchWrapper .algolia-docsearch-suggestion__secondary{border-top:none}.aa-suggestions{min-height:140px;max-height:60vh;-webkit-overflow-scrolling:touch;overflow-y:scroll}#languages-dropdown{left:0;top:50px}#languages-dropdown-items{background-color:#2e8555;display:flex;flex-direction:row}}@media only screen and (min-width:1024px){.navSearchWrapper{padding-left:10px;position:relative;right:auto;top:auto}.reactNavSearchWrapper input#search_input_react{height:100%;padding-top:8px;padding-bottom:8px;padding-left:38px}.navSearchWrapper .algolia-autocomplete{display:block}.navigationSlider{height:34px;margin-left:auto;position:relative}.navigationSlider .navSlideout{display:none}.navigationSlider nav.slidingNav{background:none;height:auto;position:relative;right:auto;top:auto;width:auto}.navigationSlider .slidingNav ul{background:none;display:flex;flex-flow:row nowrap;margin:0;padding:0;width:auto}.navigationSlider .slidingNav ul li a{border:0;color:hsla(0,0%,100%,.8);display:flex;font-size:16px;font-size:1em;font-weight:300;height:32px;line-height:1.2em;margin:0;padding:6px 10px}.navigationSlider .slidingNav ul li.siteNavGroupActive a,.navigationSlider .slidingNav ul li.siteNavItemActive a,.navigationSlider .slidingNav ul li a:hover{color:#fff}}@media only screen and (max-width:735px){.navigationSlider .slidingNav ul{overflow-x:auto}.navigationSlider .slidingNav ul::-webkit-scrollbar{display:none}.reactNavSearchWrapper .aa-dropdown-menu{min-width:400px}}@media only screen and (max-width:475px){.reactNavSearchWrapper .aa-dropdown-menu{min-width:300px}}.docMainWrapper .wrapper{padding-left:0;padding-right:0;padding-top:10px}@media only screen and (min-width:1024px){.docMainWrapper{width:100%}.docMainWrapper>*{margin:0 24px}.docMainWrapper>:first-child{margin-left:0}.docMainWrapper>:last-child{margin-right:0}.docMainWrapper .mainContainer{min-width:0}}.edit-page-link{float:right;font-size:10px;font-weight:400;margin-top:3px;text-decoration:none}@media only screen and (max-width:1023px){.edit-page-link{display:none}}.docLastUpdate{font-size:13px;font-style:italic;margin:20px 0;text-align:right}.docs-prevnext{margin:20px 0}.docs-prevnext:after{clear:both;content:" ";display:table}.docs-next{float:right}.docs-prev{float:left}@media only screen and (max-width:735px){.docs-next{clear:both;float:left}.docs-next,.docs-prev{margin:10px 0}.arrow-next{float:right;margin-left:10px}.arrow-prev{float:left;margin-right:10px}.function-name-prevnext{width:200px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}.hide{display:none}.collapsible{cursor:pointer}.collapsible .arrow{float:right;margin-right:8px;margin-top:-4px;transform:rotate(90deg);transition:transform .2s linear}.collapsible .arrow.rotate{transform:rotate(180deg)}@media only screen and (max-width:1023px){.docsNavContainer{background:#fff;left:0;position:fixed;width:100%;z-index:100}}@media only screen and (min-width:1024px){.docsNavContainer{flex:0 0 240px;height:calc(100vh - 50px);position:-webkit-sticky;position:sticky;overflow-y:auto;top:50px}}.docsSliderActive.docsNavContainer{box-sizing:border-box;height:100%;-webkit-overflow-scrolling:touch;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain;padding-bottom:50px}.docsNavContainer .toc .navBreadcrumb{background-color:#f1f1f1;box-sizing:border-box;display:flex;flex-flow:row nowrap;font-size:12px;height:48px;overflow:hidden;padding:8px 20px}.docsNavContainer .toc .navWrapper{padding:0}@media only screen and (min-width:1024px){.docsNavContainer .toc .navBreadcrumb{display:none}.navBreadcrumb h2{padding:0 10px}.separateOnPageNav .docsNavContainer{flex:0 0 240px}}.navBreadcrumb a,.navBreadcrumb span{border:0;color:#393939}@media only screen and (max-width:735px){.anchor{top:-144px}}@media only screen and (min-width:1024px){.toc{padding:40px 0}}.toc section{padding:0;position:relative}.toc section .navGroups{display:none;padding:48px 20px 60px}.toc .toggleNav{color:#393939;position:relative}.toc .toggleNav .navToggle{cursor:pointer;height:32px;margin-right:10px;position:relative;text-align:left;width:18px}.hamburger-menu{position:absolute;top:6px;width:100%}.line1,.line2,.line3{width:100%;height:3px;background-color:#393939;margin:3px 0;transition:.4s;border-radius:10px}.docsSliderActive .hamburger-menu{top:12px}.docsSliderActive .line1{position:absolute;top:50%;transform:rotate(-45deg)}.docsSliderActive .line2{display:none}.docsSliderActive .line3{position:absolute;top:50%;transform:rotate(45deg)}.toggleNav h2 i{padding:0 4px}.toc .toggleNav .navGroup{margin-bottom:16px}.toc .toggleNav .subNavGroup{margin-bottom:0}.toc .toggleNav .navGroup .navGroupCategoryTitle{color:#393939;font-size:18px;font-weight:500;line-height:1.2em;margin-bottom:8px;margin-top:0}.toc .toggleNav .navGroup .navGroupSubcategoryTitle{color:#393939;font-size:14px;font-weight:500;line-height:1.5;margin-bottom:0;margin-top:0;padding:4px 0}.toc .toggleNav .navGroup .navListItem{margin:0}.toc .toggleNav .navGroup h3 i:not(:empty){box-sizing:border-box;color:rgba(57,57,57,.5);display:inline-block;height:16px;margin-right:10px;text-align:center;transition:color .2s;width:16px}.toc .toggleNav ul{padding:0 8px}.docsSliderActive .toc .toggleNav ul{padding-left:0}.toc .toggleNav ul li{list-style-type:none;padding:0}.toc .toggleNav ul li a{border:none;color:#717171;display:block;font-size:14px;padding:4px 0;transition:color .3s}.toc .toggleNav ul li.navListItemActive a,.toc .toggleNav ul li a:focus,.toc .toggleNav ul li a:hover{color:#2e8555}.docsSliderActive .toc .navBreadcrumb,.tocActive .navBreadcrumb{border-bottom:1px solid #ccc;margin-bottom:20px;position:fixed;width:100%}.toc .toggleNav .navBreadcrumb h2{border:0;flex-grow:1;font-size:16px;font-weight:600;line-height:32px;margin:0;padding:0}.docsSliderActive .toc section .navGroups{display:block;padding-top:60px}.tocToggler{cursor:pointer;height:32px;line-height:32px;margin-right:-10px;padding:0 10px}.icon-toc{box-sizing:border-box;display:inline-block;line-height:normal;position:relative;top:-1px;vertical-align:middle}.icon-toc,.icon-toc:after,.icon-toc:before{background-color:currentColor;border:1px solid;border-radius:50%;box-sizing:border-box;height:4px;width:4px}.icon-toc:after,.icon-toc:before{content:"";position:absolute}.icon-toc:before{left:-1px;top:-7px}.icon-toc:after{left:-1px;top:5px}.tocActive .icon-toc{border-radius:0;height:16px;transform:rotate(45deg);width:3px}.tocActive .icon-toc:before{border-radius:0;height:3px;left:50%;top:50%;transform:translate(-50%,-50%);width:16px}.tocActive .icon-toc:after{content:""}@media only screen and (min-width:1024px){.docMainWrapper{display:flex;flex-flow:row nowrap}.docMainWrapper .wrapper{padding-top:0;padding-left:0;padding-right:0}}.onPageNav{display:none;margin-bottom:40px}.onPageNav::-webkit-scrollbar{width:7px}.onPageNav::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.onPageNav::-webkit-scrollbar-thumb{background:#888;border-radius:10px}.onPageNav::-webkit-scrollbar-thumb:hover{background:#555}.onPageNav a{color:#717171}.onPageNav .toc-headings>li>a.active{font-weight:600}.onPageNav ul{list-style:none}.onPageNav ul li{font-size:12px;line-height:16px;padding-bottom:8px}.onPageNav ul ul{padding:8px 0 0 20px}.onPageNav ul ul li{padding-bottom:5px}@media only screen and (min-width:1024px){.toc section .navGroups{display:block;padding:8px 0 0}.navBreadcrumb h2{padding:0 10px}}@supports ((position: -webkit-sticky) or (position: sticky)){@media only screen and (max-width:1023px){.tocActive .onPageNav{background:#fff;bottom:0;display:block;left:0;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain;padding:0 20px;position:fixed;right:0;top:148px;z-index:10;margin-bottom:0}.tocActive .singleRowMobileNav .onPageNav{top:98px}.tocActive .navBreadcrumb h2,.tocActive .navToggle{visibility:hidden}.tocActive .onPageNav>.toc-headings{padding:12px 0}}@media only screen and (min-width:1024px){.separateOnPageNav .headerWrapper.wrapper,.separateOnPageNav .wrapper{max-width:1400px}.separateOnPageNav .toc{width:auto}.separateOnPageNav.sideNavVisible .navPusher .mainContainer{flex:1 auto;max-width:100%;min-width:0}.onPageNav{align-self:flex-start;display:block;flex:0 0 240px;max-height:calc(100vh - 90px);overflow-y:auto;position:-webkit-sticky;position:sticky;top:90px}.onPageNav>.toc-headings{border-left:1px solid #e0e0e0;padding:10px 0 2px 15px}.tocToggler{display:none}}}.blog .wrapper{max-width:1100px}.blogContainer .posts .post{border-bottom:1px solid #e0e0e0;border-radius:3px;margin-bottom:20px;padding-bottom:20px}.blogContainer .postHeader{margin-bottom:10px}.blogContainer .postHeaderTitle{margin-top:0}.blogContainer .postHeader p.post-meta{margin-bottom:10px;padding:0}.blogContainer .postHeader .authorBlock{display:flex}.blogContainer .postHeader .post-authorName{color:rgba(57,57,57,.7);display:flex;flex-direction:column;font-size:14px;font-weight:400;justify-content:center;margin-right:10px;margin-top:0;margin-bottom:0;padding:0}.blogContainer .postHeader .authorPhoto{border-radius:50%;height:30px;overflow:hidden;width:30px}.blogContainer .postHeader .authorPhoto.authorPhotoBig{height:50px;width:50px}.blog-recent{margin:20px 0}.blog-recent>a{float:left}@media only screen and (max-width:735px){.blog-recent{height:40px}}.blogSocialSection{display:block;padding:36px 0}.blogSocialSection .blogSocialSectionItem{padding-bottom:5px}.fb-like{display:block;margin-bottom:20px;width:100%}.more-users{margin:0 auto;max-width:560px;text-align:center}.productShowcaseSection{padding:0 20px;text-align:center}.productShowcaseSection.paddingTop{padding-top:20px}.productShowcaseSection.paddingBottom{padding-bottom:80px}.productShowcaseSection h2{color:#2e8555;font-size:30px;line-height:1em;margin-top:20px;padding:10px 0;text-align:center}.productShowcaseSection p{margin:0 auto;max-width:560px;padding:.8em 0}.productShowcaseSection .logos{align-items:center;display:flex;flex-flow:row wrap;justify-content:center;padding:20px}.productShowcaseSection .logos img{max-height:110px;padding:20px;width:110px}@media only screen and (max-width:735px){.productShowcaseSection .logos img{max-height:64px;padding:20px;width:64px}}.showcaseSection{margin:0 auto;max-width:900px}.showcaseSection,.showcaseSection .prose h1{text-align:center}.showcaseSection .prose{margin:0 auto;max-width:560px;text-align:center}.showcaseSection .logos{align-items:center;display:flex;flex-flow:row wrap;justify-content:center}.showcaseSection .logos img{max-height:128px;padding:20px;width:128px}@media only screen and (max-width:735px){.showcaseSection .logos img{max-height:64px;padding:20px;width:64px}}.nav-footer{background:#20232a;border:none;color:#202020;font-size:15px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;line-height:24px;padding-bottom:2em;padding-top:2em;position:relative}@media only screen and (min-width:1024px){.nav-footer{flex-shrink:0}}.nav-footer .sitemap{display:flex;justify-content:space-between;margin:0 auto 3em;max-width:1080px}.nav-footer .sitemap div{flex:1}.nav-footer .sitemap .nav-home{display:table;height:72px;margin:-12px 20px 0 0;opacity:.4;padding:10px;transition:opacity .15s ease-in-out;width:72px}.nav-footer .sitemap .nav-home:focus,.nav-footer .sitemap .nav-home:hover{opacity:1}@media only screen and (max-width:735px){.nav-footer .sitemap{display:flex;flex-direction:column;margin:0 2em 3em;width:calc(100% - 4em)}.nav-footer .sitemap>div{margin-bottom:18px}}.nav-footer .sitemap a{color:hsla(0,0%,100%,.6);display:block;margin:2px -10px;padding:3px 10px}.nav-footer .sitemap a:focus,.nav-footer .sitemap a:hover,.nav-footer .sitemap h5>a:focus,.nav-footer .sitemap h5>a:hover{color:#fff;text-decoration:none}.nav-footer .sitemap h5,.nav-footer .sitemap h6{margin:0 0 10px}.nav-footer .sitemap h5,.nav-footer .sitemap h5>a,.nav-footer .sitemap h6,.nav-footer .sitemap h6>a{color:#fff}.nav-footer .sitemap h5>a,.nav-footer .sitemap h6>a{margin:0 -10px}.nav-footer .fbOpenSource{display:block;margin:1em auto;opacity:.4;transition:opacity .15s ease-in-out;width:170px}.nav-footer .fbOpenSource:hover{opacity:1}.nav-footer .copyright{color:hsla(0,0%,100%,.4);text-align:center}.nav-footer .social{padding:5px 0}.tabs{border-top:1px solid #cfcfcf}.nav-tabs{display:flex;border-bottom:4px solid #e0e0e0;width:100%;padding:0;overflow-x:auto;white-space:nowrap;max-height:100%}.nav-tabs::-webkit-scrollbar{display:none}.tabs .tab-pane:focus{outline:none}.tabs .nav-tabs>div{font-size:14px;line-height:1.14286;padding:12px 16px;text-decoration:none;display:block;cursor:pointer}.tabs .nav-tabs>div.active{border-bottom:4px solid #2e8555}.tab-pane{display:none}.tab-pane.active{display:block}.tab-pane>pre{white-space:pre-wrap}.tab-pane>pre>code{margin-top:0;border-radius:0;box-shadow:none} \ No newline at end of file diff --git a/docs/css/prism.css b/docs/css/prism.css deleted file mode 100644 index d783edb5..00000000 --- a/docs/css/prism.css +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * Modified prism.js default theme for JavaScript, CSS and HTML - * Based on dabblet (http://dabblet.com) - * @author Lea Verou - */ - -code[class*='language-'], -pre[class*='language-'] { - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - line-height: 1.5; - - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -/* Code blocks */ -pre[class*='language-'] { - padding: 1em; - margin: 0.5em 0; - overflow: auto; -} - -/* Inline code */ -:not(pre) > code[class*='language-'] { - padding: 0.1em; - border-radius: 0.3em; - white-space: normal; -} - -.token.comment, -.token.prolog, -.token.doctype, -.token.cdata { - color: slategray; -} - -.token.punctuation { - color: #999; -} - -.namespace { - opacity: 0.7; -} - -.token.property, -.token.tag, -.token.boolean, -.token.constant, -.token.symbol, -.token.deleted { - color: #905; -} - -.token.selector, -.token.number, -.token.attr-name, -.token.string, -.token.char, -.token.builtin, -.token.inserted { - color: #690; -} - -.token.operator, -.token.entity, -.token.url, -.language-css .token.string, -.style .token.string { - color: #9a6e3a; -} - -.token.atrule, -.token.attr-value, -.token.keyword { - color: #07a; -} - -.token.function, -.token.class-name { - color: #dd4a68; -} - -.token.regex, -.token.important, -.token.variable { - color: #e90; -} - -.token.important, -.token.bold { - font-weight: bold; -} -.token.italic { - font-style: italic; -} - -.token.entity { - cursor: help; -} diff --git a/docs/docs/args.html b/docs/docs/args.html deleted file mode 100644 index d923508d..00000000 --- a/docs/docs/args.html +++ /dev/null @@ -1,83 +0,0 @@ -Command line arguments · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/args/index.html b/docs/docs/args/index.html deleted file mode 100644 index d923508d..00000000 --- a/docs/docs/args/index.html +++ /dev/null @@ -1,83 +0,0 @@ -Command line arguments · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/composition.html b/docs/docs/composition.html deleted file mode 100644 index 1b6b5fc3..00000000 --- a/docs/docs/composition.html +++ /dev/null @@ -1,104 +0,0 @@ -Composition of tasks · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/composition/index.html b/docs/docs/composition/index.html deleted file mode 100644 index 1b6b5fc3..00000000 --- a/docs/docs/composition/index.html +++ /dev/null @@ -1,104 +0,0 @@ -Composition of tasks · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/condition.html b/docs/docs/condition.html deleted file mode 100644 index 91b9aaa1..00000000 --- a/docs/docs/condition.html +++ /dev/null @@ -1,103 +0,0 @@ -Controlling Task Flow with Conditionals · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/condition/index.html b/docs/docs/condition/index.html deleted file mode 100644 index 91b9aaa1..00000000 --- a/docs/docs/condition/index.html +++ /dev/null @@ -1,103 +0,0 @@ -Controlling Task Flow with Conditionals · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/doc-start.html b/docs/docs/doc-start.html deleted file mode 100644 index 8d2c9f65..00000000 --- a/docs/docs/doc-start.html +++ /dev/null @@ -1,78 +0,0 @@ -Getting Started with Just · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/doc-start/index.html b/docs/docs/doc-start/index.html deleted file mode 100644 index 8d2c9f65..00000000 --- a/docs/docs/doc-start/index.html +++ /dev/null @@ -1,78 +0,0 @@ -Getting Started with Just · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/logging.html b/docs/docs/logging.html deleted file mode 100644 index 09eced13..00000000 --- a/docs/docs/logging.html +++ /dev/null @@ -1,88 +0,0 @@ -Logging · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/logging/index.html b/docs/docs/logging/index.html deleted file mode 100644 index 09eced13..00000000 --- a/docs/docs/logging/index.html +++ /dev/null @@ -1,88 +0,0 @@ -Logging · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-jest.html b/docs/docs/scripts-jest.html deleted file mode 100644 index 745a5749..00000000 --- a/docs/docs/scripts-jest.html +++ /dev/null @@ -1,85 +0,0 @@ -Jest · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-jest/index.html b/docs/docs/scripts-jest/index.html deleted file mode 100644 index 745a5749..00000000 --- a/docs/docs/scripts-jest/index.html +++ /dev/null @@ -1,85 +0,0 @@ -Jest · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-ts.html b/docs/docs/scripts-ts.html deleted file mode 100644 index 15178951..00000000 --- a/docs/docs/scripts-ts.html +++ /dev/null @@ -1,76 +0,0 @@ -TypeScript · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-ts/index.html b/docs/docs/scripts-ts/index.html deleted file mode 100644 index 15178951..00000000 --- a/docs/docs/scripts-ts/index.html +++ /dev/null @@ -1,76 +0,0 @@ -TypeScript · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-tslint.html b/docs/docs/scripts-tslint.html deleted file mode 100644 index 09198525..00000000 --- a/docs/docs/scripts-tslint.html +++ /dev/null @@ -1,64 +0,0 @@ -TypeScript Lint · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-tslint/index.html b/docs/docs/scripts-tslint/index.html deleted file mode 100644 index 09198525..00000000 --- a/docs/docs/scripts-tslint/index.html +++ /dev/null @@ -1,64 +0,0 @@ -TypeScript Lint · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-webpack.html b/docs/docs/scripts-webpack.html deleted file mode 100644 index 54a3eced..00000000 --- a/docs/docs/scripts-webpack.html +++ /dev/null @@ -1,86 +0,0 @@ -Webpack · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts-webpack/index.html b/docs/docs/scripts-webpack/index.html deleted file mode 100644 index 54a3eced..00000000 --- a/docs/docs/scripts-webpack/index.html +++ /dev/null @@ -1,86 +0,0 @@ -Webpack · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts.html b/docs/docs/scripts.html deleted file mode 100644 index e6e0311c..00000000 --- a/docs/docs/scripts.html +++ /dev/null @@ -1,77 +0,0 @@ -Just Scripts · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/scripts/index.html b/docs/docs/scripts/index.html deleted file mode 100644 index e6e0311c..00000000 --- a/docs/docs/scripts/index.html +++ /dev/null @@ -1,77 +0,0 @@ -Just Scripts · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks-monorepo.html b/docs/docs/stacks-monorepo.html deleted file mode 100644 index 71bcb17b..00000000 --- a/docs/docs/stacks-monorepo.html +++ /dev/null @@ -1,89 +0,0 @@ -Monorepo Stack · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks-monorepo/index.html b/docs/docs/stacks-monorepo/index.html deleted file mode 100644 index 71bcb17b..00000000 --- a/docs/docs/stacks-monorepo/index.html +++ /dev/null @@ -1,89 +0,0 @@ -Monorepo Stack · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks-single.html b/docs/docs/stacks-single.html deleted file mode 100644 index 325a282b..00000000 --- a/docs/docs/stacks-single.html +++ /dev/null @@ -1,83 +0,0 @@ -Single Stack · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks-single/index.html b/docs/docs/stacks-single/index.html deleted file mode 100644 index 325a282b..00000000 --- a/docs/docs/stacks-single/index.html +++ /dev/null @@ -1,83 +0,0 @@ -Single Stack · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks-upgrades.html b/docs/docs/stacks-upgrades.html deleted file mode 100644 index 05b70091..00000000 --- a/docs/docs/stacks-upgrades.html +++ /dev/null @@ -1,66 +0,0 @@ -Upgrading Repos · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks-upgrades/index.html b/docs/docs/stacks-upgrades/index.html deleted file mode 100644 index 05b70091..00000000 --- a/docs/docs/stacks-upgrades/index.html +++ /dev/null @@ -1,66 +0,0 @@ -Upgrading Repos · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks.html b/docs/docs/stacks.html deleted file mode 100644 index 351779ba..00000000 --- a/docs/docs/stacks.html +++ /dev/null @@ -1,70 +0,0 @@ -Just Stacks · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/stacks/index.html b/docs/docs/stacks/index.html deleted file mode 100644 index 351779ba..00000000 --- a/docs/docs/stacks/index.html +++ /dev/null @@ -1,70 +0,0 @@ -Just Stacks · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/thunk.html b/docs/docs/thunk.html deleted file mode 100644 index 17e9b85e..00000000 --- a/docs/docs/thunk.html +++ /dev/null @@ -1,80 +0,0 @@ -Higher Order Task Functions · Just ____

Just ____

\ No newline at end of file diff --git a/docs/docs/thunk/index.html b/docs/docs/thunk/index.html deleted file mode 100644 index 17e9b85e..00000000 --- a/docs/docs/thunk/index.html +++ /dev/null @@ -1,80 +0,0 @@ -Higher Order Task Functions · Just ____

Just ____

\ No newline at end of file diff --git a/docs/en/help.html b/docs/en/help.html deleted file mode 100644 index 92af4a44..00000000 --- a/docs/en/help.html +++ /dev/null @@ -1,7 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/en/help/index.html b/docs/en/help/index.html deleted file mode 100644 index 92af4a44..00000000 --- a/docs/en/help/index.html +++ /dev/null @@ -1,7 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/en/index.html b/docs/en/index.html deleted file mode 100644 index d78fa4a6..00000000 --- a/docs/en/index.html +++ /dev/null @@ -1 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/en/users.html b/docs/en/users.html deleted file mode 100644 index 9081a3d0..00000000 --- a/docs/en/users.html +++ /dev/null @@ -1 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/en/users/index.html b/docs/en/users/index.html deleted file mode 100644 index 9081a3d0..00000000 --- a/docs/en/users/index.html +++ /dev/null @@ -1 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/help.html b/docs/help.html deleted file mode 100644 index 4e8f4542..00000000 --- a/docs/help.html +++ /dev/null @@ -1,7 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/help/index.html b/docs/help/index.html deleted file mode 100644 index 4e8f4542..00000000 --- a/docs/help/index.html +++ /dev/null @@ -1,7 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/img/docusaurus.svg b/docs/img/docusaurus.svg deleted file mode 100644 index 1d8b516a..00000000 --- a/docs/img/docusaurus.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/img/favicon.png b/docs/img/favicon.png deleted file mode 100644 index a3f82260..00000000 Binary files a/docs/img/favicon.png and /dev/null differ diff --git a/docs/img/favicon/favicon.ico b/docs/img/favicon/favicon.ico deleted file mode 100644 index eaced0fd..00000000 Binary files a/docs/img/favicon/favicon.ico and /dev/null differ diff --git a/docs/img/language.svg b/docs/img/language.svg deleted file mode 100644 index 66195932..00000000 --- a/docs/img/language.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/img/oss_logo.png b/docs/img/oss_logo.png deleted file mode 100644 index 8183e289..00000000 Binary files a/docs/img/oss_logo.png and /dev/null differ diff --git a/docs/img/sample-2x.png b/docs/img/sample-2x.png deleted file mode 100644 index dddd5e90..00000000 Binary files a/docs/img/sample-2x.png and /dev/null differ diff --git a/docs/img/sample.png b/docs/img/sample.png deleted file mode 100644 index 3a3782dc..00000000 Binary files a/docs/img/sample.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index cad85679..00000000 --- a/docs/index.html +++ /dev/null @@ -1 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/js/codetabs.js b/docs/js/codetabs.js deleted file mode 100644 index dd01ebf2..00000000 --- a/docs/js/codetabs.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// Turn off ESLint for this file because it's sent down to users as-is. -/* eslint-disable */ -window.addEventListener('load', function() { - // add event listener for all tab - document.querySelectorAll('.nav-link').forEach(function(el) { - el.addEventListener('click', function(e) { - const groupId = e.target.getAttribute('data-group'); - document - .querySelectorAll(`.nav-link[data-group=${groupId}]`) - .forEach(function(el) { - el.classList.remove('active'); - }); - document - .querySelectorAll(`.tab-pane[data-group=${groupId}]`) - .forEach(function(el) { - el.classList.remove('active'); - }); - e.target.classList.add('active'); - document - .querySelector(`#${e.target.getAttribute('data-tab')}`) - .classList.add('active'); - }); - }); -}); diff --git a/docs/js/scrollSpy.js b/docs/js/scrollSpy.js deleted file mode 100644 index 0632e6c3..00000000 --- a/docs/js/scrollSpy.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/* eslint-disable prefer-arrow-callback */ -(function scrollSpy() { - const OFFSET = 10; - let timer; - let headingsCache; - const findHeadings = function findHeadings() { - return headingsCache || document.querySelectorAll('.toc-headings > li > a'); - }; - const onScroll = function onScroll() { - if (timer) { - // throttle - return; - } - timer = setTimeout(function() { - timer = null; - let activeNavFound = false; - const headings = findHeadings(); // toc nav anchors - /** - * On every call, try to find header right after <-- next header - * the one whose content is on the current screen <-- highlight this - */ - for (let i = 0; i < headings.length; i++) { - // headings[i] is current element - // if an element is already active, then current element is not active - // if no element is already active, then current element is active - let currNavActive = !activeNavFound; - /** - * Enter the following check up only when an active nav header is not yet found - * Then, check the bounding rectangle of the next header - * The headers that are scrolled passed will have negative bounding rect top - * So the first one with positive bounding rect top will be the nearest next header - */ - if (currNavActive && i < headings.length - 1) { - const heading = headings[i + 1]; - const next = decodeURIComponent(heading.href.split('#')[1]); - const nextHeader = document.getElementById(next); - - if (nextHeader) { - const top = nextHeader.getBoundingClientRect().top; - currNavActive = top > OFFSET; - } else { - console.error('Can not find header element', { - id: next, - heading, - }); - } - } - /** - * Stop searching once a first such header is found, - * this makes sure the highlighted header is the most current one - */ - if (currNavActive) { - activeNavFound = true; - headings[i].classList.add('active'); - } else { - headings[i].classList.remove('active'); - } - } - }, 100); - }; - - document.addEventListener('scroll', onScroll); - document.addEventListener('resize', onScroll); - document.addEventListener('DOMContentLoaded', function() { - // Cache the headings once the page has fully loaded. - headingsCache = findHeadings(); - onScroll(); - }); -})(); diff --git a/packages/documentation/docs/scripts.md b/docs/scripts/README.md similarity index 96% rename from packages/documentation/docs/scripts.md rename to docs/scripts/README.md index 86911854..41b0f143 100644 --- a/packages/documentation/docs/scripts.md +++ b/docs/scripts/README.md @@ -26,7 +26,3 @@ 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) diff --git a/packages/documentation/docs/scripts-jest.md b/docs/scripts/jest.md similarity index 94% rename from packages/documentation/docs/scripts-jest.md rename to docs/scripts/jest.md index 0959f36b..ecbf08ad 100644 --- a/packages/documentation/docs/scripts-jest.md +++ b/docs/scripts/jest.md @@ -42,7 +42,3 @@ This causes `jest` to collect coverage information. It is much slower, and there ### updateSnapshots This causes the `jestTask()` to update snapshots. Configuration of the snapshot location is subject to the `jest.config.js` file. - -## Next Steps - -Learn about the [tslint preset](scripts-tslint.md) diff --git a/packages/documentation/docs/scripts-tslint.md b/docs/scripts/lint.md similarity index 100% rename from packages/documentation/docs/scripts-tslint.md rename to docs/scripts/lint.md diff --git a/packages/documentation/docs/scripts-ts.md b/docs/scripts/typescript.md similarity index 95% rename from packages/documentation/docs/scripts-ts.md rename to docs/scripts/typescript.md index 11d24dca..527db510 100644 --- a/packages/documentation/docs/scripts-ts.md +++ b/docs/scripts/typescript.md @@ -26,7 +26,3 @@ task('ts:commonjs', tscTask({ module: 'commonjs' })); task('ts:esnext', tscTask({ module: 'esnext' })); task('ts', parallel('ts:commonjs', 'ts:esnext')); ``` - -## Next Steps - -Learn about the [Jest preset](scripts-jest.md) diff --git a/packages/documentation/docs/scripts-webpack.md b/docs/scripts/webpack.md similarity index 100% rename from packages/documentation/docs/scripts-webpack.md rename to docs/scripts/webpack.md diff --git a/docs/sitemap.xml b/docs/sitemap.xml deleted file mode 100644 index b9beb809..00000000 --- a/docs/sitemap.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - https://microsoft.github.io/just/help weekly 0.5 - https://microsoft.github.io/just/index weekly 0.5 - https://microsoft.github.io/just/users weekly 0.5 - https://microsoft.github.io/just/docs/args hourly 1.0 - https://microsoft.github.io/just/docs/composition hourly 1.0 - https://microsoft.github.io/just/docs/condition hourly 1.0 - https://microsoft.github.io/just/docs/doc-start hourly 1.0 - https://microsoft.github.io/just/docs/logging hourly 1.0 - https://microsoft.github.io/just/docs/scripts-jest hourly 1.0 - https://microsoft.github.io/just/docs/scripts-ts hourly 1.0 - https://microsoft.github.io/just/docs/scripts-tslint hourly 1.0 - https://microsoft.github.io/just/docs/scripts-webpack hourly 1.0 - https://microsoft.github.io/just/docs/scripts hourly 1.0 - https://microsoft.github.io/just/docs/stacks-monorepo hourly 1.0 - https://microsoft.github.io/just/docs/stacks-single hourly 1.0 - https://microsoft.github.io/just/docs/stacks-upgrades hourly 1.0 - https://microsoft.github.io/just/docs/stacks hourly 1.0 - https://microsoft.github.io/just/docs/thunk hourly 1.0 - \ No newline at end of file diff --git a/packages/documentation/docs/doc-start.md b/docs/tasks/README.md similarity index 63% rename from packages/documentation/docs/doc-start.md rename to docs/tasks/README.md index 207bf5af..73622ff6 100644 --- a/packages/documentation/docs/doc-start.md +++ b/docs/tasks/README.md @@ -1,5 +1,5 @@ --- -id: doc-start +id: getting-started title: Getting Started with Just sidebar_label: Getting Started --- @@ -10,9 +10,12 @@ sidebar_label: Getting Started npm i -D just-scripts ``` +## Defining Tasks + Place some task definitions inside `just.config.js` in your root folder (next to package.json): ```js +// CommonJS style const { task, option, logger, argv } = require('just-scripts'); option('name', { default: 'world' }); @@ -22,6 +25,29 @@ task('sayhello', function() { }); ``` +## Defining Tasks in Style with TypeScript + +1. Install `ts-node` and `typescript`: + +``` +npm i -D ts-node typescript +``` + +2. Place tasks inside `just.config.ts` in your root folder (next to package.json): + +```js +// ES Module style +import { task, option, logger, argv } from 'just-scripts'; + +option('name', { default: 'world' }); + +task('sayhello', function() { + logger.info(argv().name); +}); +``` + +## Run It! + Then run it! It is best to either place `just` inside a npm run script or run it with `npx`: ```sh @@ -30,7 +56,3 @@ $ npx just sayhello --name me ``` That's all! - -## Next Steps - -Learn how to [compose tasks in just](composition.md) diff --git a/packages/documentation/docs/args.md b/docs/tasks/args.md similarity index 100% rename from packages/documentation/docs/args.md rename to docs/tasks/args.md diff --git a/packages/documentation/docs/composition.md b/docs/tasks/composition.md similarity index 96% rename from packages/documentation/docs/composition.md rename to docs/tasks/composition.md index c0d89c4a..da09da13 100644 --- a/packages/documentation/docs/composition.md +++ b/docs/tasks/composition.md @@ -59,7 +59,3 @@ task('lint', function() { task('build', series('clean', parallel('babel', 'lint'))); ``` - -## Next Steps - -Learn about [logging](logging.md) diff --git a/packages/documentation/docs/condition.md b/docs/tasks/condition.md similarity index 87% rename from packages/documentation/docs/condition.md rename to docs/tasks/condition.md index d04554e7..e1f3c2d8 100644 --- a/packages/documentation/docs/condition.md +++ b/docs/tasks/condition.md @@ -48,7 +48,14 @@ task('test', function() { // run babel over some files }); -task('build', series('clean', 'babel', condition('test', () => !argv()['skip-test']))); +task( + 'build', + series( + 'clean', + 'babel', + condition('test', () => !argv()['skip-test']) + ) +); ``` Now you can skip the test task by passing an argument like this: @@ -56,7 +63,3 @@ Now you can skip the test task by passing an argument like this: ```sh $ just build --skip-test ``` - -## Next Steps - -Learn about [higher order task functions](thunk.md) diff --git a/packages/documentation/docs/logging.md b/docs/tasks/logging.md similarity index 93% rename from packages/documentation/docs/logging.md rename to docs/tasks/logging.md index f8b42719..67c35d02 100644 --- a/packages/documentation/docs/logging.md +++ b/docs/tasks/logging.md @@ -44,7 +44,3 @@ task('needsLogging', function() { throw new Error('an error'); }); ``` - -## Next Steps - -Learn about processing [arguments from command line](args.md) diff --git a/packages/documentation/docs/thunk.md b/docs/tasks/thunk.md similarity index 95% rename from packages/documentation/docs/thunk.md rename to docs/tasks/thunk.md index 9134d4ef..d6ae4d49 100644 --- a/packages/documentation/docs/thunk.md +++ b/docs/tasks/thunk.md @@ -32,7 +32,3 @@ Now the build task can take in an argument and perform TypeScript compilation fo $ just build --amd $ just build --commonjs ``` - -## Next Steps - -Learn about the [Just Scripts](scripts.md) diff --git a/docs/users.html b/docs/users.html deleted file mode 100644 index f105ae0b..00000000 --- a/docs/users.html +++ /dev/null @@ -1 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/docs/users/index.html b/docs/users/index.html deleted file mode 100644 index f105ae0b..00000000 --- a/docs/users/index.html +++ /dev/null @@ -1 +0,0 @@ -Just ____ · The task library that just works

Just ____

\ No newline at end of file diff --git a/package.json b/package.json index 32870eb7..5d2cf583 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,15 @@ "author": "", "main": "index.js", "scripts": { - "build": "lage build --scope !just-task-docs", + "build": "lage build", "postbuild": "node ./scripts/copyReadme.js", - "build:docs": "yarn workspace just-task-docs build", + "docs": "vuepress dev docs --host localhost", + "docs:build": "vuepress build docs", + "gh-pages": "gh-pages", "change": "beachball change", "checkchange": "beachball check", "release": "beachball publish", + "release:docs": "yarn docs:build && yarn gh-pages -d docs/.vuepress/dist --dotfiles", "start": "lage start", "test": "lage test", "lint": "eslint packages --ext .ts,.js" @@ -24,12 +27,14 @@ "beachball": "^1.36.1", "eslint": "^6.0.1", "lage": "^0.19.8", - "ghpages": "^0.0.10" + "vuepress": "^1.6.0", + "vuepress-plugin-mermaidjs": "^1.8.0", + "gh-pages": "^3.1.0", + "prettier": "^2.1.2" }, "workspaces": { "packages": [ "packages/*", - "packages/documentation/website", "scripts" ] } diff --git a/packages/documentation/.eslintrc.json b/packages/documentation/.eslintrc.json deleted file mode 100644 index fb42f761..00000000 --- a/packages/documentation/.eslintrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "parserOptions": { - "ecmaFeatures": { - "jsx": true - } - } -} diff --git a/packages/documentation/docs/assets/failure.png b/packages/documentation/docs/assets/failure.png deleted file mode 100644 index 2497c0d3..00000000 Binary files a/packages/documentation/docs/assets/failure.png and /dev/null differ diff --git a/packages/documentation/docs/assets/typical.png b/packages/documentation/docs/assets/typical.png deleted file mode 100644 index 3ae6ecdf..00000000 Binary files a/packages/documentation/docs/assets/typical.png and /dev/null differ diff --git a/packages/documentation/docs/stacks-monorepo.md b/packages/documentation/docs/stacks-monorepo.md deleted file mode 100644 index 187b9023..00000000 --- a/packages/documentation/docs/stacks-monorepo.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -id: stacks-monorepo -title: Monorepo Stack -sidebar_label: Monorepo Stack ---- - -When there are many highly related packages that are usually developed together, it makes sense to put them in the same repository. This ensures that those changes are atomic and can be released together in one go. When we put multiple packages inside a single repository, we call this a monorepo. - -Just uses the [Lerna](https://lerna.js.org) library to manage monorepos together with [yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/). Those libraries handles linking monorepo packages together to ensure a sane developer experience. Lerna is powerful, but it does not provide opinions about what kind of packages are scaffolded inside the monorepo. Just Stacks provides this for the monorepo. - -# Prerequisites - -Yarn is a prerequisite in using the monorepo stack. Install it like so: - -``` -npm install -g yarn -``` - -# Getting Started with the MonoRepo - -After creating a monorepo, you can create packages, incrementally build all the packages, and even upgrade the packages according to changes from the templates by an [upgrade process](stacks-upgrades.md). - -# Installing dependencies - -Installing dependencies is the job of Yarn. Install all dependencies and bootstrap the monorepo like so: - -``` -yarn -``` - -> Like the single package stacks, don't forget to run `yarn` after you do a `git pull` - -# Building monorepo - -To build all the packages, simply run the `build` npm script. Previously built packages will not be built. We call this incremental builds: - -``` -yarn build -``` - -To develop with an innerloop experience, go inside the individual package and type: - -``` -cd packages/foo -yarn start -``` - -# Adding a new package into the repo - -Out of the box, the monorepo stack provides a mechanism to create new packages using the [plop.js](https://plopjs.com) utility. Simply run this to generate a new package: - -``` -yarn gen -``` - -After picking a package name and a package type, the new package will be placed under `packages/` directory. Make sure you update deps and symlink are established by Yarn: - -``` -yarn -``` diff --git a/packages/documentation/docs/stacks-single.md b/packages/documentation/docs/stacks-single.md deleted file mode 100644 index 5e4d8dbe..00000000 --- a/packages/documentation/docs/stacks-single.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: stacks-single -title: Single Stack -sidebar_label: Single Stack ---- - -The simplest kind of projects are the single package repositories. Out of the box, `just` can create a single package library or a batteries-included web application. The generated repository will use the `just` library to manage its build definitions. You can customize the build task flow by editing the `just.config.js` at the root of the generated repository. - -To get started, have a look at the `README.md` at the root of the newly generated repository. Some of the common commands are listed here. - -# Installing dependencies - -Installing dependencies is the job of the package manager. By default node.js comes with the `npm` package manager. We can simply do this: - -``` -npm install -``` - -> Don't forget to run `npm install` after you do a `git pull` - -# Building package - -To build the package, simply run the `build` npm script: - -``` -npm run build -``` - -To develop with an innerloop experience, type: - -``` -npm start -``` - -# Testing the package - -The `jest` library is used to run tests. This library can run unit tests in parallel and has a good developer experience when developing test by providing an innerloop capability via its watch mode. - -To run the tests in one pass: - -``` -npm test -``` - -To do innerloop test development: - -``` -npm run start-test -``` diff --git a/packages/documentation/docs/stacks-upgrades.md b/packages/documentation/docs/stacks-upgrades.md deleted file mode 100644 index d07d5a64..00000000 --- a/packages/documentation/docs/stacks-upgrades.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -id: stacks-upgrades -title: Upgrading Repos -sidebar_label: Upgrading Repos ---- - -`just-stack` upgrades are done via updating two dependencies: - -1. `just-scripts` -2. `just-stack-*` - -The `just-scripts` dependency updates the build scripts. When new functionality has been added or updated, you can update this dependency. For example, eslint task has been added recently and can be used when the scripts package is updated. - -Separately, the `just-stack-*` dependency contain all the devDependencies needed for the `just-scripts`. These are versioned independently because scripts and deps can be released at different times. For example, even if we added new scripts inside `just-scripts`, generated repos may still want to keep the current devDependencies so not to have interruptions. diff --git a/packages/documentation/docs/stacks.md b/packages/documentation/docs/stacks.md deleted file mode 100644 index 8ba123ed..00000000 --- a/packages/documentation/docs/stacks.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -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 provides: - -1. a project generator for single package or monorepo repository via `create-just` -2. generated repo depends on a `stack` like `just-stack-react` and `just-stack-monorepo` which provides all the devDependencies needed to build those stacks -3. these `stack`s also take `just-scripts` as a dependency which gives the repos the necessary build scripting for different parts of the stack (compiler, test runner, and bundler) - -## Generate a new project - -It is very fast and easy to get started! We have taken care to make this experience as fast as possible. You can create a project in a couple of seconds: - -``` -npm init just -``` - -From here, you can choose a type of project to scaffold. We'll take a look the different kinds in the next sections. diff --git a/packages/documentation/website/CHANGELOG.json b/packages/documentation/website/CHANGELOG.json deleted file mode 100644 index 5f32bae6..00000000 --- a/packages/documentation/website/CHANGELOG.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "just-task-docs", - "entries": [ - { - "date": "Fri, 05 Jul 2019 16:59:55 GMT", - "tag": "just-task-docs_v0.0.2", - "version": "0.0.2", - "comments": { - "patch": [ - { - "comment": "Uppercase the S in TypeScript", - "author": "orta.therox@gmail.com", - "commit": "6a81b5b8cab4f3dccfe3408e300ac4bc70c4719f" - } - ] - } - } - ] -} \ No newline at end of file diff --git a/packages/documentation/website/CHANGELOG.md b/packages/documentation/website/CHANGELOG.md deleted file mode 100644 index 7d5b9bb3..00000000 --- a/packages/documentation/website/CHANGELOG.md +++ /dev/null @@ -1,10 +0,0 @@ -# Change Log - just-task-docs - -This log was last generated on Fri, 05 Jul 2019 16:59:55 GMT and should not be manually modified. - -## 0.0.2 -Fri, 05 Jul 2019 16:59:55 GMT - -### Patches - -- Uppercase the S in TypeScript (orta.therox@gmail.com) diff --git a/packages/documentation/website/README.md b/packages/documentation/website/README.md deleted file mode 100644 index f3da77ff..00000000 --- a/packages/documentation/website/README.md +++ /dev/null @@ -1,193 +0,0 @@ -This website was created with [Docusaurus](https://docusaurus.io/). - -# What's In This Document - -* [Get Started in 5 Minutes](#get-started-in-5-minutes) -* [Directory Structure](#directory-structure) -* [Editing Content](#editing-content) -* [Adding Content](#adding-content) -* [Full Documentation](#full-documentation) - -# Get Started in 5 Minutes - -1. Make sure all the dependencies for the website are installed: - -```sh -# Install dependencies -$ yarn -``` -2. Run your dev server: - -```sh -# Start the site -$ yarn start -``` - -## Directory Structure - -Your project file structure should look something like this - -``` -my-docusaurus/ - docs/ - doc-1.md - doc-2.md - doc-3.md - website/ - blog/ - 2016-3-11-oldest-post.md - 2017-10-24-newest-post.md - core/ - node_modules/ - pages/ - static/ - css/ - img/ - package.json - sidebar.json - siteConfig.js -``` - -# Editing Content - -## Editing an existing docs page - -Edit docs by navigating to `docs/` and editing the corresponding document: - -`docs/doc-to-be-edited.md` - -```markdown ---- -id: page-needs-edit -title: This Doc Needs To Be Edited ---- - -Edit me... -``` - -For more information about docs, click [here](https://docusaurus.io/docs/en/navigation) - -## Editing an existing blog post - -Edit blog posts by navigating to `website/blog` and editing the corresponding post: - -`website/blog/post-to-be-edited.md` -```markdown ---- -id: post-needs-edit -title: This Blog Post Needs To Be Edited ---- - -Edit me... -``` - -For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog) - -# Adding Content - -## Adding a new docs page to an existing sidebar - -1. Create the doc as a new markdown file in `/docs`, example `docs/newly-created-doc.md`: - -```md ---- -id: newly-created-doc -title: This Doc Needs To Be Edited ---- - -My new content here.. -``` - -1. Refer to that doc's ID in an existing sidebar in `website/sidebar.json`: - -```javascript -// Add newly-created-doc to the Getting Started category of docs -{ - "docs": { - "Getting Started": [ - "quick-start", - "newly-created-doc" // new doc here - ], - ... - }, - ... -} -``` - -For more information about adding new docs, click [here](https://docusaurus.io/docs/en/navigation) - -## Adding a new blog post - -1. Make sure there is a header link to your blog in `website/siteConfig.js`: - -`website/siteConfig.js` -```javascript -headerLinks: [ - ... - { blog: true, label: 'Blog' }, - ... -] -``` - -2. Create the blog post with the format `YYYY-MM-DD-My-Blog-Post-Title.md` in `website/blog`: - -`website/blog/2018-05-21-New-Blog-Post.md` - -```markdown ---- -author: Frank Li -authorURL: https://twitter.com/foobarbaz -authorFBID: 503283835 -title: New Blog Post ---- - -Lorem Ipsum... -``` - -For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog) - -## Adding items to your site's top navigation bar - -1. Add links to docs, custom pages or external links by editing the headerLinks field of `website/siteConfig.js`: - -`website/siteConfig.js` -```javascript -{ - headerLinks: [ - ... - /* you can add docs */ - { doc: 'my-examples', label: 'Examples' }, - /* you can add custom pages */ - { page: 'help', label: 'Help' }, - /* you can add external links */ - { href: 'https://github.com/facebook/Docusaurus', label: 'GitHub' }, - ... - ], - ... -} -``` - -For more information about the navigation bar, click [here](https://docusaurus.io/docs/en/navigation) - -## Adding custom pages - -1. Docusaurus uses React components to build pages. The components are saved as .js files in `website/pages/en`: -1. If you want your page to show up in your navigation header, you will need to update `website/siteConfig.js` to add to the `headerLinks` element: - -`website/siteConfig.js` -```javascript -{ - headerLinks: [ - ... - { page: 'my-new-custom-page', label: 'My New Custom Page' }, - ... - ], - ... -} -``` - -For more information about custom pages, click [here](https://docusaurus.io/docs/en/custom-pages). - -# Full Documentation - -Full documentation can be found on the [website](https://docusaurus.io/). diff --git a/packages/documentation/website/core/Footer.js b/packages/documentation/website/core/Footer.js deleted file mode 100644 index 60adb613..00000000 --- a/packages/documentation/website/core/Footer.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react'); - -class Footer extends React.Component { - docUrl(doc, language) { - const baseUrl = this.props.config.baseUrl; - return `${baseUrl}docs/${language ? `${language}/` : ''}${doc}`; - } - - pageUrl(doc, language) { - const baseUrl = this.props.config.baseUrl; - return baseUrl + (language ? `${language}/` : '') + doc; - } - - render() { - return ( - - ); - } -} - -module.exports = Footer; diff --git a/packages/documentation/website/i18n/en.json b/packages/documentation/website/i18n/en.json deleted file mode 100644 index dc414767..00000000 --- a/packages/documentation/website/i18n/en.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "_comment": "This file is auto-generated by write-translations.js", - "localized-strings": { - "next": "Next", - "previous": "Previous", - "tagline": "The task library that just works", - "docs": { - "args": { - "title": "Command line arguments", - "sidebar_label": "Command line arguments" - }, - "composition": { - "title": "Composition of tasks", - "sidebar_label": "Composition of tasks" - }, - "condition": { - "title": "Controlling Task Flow with Conditionals", - "sidebar_label": "Conditionals" - }, - "doc-start": { - "title": "Getting Started with Just", - "sidebar_label": "Getting Started" - }, - "logging": { - "title": "Logging", - "sidebar_label": "Logging" - }, - "scripts-jest": { - "title": "Jest", - "sidebar_label": "Jest" - }, - "scripts-ts": { - "title": "TypeScript", - "sidebar_label": "TypeScript" - }, - "scripts-tslint": { - "title": "TypeScript Lint", - "sidebar_label": "TypeScript Lint" - }, - "scripts-webpack": { - "title": "Webpack", - "sidebar_label": "Webpack" - }, - "scripts": { - "title": "Just Scripts", - "sidebar_label": "Just Scripts" - }, - "stacks-monorepo": { - "title": "Monorepo Stack", - "sidebar_label": "Monorepo Stack" - }, - "stacks-single": { - "title": "Single Stack", - "sidebar_label": "Single Stack" - }, - "stacks-upgrades": { - "title": "Upgrading Repos", - "sidebar_label": "Upgrading Repos" - }, - "stacks": { - "title": "Just Stacks", - "sidebar_label": "Just Stacks" - }, - "thunk": { - "title": "Higher Order Task Functions", - "sidebar_label": "Higher Order Task Functions" - } - }, - "links": { - "Documentation": "Documentation", - "GitHub": "GitHub" - }, - "categories": { - "Basics": "Basics", - "Scripts": "Scripts", - "Stacks": "Stacks" - } - }, - "pages-strings": { - "Help Translate|recruit community translators for your project": "Help Translate", - "Edit this Doc|recruitment message asking to edit the doc source": "Edit", - "Translate this Doc|recruitment message asking to translate the docs": "Translate" - } -} diff --git a/packages/documentation/website/package.json b/packages/documentation/website/package.json deleted file mode 100644 index 5259a550..00000000 --- a/packages/documentation/website/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "just-task-docs", - "version": "0.0.2", - "scripts": { - "examples": "docusaurus-examples", - "start": "docusaurus-start", - "build": "docusaurus-build && cpx \"build/just/**/*\" ../../../docs", - "version": "docusaurus-version", - "rename-version": "docusaurus-rename-version" - }, - "dependencies": { - "office-ui-fabric-react": "^6.109.0", - "@uifabric/experiments": "^6.41.0", - "react": "^16.6.0", - "react-dom": "^16.6.0" - }, - "devDependencies": { - "@babel/core": "^7.1.6", - "@babel/plugin-proposal-class-properties": "^7.1.0", - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", - "@babel/polyfill": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "@babel/preset-react": "^7.0.0", - "@babel/register": "^7.0.0", - "@babel/traverse": "^7.0.0", - "@babel/types": "^7.1.2", - "cpx": "^1.5.0", - "docusaurus": "^1.5.1" - } -} diff --git a/packages/documentation/website/pages/en/help.js b/packages/documentation/website/pages/en/help.js deleted file mode 100755 index 530e2490..00000000 --- a/packages/documentation/website/pages/en/help.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react'); - -const CompLibrary = require('../../core/CompLibrary.js'); - -const Container = CompLibrary.Container; -const GridBlock = CompLibrary.GridBlock; - -const siteConfig = require(`${process.cwd()}/siteConfig.js`); - -function docUrl(doc, language) { - return `${siteConfig.baseUrl}docs/${language ? `${language}/` : ''}${doc}`; -} - -class Help extends React.Component { - render() { - const language = this.props.language || ''; - const supportLinks = [ - { - content: `Learn more using the [documentation on this site.](${docUrl( - 'doc-start.html', - language, - )})`, - title: 'Browse Docs', - }, - { - content: 'Ask questions about the documentation and project', - title: 'Join the community', - }, - { - content: "Find out what's new with this project", - title: 'Stay up to date', - }, - ]; - - return ( -
- -
-
-

Need help?

-
-

This project is maintained by a dedicated group of people.

- -
-
-
- ); - } -} - -module.exports = Help; diff --git a/packages/documentation/website/pages/en/index.js b/packages/documentation/website/pages/en/index.js deleted file mode 100755 index 7590dddd..00000000 --- a/packages/documentation/website/pages/en/index.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react'); - -const CompLibrary = require('../../core/CompLibrary.js'); -const siteConfig = require(`${process.cwd()}/siteConfig.js`); - -function docUrl(doc, language) { - return `${siteConfig.baseUrl}docs/${language ? `${language}/` : ''}${doc}`; -} - -class Button extends React.Component { - render() { - return ( -
- - {this.props.children} - -
- ); - } -} - -Button.defaultProps = { - target: '_self' -}; - -const SplashContainer = props => ( -
-
-
{props.children}
-
-
-); - -const ProjectTitle = () => ( -

- {siteConfig.title} - {siteConfig.tagline} -

-); - -const PromoSection = props => ( -
-
-
{props.children}
-
-
-); - -class HomeSplash extends React.Component { - render() { - const language = this.props.language || ''; - return ( - -
- - -
- -
-
- - - -
-
- ); - } -} - -class Index extends React.Component { - render() { - const language = this.props.language || ''; - - return ( -
- -
- ); - } -} - -module.exports = Index; diff --git a/packages/documentation/website/pages/en/users.js b/packages/documentation/website/pages/en/users.js deleted file mode 100644 index b03fb812..00000000 --- a/packages/documentation/website/pages/en/users.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react'); - -const CompLibrary = require('../../core/CompLibrary.js'); - -const Container = CompLibrary.Container; - -const siteConfig = require(`${process.cwd()}/siteConfig.js`); - -class Users extends React.Component { - render() { - if ((siteConfig.users || []).length === 0) { - return null; - } - - const editUrl = `${siteConfig.repoUrl}/edit/master/website/siteConfig.js`; - const showcase = siteConfig.users.map(user => ( - - {user.caption} - - )); - - return ( -
- -
-
-

Who is Using This?

-

This project is used by many folks

-
-
{showcase}
-

Are you using this project?

- - Add your company - -
-
-
- ); - } -} - -module.exports = Users; diff --git a/packages/documentation/website/sidebars.json b/packages/documentation/website/sidebars.json deleted file mode 100644 index 7da2e553..00000000 --- a/packages/documentation/website/sidebars.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "docs": { - "Basics": ["doc-start", "composition", "logging", "args", "condition", "thunk"], - "Scripts": ["scripts", "scripts-ts", "scripts-jest", "scripts-tslint", "scripts-webpack"], - "Stacks": ["stacks", "stacks-single", "stacks-monorepo", "stacks-upgrades"] - } -} diff --git a/packages/documentation/website/siteConfig.js b/packages/documentation/website/siteConfig.js deleted file mode 100644 index ca736ce3..00000000 --- a/packages/documentation/website/siteConfig.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// See https://docusaurus.io/docs/site-config for all the possible -// site configuration options. - -// List of projects/orgs using your project for the users page. -const users = [ - // { - // caption: 'User1', - // // You will need to prepend the image path with your baseUrl - // // if it is not '/', like: '/test-site/img/docusaurus.svg'. - // image: '/img/docusaurus.svg', - // infoLink: 'https://www.facebook.com', - // pinned: true - // } -]; - -const siteConfig = { - title: 'Just ____', // Title for your website. - tagline: 'The task library that just works', - url: 'https://microsoft.github.io', // Your website URL - baseUrl: '/just/', // Base URL for your project */ - projectName: 'just', - organizationName: 'Microsoft', - - // For no header links in the top nav bar -> headerLinks: [], - headerLinks: [{ doc: 'doc-start', label: 'Documentation' }, { href: 'https://github.com/microsoft/just', label: 'GitHub' }], - - // If you have users set above, you add it here: - users, - - /* path to images for header/footer */ - headerIcon: null, - footerIcon: null, - favicon: 'img/favicon.png', - - /* Colors for website */ - colors: { - primaryColor: '#2E8555', - secondaryColor: '#205C3B' - }, - - // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. - copyright: `Copyright © ${new Date().getFullYear()}`, - - highlight: { - // Highlight.js theme to use for syntax highlighting in code blocks. - theme: 'default' - }, - - // Add custom scripts here that would be placed in