(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2809],{91058:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extending-nx",function(){return n(31656)}])},71731:function(e,t,n){"use strict";function i(e){return{id:"basic",name:"Basic",hideSectionHeader:!0,itemList:e.filter(e=>"getting-started"===e.id||"core-features"===e.id||"concepts"===e.id||"recipes"===e.id||"showcase"===e.id||"reference"===e.id).map(e=>({...e,disableCollapsible:!e.id.endsWith("tutorial")}))}}function r(e){return{id:"basic",name:"Basic",hideSectionHeader:!0,itemList:e.map(e=>({...e,disableCollapsible:!0}))}}function l(e){return e.filter(e=>"create-nx-plugin"!==e.id&&"create-nx-workspace"!==e.id&&"tao"!==e.id).map(e=>({id:e.id,name:e.name,itemList:e.children,hideSectionHeader:!1}))}function s(e){return{id:"basic",name:"Basic",hideSectionHeader:!0,itemList:e.filter(e=>"intro"===e.id||"set-up"===e.id||"account"===e.id).map(e=>({...e,disableCollapsible:!e.id.endsWith("tutorial")}))}}function a(e){return{id:"deep-dive",name:"Deep Dive",hideSectionHeader:!1,itemList:e.filter(e=>"private-cloud"===e.id||"reference"===e.id).map(e=>{var t;return{...e,disableCollapsible:!0,itemList:null===(t=e.children)||void 0===t?void 0:t.map(e=>({...e,disableCollapsible:!0}))}})}}n.d(t,{AT:function(){return r},EK:function(){return s},IQ:function(){return a},OP:function(){return l},hG:function(){return i}})},19090:function(e,t,n){"use strict";n.d(t,{z:function(){return h}});var i=n(97458),r=n(97757),l=n(55161),s=n(69554),a=n(36625),o=n(66771),d=n(52983),c=n(39148),u=n.n(c);function m(e){var t;let{elementRef:n,headings:r,path:l,children:s}=e,a=[1,2,3],c=r.filter(e=>e.id&&a.includes(e.level)),m=function(e,t){let{threshold:n=0,root:i=null,rootMargin:r="0%"}=t,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,[s,a]=(0,d.useState)("");return(0,d.useEffect)(()=>{let t=e=>{for(let t of e)(null==t?void 0:t.isIntersecting)&&a(t.target.id)},l=null==e?void 0:e.current,s=!!window.IntersectionObserver;if(!s||!l)return;let o=new IntersectionObserver(t,{threshold:n,root:i,rootMargin:r}),d=l.querySelectorAll("h1, h2, h3");return d.forEach(e=>{o.observe(e)}),()=>o.disconnect()},[null==e?void 0:e.current,JSON.stringify(n),i,r,l]),s}(n,{threshold:[0,.25,.5,.75,1],root:null,rootMargin:"-10% 0% -45% 0%"},(null===(t=r.find(e=>1===e.level))||void 0===t?void 0:t.title)||null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("nav",{className:"toc",children:[(0,i.jsx)("span",{className:"pl-4 font-medium",children:"On this page"}),c.length?(0,i.jsx)("ul",{className:"flex-col mt-4",children:c.map(e=>{let t="".concat(l,"#").concat(e.id);return(0,i.jsx)("li",{children:(0,i.jsx)(u(),{href:t,className:(0,o.cx)("block w-full border-l-4 border-slate-200 py-1 pl-3 transition hover:border-slate-500 dark:border-slate-700/40 dark:hover:border-slate-700",{"border-slate-500 bg-slate-50 dark:border-slate-700 dark:bg-slate-800/60":m===e.id,"pl-6":3===e.level}),children:1===e.level?"Overview":e.title})},e.title)})}):null]}),(0,i.jsx)("div",{className:"p-4",children:s})]})}function h(e){var t,n,c,u;let{document:h,relatedDocuments:f,widgetData:p}=e,x=(0,a.useRouter)(),g=x.asPath.includes("/getting-started/intro")||x.asPath.includes("/extending-nx/intro/getting-started")||x.asPath.includes("/nx-api/devkit")||x.asPath.includes("/reference/glossary"),b=(0,d.useRef)(null),{metadata:v,node:w,treeNode:j}=(0,l.ap)(h.content.toString(),{filePath:h.filePath}),N={title:null!==(t=v.title)&&void 0!==t?t:h.name,description:null!==(n=v.description)&&void 0!==n?n:h.description,content:w,relatedContent:(0,l.ap)(function(e){if(!e.length)return"";let t=e.map(e=>{let t="### ".concat(e.name),n=e.relatedDocuments.map(e=>"- [".concat(e.name,"](").concat(e.path,")")).join("\n");return[t,n].join("\n")});return["\n## Related Documentation\n",...t].join("\n")}(function(e){let t=[{id:"concepts",name:"Concepts",matchers:["/concepts/","/concepts/more-concepts/"],relatedDocuments:[]},{id:"recipes",name:"Recipes",matchers:["/recipes/"],relatedDocuments:[]},{id:"reference",name:"Reference",matchers:["/workspace/","/nx-api/"],relatedDocuments:[]},{id:"see-also",name:"See also",matchers:["/see-also/"],relatedDocuments:[]}];return e.forEach(e=>t.forEach(t=>{t.matchers.some(t=>e.path.includes(t))&&t.relatedDocuments.push(e)})),t.filter(e=>!!e.relatedDocuments.length)}(f)),{filePath:""}).node,tableOfContent:function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t){if(t.name&&"Heading"===t.name){let e=t.children[0];"string"==typeof e&&n.push({id:t.attributes.id,level:t.attributes.level,title:e})}if(t.children)for(let i of t.children)e(i,n)}return n}(j)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.PB,{title:N.title+" | Nx",description:null!==(c=N.description)&&void 0!==c?c:"Next generation build system with first class monorepo support and powerful integrations.",openGraph:{url:"https://nx.dev"+x.asPath,title:N.title,description:null!==(u=N.description)&&void 0!==u?u:"Next generation build system with first class monorepo support and powerful integrations.",images:[{url:x.asPath.includes("turbo-and-nx")?"https://nx.dev/socials/nx-media-monorepo.jpg":"https://nx.dev/images/open-graph/".concat(x.asPath.replace("/","").replace(/\//gi,"-"),".jpg"),width:1600,height:800,alt:"Nx: Smart, Fast and Extensible Build System",type:"image/jpeg"}],siteName:"Nx",type:"website"}}),(0,i.jsx)("div",{className:"mx-auto w-full grow items-stretch px-4 sm:px-6 lg:px-8 2xl:max-w-6xl",children:(0,i.jsxs)("div",{id:"content-wrapper",className:"w-full flex-auto flex-col",children:[(0,i.jsx)("div",{className:"mb-6 pt-8",children:(0,i.jsx)(r.Oo,{path:x.asPath})}),(0,i.jsxs)("div",{className:"min-w-0 flex-auto pb-24 lg:pb-16",children:[(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{ref:b,"data-document":"main",className:(0,o.cx)("prose prose-slate dark:prose-invert w-full max-w-none 2xl:max-w-4xl",{"xl:max-w-2xl":!g}),children:N.content}),!g&&(0,i.jsx)("div",{className:(0,o.cx)("fixed top-36 right-[max(2rem,calc(50%-55rem))] z-20 hidden w-60 overflow-y-auto bg-white py-10 text-sm dark:bg-slate-900 xl:block"),children:(0,i.jsx)(m,{elementRef:b,path:x.basePath,headings:N.tableOfContent,children:p.githubStarsCount>0&&(0,i.jsx)(r.Cc,{starsCount:p.githubStarsCount})})})]}),(0,i.jsx)("div",{"data-document":"related",className:"prose prose-slate dark:prose-invert max-w-none",children:N.relatedContent})]}),(0,i.jsxs)("div",{className:"flex w-full items-center space-x-2 pt-24 pb-24 sm:px-6 lg:pb-16 xl:px-8",children:[(0,i.jsx)("div",{className:"ml-4 flex h-0.5 w-full flex-grow rounded bg-slate-50 dark:bg-slate-800/60"}),(0,i.jsxs)("div",{className:"relative z-0 inline-flex flex-shrink-0 rounded-md shadow-sm",children:[(0,i.jsx)("a",{"aria-hidden":"true",href:"https://github.com/nrwl/nx/issues/new?assignees=&labels=type%3A+docs&template=3-documentation.md",target:"_blank",rel:"noreferrer",title:"Report an issue on GitHub",className:"relative inline-flex items-center rounded-l-md ".concat(h.filePath?"":"rounded-r-md ","border border-slate-200 bg-white px-4 py-2 text-xs font-medium text-slate-600 focus-within:ring-blue-500 hover:bg-slate-50 focus:z-10 focus:outline-none focus:ring-1 dark:border-slate-700 dark:bg-slate-800/60 dark:text-slate-400 dark:focus-within:ring-sky-500 dark:hover:bg-slate-800"),children:"Report an issue"}),h.filePath?(0,i.jsx)("a",{"aria-hidden":"true",href:["https://github.com/nrwl/nx/blob/master",h.filePath.replace("nx-dev/nx-dev/public/documentation","docs").replace("public/documentation","docs")].join("/"),target:"_blank",rel:"noreferrer",title:"Edit this page on GitHub",className:"relative -ml-px inline-flex items-center rounded-r-md border border-slate-200 bg-white px-4 py-2 text-xs font-medium text-slate-600 focus-within:ring-blue-500 hover:bg-slate-50 focus:z-10 focus:outline-none focus:ring-1 dark:border-slate-700 dark:bg-slate-800/60 dark:text-slate-400 dark:focus-within:ring-sky-500 dark:hover:bg-slate-800",children:"Edit this page"}):null]})]})]})}),(0,i.jsx)(r.$_,{})]})}},31656:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return c},default:function(){return u}});var i=n(97458),r=n(71731),l=n(19090),s=n(97757),a=n(36625),o=n(52983),d=n(32466),c=!0;function u(e){let{document:t,menu:n,relatedDocuments:c,widgetData:u}=e,m=(0,a.useRouter)(),{toggleNav:h,navIsOpen:f}=(0,d.s)(),p=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=e=>{!e.includes("#")&&p&&p.current.scrollTo({top:0,left:0,behavior:"smooth"})};return m.events.on("routeChangeComplete",e),()=>m.events.off("routeChangeComplete",e)},[m,p]);let x={document:t,menu:{sections:[(0,r.AT)(n)]},relatedDocuments:c};return(0,i.jsxs)("div",{id:"shell",className:"flex h-full flex-col",children:[(0,i.jsx)("div",{className:"w-full flex-shrink-0",children:(0,i.jsx)(s.aV,{isNavOpen:f,toggleNav:h})}),(0,i.jsxs)("main",{id:"main",role:"main",className:"flex h-full flex-1 overflow-y-hidden",children:[(0,i.jsx)(s._G,{menu:x.menu,navIsOpen:f}),(0,i.jsx)("div",{ref:p,id:"wrapper","data-testid":"wrapper",className:"relative flex flex-grow flex-col items-stretch justify-start overflow-y-scroll",children:(0,i.jsx)(l.z,{document:t,relatedDocuments:x.relatedDocuments,widgetData:u})})]})]})}}},function(e){e.O(0,[7125,5671,4652,7757,7265,9774,2888,179],function(){return e(e.s=91058)}),_N_E=e.O()}]);