@teambit/compiler 1.0.309 → 1.0.311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.compilation/compiler@1.0.
|
|
3
|
+
<testsuite name="teambit.compilation/compiler@1.0.311" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.compilation/compiler-preview"]=n():e["teambit.compilation/compiler-preview"]=n()}(self,(()=>(()=>{"use strict";var e={4713:(e,n,t)=>{var o={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,p(t(41594));var i=t(5016),r=t(65682),a=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},m.apply(this,arguments)}function l(e,n){if(null==e)return{};var t,o,i=d(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(null==e)return{};var t,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||(i[t]=e[t]);return i}p.__bit_component=o,m.__bit_component=o,l.__bit_component=o,d.__bit_component=o;var c={},s="wrapper";function u(e){var n=e.components,t=l(e,a);return(0,i.mdx)(s,m({},c,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(r.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,i.mdx)("h1",null,"Compiler overview"),(0,i.mdx)("p",null,"The Compiler aspect provides a single interface for Component compilation, ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during development")," and ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during build"),".\nIt enables you to use the same commands and APIs to compile any Component, regardless of the specific compiler it uses."),(0,i.mdx)("div",{className:"admonition admonition-info alert alert--info"},(0,i.mdx)("div",{parentName:"div",className:"admonition-heading"},(0,i.mdx)("h5",{parentName:"div"},(0,i.mdx)("span",{parentName:"h5",className:"admonition-icon"},(0,i.mdx)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,i.mdx)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"info")),(0,i.mdx)("div",{parentName:"div",className:"admonition-content"},(0,i.mdx)("p",{parentName:"div"},"The specific compiler used by a Component (",(0,i.mdx)("a",{parentName:"p",href:"/"},"Babel"),", ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript"),", and so on) is set by the Component's Env."))),(0,i.mdx)("h2",null,"Compiling during development"),(0,i.mdx)("p",null,"Run the following to compile all your Workspace Components:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit compile\n")),(0,i.mdx)("p",null,"The following output lists the compilation results in a single format:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"}," STATUS COMPONENT ID\n✔ SUCCESS apps/bit-dev\n✔ SUCCESS blocks/component/architecture-breakdown\n✔ SUCCESS blocks/footer\n✔ SUCCESS blocks/header\n✔ SUCCESS buttons/button\n✔ SUCCESS content/adding-components\n")),(0,i.mdx)("p",null,"To 'watch' Components for changes, and to auto-compile modified Components, run:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit watch\n")),(0,i.mdx)("p",null,"The compiled code is written into each Component's corresponding package, in the ",(0,i.mdx)("a",{parentName:"p",href:"/dependencies/node-modules"},(0,i.mdx)("inlineCode",{parentName:"a"},"node_modules")," directory")," of your workspace.\nFor example, the compiled code for ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.scope/ui/text")," will be found in the ",(0,i.mdx)("inlineCode",{parentName:"p"},"./node_modules/@company/scope.ui.text/dist")," directory (inside your workspace)."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during development'"),"."),(0,i.mdx)("h2",null,"Compiling during build"),(0,i.mdx)("p",null,"Run the following to compile Components as part of the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"build pipeline")," (which prepares Components for distribution):"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,i.mdx)("p",null,"The output to the terminal details the specific compilers being used, as well as the Envs that use them:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'...\n✔ env "teambit.harmony/aspect", task "teambit.compilation/compiler:BabelCompiler (compile components for artifact dist)" has completed successfully in 363ms\n✔ env "teambit.react/react", task "teambit.compilation/compiler:TSCompiler (compile components for artifact dist)" has completed successfully in 1s\n✔ env "teambit.mdx/mdx", task "teambit.compilation/compiler:MDXCompiler (compile components)" has completed successfully in 879ms\n...\nthe build has been completed. total: 19 tasks\n')),(0,i.mdx)("p",null,"The compiled code is written into the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's Capsule"),". Run ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit snap"))," or ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit tag"))," to execute the build pipeline (as well as other pipelines), and have the compiled code persisted in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component version"),", and included in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's package"),"."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during build'"),"."),(0,i.mdx)("h2",null,"Compilation strategies and standards"),(0,i.mdx)("p",null,"The Compiler aspect does not set specific compilation strategies as these are defined by the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"specific compilers")," themselves (and are often configurable by the Envs that use them)."),(0,i.mdx)("p",null,"However, all official Bit compilers are configured to favor dev experience when compiling during development, and to favor runtime performance and code universality, when compiling for distribution (during build)."),(0,i.mdx)("p",null,"For example, Bit's ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript compiler")," performs type-checking when compiling during build but skips it when compiling during development.\nThis enables faster compilation and better dev experience."),(0,i.mdx)("p",null,"To examine a Component's specific compiler config, run the following:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get COMPONENT_ID\n")),(0,i.mdx)("p",null,"For example:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get company.demo/ui/card\n")),(0,i.mdx)("p",null,"The output details the Component's env config which includes the compiler config:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'Environment: teambit.react/react\n...\nteambit.compilation/compiler\n\nconfigured compiler: teambit.typescript/typescript (TypeScript @ 4.4.2)\ncompiler config:\n{\n "compilerOptions": {\n "lib": [\n "es2019",\n "DOM",\n "ES6",\n "DOM.Iterable"\n ],\n "target": "es2015",\n "module": "commonjs",\n "jsx": "react",\n "declaration": true,\n "sourceMap": true,\n "skipLibCheck": true,\n "moduleResolution": "node",\n "esModuleInterop": true,\n "resolveJsonModule": true,\n "outDir": "dist"\n },\n "exclude": [\n "dist"\n ]\n}\n\n')),(0,i.mdx)("h2",null,"Setting a Component with a specific compiler"),(0,i.mdx)("p",null,"Specific compilers are applied on Components via the Components' Envs. For example, the ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.demo/ui/card")," Component examined earlier, is applied with\nthe ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript")," compiler by its Env, the React Env."),(0,i.mdx)("p",null,"To learn how to use a specific compiler, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Using compilers'"),".")))}u.__bit_component=o,u.isMDXComponent=!0},79391:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return o.default}});var o=i(t(4713));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0}},89914:(e,n,t)=>{var o={id:"teambit.compilation/compiler@1.0.309",homepage:"https://bit.cloud/teambit/compilation/compiler",exported:!0};function i(){const e=r(t(41594));return i=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,i.__bit_component=o,r.__bit_component=o;const a=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/compiler.svg"}));a.__bit_component=o,n.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{compositions:()=>f,compositions_metadata:()=>x,overview:()=>h});var i={};t.r(i),t.d(i,{default:()=>u});var r=t(89914),a=(t(41594),t(5016)),p=t(65682),m=t(79391),l=["components"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d.apply(null,arguments)}var c={},s="wrapper";function u(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,i=function(e,n){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(n.indexOf(o)>=0)continue;t[o]=e[o]}return t}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,l);return(0,a.mdx)(s,d({},c,t,{components:n,mdxType:"MDXLayout"}),(0,a.mdx)(p.MDXScopeProvider,{components:{CompilerOverview:m.Ay},mdxType:"MDXScopeProvider"},(0,a.mdx)(m.Ay,{mdxType:"CompilerOverview"})))}u.isMDXComponent=!0;const f=[r],h=[i],x={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.compilation/compiler-preview"]=n():e["teambit.compilation/compiler-preview"]=n()}(self,(()=>(()=>{"use strict";var e={93926:(e,n,t)=>{var o={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,p(t(41594));var i=t(5016),r=t(65682),a=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},m.apply(this,arguments)}function l(e,n){if(null==e)return{};var t,o,i=d(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(null==e)return{};var t,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||(i[t]=e[t]);return i}p.__bit_component=o,m.__bit_component=o,l.__bit_component=o,d.__bit_component=o;var c={},s="wrapper";function u(e){var n=e.components,t=l(e,a);return(0,i.mdx)(s,m({},c,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(r.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,i.mdx)("h1",null,"Compiler overview"),(0,i.mdx)("p",null,"The Compiler aspect provides a single interface for Component compilation, ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during development")," and ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during build"),".\nIt enables you to use the same commands and APIs to compile any Component, regardless of the specific compiler it uses."),(0,i.mdx)("div",{className:"admonition admonition-info alert alert--info"},(0,i.mdx)("div",{parentName:"div",className:"admonition-heading"},(0,i.mdx)("h5",{parentName:"div"},(0,i.mdx)("span",{parentName:"h5",className:"admonition-icon"},(0,i.mdx)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,i.mdx)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"info")),(0,i.mdx)("div",{parentName:"div",className:"admonition-content"},(0,i.mdx)("p",{parentName:"div"},"The specific compiler used by a Component (",(0,i.mdx)("a",{parentName:"p",href:"/"},"Babel"),", ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript"),", and so on) is set by the Component's Env."))),(0,i.mdx)("h2",null,"Compiling during development"),(0,i.mdx)("p",null,"Run the following to compile all your Workspace Components:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit compile\n")),(0,i.mdx)("p",null,"The following output lists the compilation results in a single format:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"}," STATUS COMPONENT ID\n✔ SUCCESS apps/bit-dev\n✔ SUCCESS blocks/component/architecture-breakdown\n✔ SUCCESS blocks/footer\n✔ SUCCESS blocks/header\n✔ SUCCESS buttons/button\n✔ SUCCESS content/adding-components\n")),(0,i.mdx)("p",null,"To 'watch' Components for changes, and to auto-compile modified Components, run:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit watch\n")),(0,i.mdx)("p",null,"The compiled code is written into each Component's corresponding package, in the ",(0,i.mdx)("a",{parentName:"p",href:"/dependencies/node-modules"},(0,i.mdx)("inlineCode",{parentName:"a"},"node_modules")," directory")," of your workspace.\nFor example, the compiled code for ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.scope/ui/text")," will be found in the ",(0,i.mdx)("inlineCode",{parentName:"p"},"./node_modules/@company/scope.ui.text/dist")," directory (inside your workspace)."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during development'"),"."),(0,i.mdx)("h2",null,"Compiling during build"),(0,i.mdx)("p",null,"Run the following to compile Components as part of the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"build pipeline")," (which prepares Components for distribution):"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,i.mdx)("p",null,"The output to the terminal details the specific compilers being used, as well as the Envs that use them:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'...\n✔ env "teambit.harmony/aspect", task "teambit.compilation/compiler:BabelCompiler (compile components for artifact dist)" has completed successfully in 363ms\n✔ env "teambit.react/react", task "teambit.compilation/compiler:TSCompiler (compile components for artifact dist)" has completed successfully in 1s\n✔ env "teambit.mdx/mdx", task "teambit.compilation/compiler:MDXCompiler (compile components)" has completed successfully in 879ms\n...\nthe build has been completed. total: 19 tasks\n')),(0,i.mdx)("p",null,"The compiled code is written into the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's Capsule"),". Run ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit snap"))," or ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit tag"))," to execute the build pipeline (as well as other pipelines), and have the compiled code persisted in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component version"),", and included in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's package"),"."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during build'"),"."),(0,i.mdx)("h2",null,"Compilation strategies and standards"),(0,i.mdx)("p",null,"The Compiler aspect does not set specific compilation strategies as these are defined by the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"specific compilers")," themselves (and are often configurable by the Envs that use them)."),(0,i.mdx)("p",null,"However, all official Bit compilers are configured to favor dev experience when compiling during development, and to favor runtime performance and code universality, when compiling for distribution (during build)."),(0,i.mdx)("p",null,"For example, Bit's ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript compiler")," performs type-checking when compiling during build but skips it when compiling during development.\nThis enables faster compilation and better dev experience."),(0,i.mdx)("p",null,"To examine a Component's specific compiler config, run the following:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get COMPONENT_ID\n")),(0,i.mdx)("p",null,"For example:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get company.demo/ui/card\n")),(0,i.mdx)("p",null,"The output details the Component's env config which includes the compiler config:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'Environment: teambit.react/react\n...\nteambit.compilation/compiler\n\nconfigured compiler: teambit.typescript/typescript (TypeScript @ 4.4.2)\ncompiler config:\n{\n "compilerOptions": {\n "lib": [\n "es2019",\n "DOM",\n "ES6",\n "DOM.Iterable"\n ],\n "target": "es2015",\n "module": "commonjs",\n "jsx": "react",\n "declaration": true,\n "sourceMap": true,\n "skipLibCheck": true,\n "moduleResolution": "node",\n "esModuleInterop": true,\n "resolveJsonModule": true,\n "outDir": "dist"\n },\n "exclude": [\n "dist"\n ]\n}\n\n')),(0,i.mdx)("h2",null,"Setting a Component with a specific compiler"),(0,i.mdx)("p",null,"Specific compilers are applied on Components via the Components' Envs. For example, the ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.demo/ui/card")," Component examined earlier, is applied with\nthe ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript")," compiler by its Env, the React Env."),(0,i.mdx)("p",null,"To learn how to use a specific compiler, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Using compilers'"),".")))}u.__bit_component=o,u.isMDXComponent=!0},5856:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return o.default}});var o=i(t(93926));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0}},2842:(e,n,t)=>{var o={id:"teambit.compilation/compiler@1.0.311",homepage:"https://bit.cloud/teambit/compilation/compiler",exported:!0};function i(){const e=r(t(41594));return i=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,i.__bit_component=o,r.__bit_component=o;const a=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/compiler.svg"}));a.__bit_component=o,n.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{compositions:()=>f,compositions_metadata:()=>x,overview:()=>h});var i={};t.r(i),t.d(i,{default:()=>u});var r=t(2842),a=(t(41594),t(5016)),p=t(65682),m=t(5856),l=["components"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d.apply(null,arguments)}var c={},s="wrapper";function u(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,i=function(e,n){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(n.indexOf(o)>=0)continue;t[o]=e[o]}return t}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,l);return(0,a.mdx)(s,d({},c,t,{components:n,mdxType:"MDXLayout"}),(0,a.mdx)(p.MDXScopeProvider,{components:{CompilerOverview:m.Ay},mdxType:"MDXScopeProvider"},(0,a.mdx)(m.Ay,{mdxType:"CompilerOverview"})))}u.isMDXComponent=!0;const f=[r],h=[i],x={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -276,7 +276,8 @@
|
|
|
276
276
|
"character": 3
|
|
277
277
|
},
|
|
278
278
|
"raw": "/**\n * Run compilation on `bit new` and when new components are imported\n */",
|
|
279
|
-
"comment": "Run compilation on `bit new` and when new components are imported"
|
|
279
|
+
"comment": "Run compilation on `bit new` and when new components are imported",
|
|
280
|
+
"tags": []
|
|
280
281
|
},
|
|
281
282
|
"signature": "(method) CompilerMain.compileOnWorkspace(componentsIds?: string[] | ComponentID[] | ComponentID[], options?: CompileOptions): Promise<BuildResult[]>",
|
|
282
283
|
"name": "compileOnWorkspace",
|
|
@@ -413,7 +414,8 @@
|
|
|
413
414
|
"character": 3
|
|
414
415
|
},
|
|
415
416
|
"raw": "/**\n * API to create a new compiler task, it facilitates the usage of multiple compilers.\n * with this method you can create any number of compilers and add them to the buildPipeline.\n */",
|
|
416
|
-
"comment": "API to create a new compiler task, it facilitates the usage of multiple compilers.\nwith this method you can create any number of compilers and add them to the buildPipeline."
|
|
417
|
+
"comment": "API to create a new compiler task, it facilitates the usage of multiple compilers.\nwith this method you can create any number of compilers and add them to the buildPipeline.",
|
|
418
|
+
"tags": []
|
|
417
419
|
},
|
|
418
420
|
"signature": "(method) CompilerMain.createTask(name: string, compiler: Compiler): CompilerTask",
|
|
419
421
|
"name": "createTask",
|
|
@@ -485,7 +487,8 @@
|
|
|
485
487
|
"character": 3
|
|
486
488
|
},
|
|
487
489
|
"raw": "/**\n * find the compiler configured on the workspace and ask for the dist path.\n */",
|
|
488
|
-
"comment": "find the compiler configured on the workspace and ask for the dist path."
|
|
490
|
+
"comment": "find the compiler configured on the workspace and ask for the dist path.",
|
|
491
|
+
"tags": []
|
|
489
492
|
},
|
|
490
493
|
"signature": "(method) CompilerMain.getDistPathBySrcPath(component: Component, srcPath: string): string | null",
|
|
491
494
|
"name": "getDistPathBySrcPath",
|
|
@@ -580,7 +583,8 @@
|
|
|
580
583
|
"character": 3
|
|
581
584
|
},
|
|
582
585
|
"raw": "/**\n * find the compiler configured on the workspace and ask for the dist folder path.\n */",
|
|
583
|
-
"comment": "find the compiler configured on the workspace and ask for the dist folder path."
|
|
586
|
+
"comment": "find the compiler configured on the workspace and ask for the dist folder path.",
|
|
587
|
+
"tags": []
|
|
584
588
|
},
|
|
585
589
|
"signature": "(method) CompilerMain.getRelativeDistFolder(component: Component): string",
|
|
586
590
|
"name": "getRelativeDistFolder",
|
|
@@ -1155,7 +1159,8 @@
|
|
|
1155
1159
|
"character": 3
|
|
1156
1160
|
},
|
|
1157
1161
|
"raw": "/**\n * instance of compiler to use.\n */",
|
|
1158
|
-
"comment": "instance of compiler to use."
|
|
1162
|
+
"comment": "instance of compiler to use.",
|
|
1163
|
+
"tags": []
|
|
1159
1164
|
},
|
|
1160
1165
|
"signature": "(property) compiler: EnvHandler<Compiler>",
|
|
1161
1166
|
"name": "compiler",
|
|
@@ -1200,7 +1205,8 @@
|
|
|
1200
1205
|
"character": 3
|
|
1201
1206
|
},
|
|
1202
1207
|
"raw": "/**\n * name of compiler task\n */",
|
|
1203
|
-
"comment": "name of compiler task"
|
|
1208
|
+
"comment": "name of compiler task",
|
|
1209
|
+
"tags": []
|
|
1204
1210
|
},
|
|
1205
1211
|
"signature": "(property) name?: string | undefined",
|
|
1206
1212
|
"name": "name",
|
|
@@ -1242,7 +1248,8 @@
|
|
|
1242
1248
|
"character": 1
|
|
1243
1249
|
},
|
|
1244
1250
|
"raw": "/**\n * compiler build task. Allows to compile components during component build.\n */",
|
|
1245
|
-
"comment": "compiler build task. Allows to compile components during component build."
|
|
1251
|
+
"comment": "compiler build task. Allows to compile components during component build.",
|
|
1252
|
+
"tags": []
|
|
1246
1253
|
},
|
|
1247
1254
|
"signature": "class CompilerTask",
|
|
1248
1255
|
"name": "CompilerTask",
|
|
@@ -1704,7 +1711,7 @@
|
|
|
1704
1711
|
"_legacy": {
|
|
1705
1712
|
"scope": "teambit.compilation",
|
|
1706
1713
|
"name": "compiler",
|
|
1707
|
-
"version": "1.0.
|
|
1714
|
+
"version": "1.0.311"
|
|
1708
1715
|
},
|
|
1709
1716
|
"_scope": "teambit.compilation"
|
|
1710
1717
|
}
|
|
@@ -1746,7 +1753,8 @@
|
|
|
1746
1753
|
"character": 3
|
|
1747
1754
|
},
|
|
1748
1755
|
"raw": "/**\n * return a compiler instance.\n */",
|
|
1749
|
-
"comment": "return a compiler instance."
|
|
1756
|
+
"comment": "return a compiler instance.",
|
|
1757
|
+
"tags": []
|
|
1750
1758
|
},
|
|
1751
1759
|
"signature": "(method) CompilerEnv.compiler(): EnvHandler<Compiler>",
|
|
1752
1760
|
"name": "compiler",
|
|
@@ -1960,7 +1968,8 @@
|
|
|
1960
1968
|
"character": 3
|
|
1961
1969
|
},
|
|
1962
1970
|
"raw": "/**\n * id of the compiler.\n */",
|
|
1963
|
-
"comment": "id of the compiler."
|
|
1971
|
+
"comment": "id of the compiler.",
|
|
1972
|
+
"tags": []
|
|
1964
1973
|
},
|
|
1965
1974
|
"signature": "(property) Compiler.id: string",
|
|
1966
1975
|
"name": "id",
|
|
@@ -1990,7 +1999,8 @@
|
|
|
1990
1999
|
"character": 3
|
|
1991
2000
|
},
|
|
1992
2001
|
"raw": "/**\n * Delete dist folder before writing the new compiled files\n */",
|
|
1993
|
-
"comment": "Delete dist folder before writing the new compiled files"
|
|
2002
|
+
"comment": "Delete dist folder before writing the new compiled files",
|
|
2003
|
+
"tags": []
|
|
1994
2004
|
},
|
|
1995
2005
|
"signature": "(property) Compiler.deleteDistDir?: boolean | undefined",
|
|
1996
2006
|
"name": "deleteDistDir",
|
|
@@ -2020,7 +2030,8 @@
|
|
|
2020
2030
|
"character": 3
|
|
2021
2031
|
},
|
|
2022
2032
|
"raw": "/**\n * serialized config of the compiler.\n */",
|
|
2023
|
-
"comment": "serialized config of the compiler."
|
|
2033
|
+
"comment": "serialized config of the compiler.",
|
|
2034
|
+
"tags": []
|
|
2024
2035
|
},
|
|
2025
2036
|
"signature": "(method) Compiler.displayConfig?(): string",
|
|
2026
2037
|
"name": "displayConfig",
|
|
@@ -2051,7 +2062,8 @@
|
|
|
2051
2062
|
"character": 3
|
|
2052
2063
|
},
|
|
2053
2064
|
"raw": "/**\n * transpile a single file that gets saved into the workspace, used by `bit compile` and during\n * development\n */",
|
|
2054
|
-
"comment": "transpile a single file that gets saved into the workspace, used by `bit compile` and during\ndevelopment"
|
|
2065
|
+
"comment": "transpile a single file that gets saved into the workspace, used by `bit compile` and during\ndevelopment",
|
|
2066
|
+
"tags": []
|
|
2055
2067
|
},
|
|
2056
2068
|
"signature": "(property) Compiler.transpileFile?: ((fileContent: string, params: TranspileFileParams) => TranspileFileOutput | Promise<TranspileFileOutput>) | undefined",
|
|
2057
2069
|
"name": "transpileFile",
|
|
@@ -2164,7 +2176,8 @@
|
|
|
2164
2176
|
"character": 3
|
|
2165
2177
|
},
|
|
2166
2178
|
"raw": "/**\n * transpile all the files of a component, use this when you can't use `transpileFile`\n */",
|
|
2167
|
-
"comment": "transpile all the files of a component, use this when you can't use `transpileFile`"
|
|
2179
|
+
"comment": "transpile all the files of a component, use this when you can't use `transpileFile`",
|
|
2180
|
+
"tags": []
|
|
2168
2181
|
},
|
|
2169
2182
|
"signature": "(property) Compiler.transpileComponent?: ((params: TranspileComponentParams) => Promise<void>) | undefined",
|
|
2170
2183
|
"name": "transpileComponent",
|
|
@@ -2238,7 +2251,8 @@
|
|
|
2238
2251
|
"character": 3
|
|
2239
2252
|
},
|
|
2240
2253
|
"raw": "/**\n * compile components inside isolated capsules. this being used during tag for the release.\n * meaning, the final package of the component has the dists generated by this method.\n *\n * no need to handle non-supported-files (e.g. assets) in this method because the compiler-aspect already copies them\n * into the compiler.dist in the preBuild stage.\n */",
|
|
2241
|
-
"comment": "compile components inside isolated capsules. this being used during tag for the release.\nmeaning, the final package of the component has the dists generated by this method.\n\nno need to handle non-supported-files (e.g. assets) in this method because the compiler-aspect already copies them\ninto the compiler.dist in the preBuild stage."
|
|
2254
|
+
"comment": "compile components inside isolated capsules. this being used during tag for the release.\nmeaning, the final package of the component has the dists generated by this method.\n\nno need to handle non-supported-files (e.g. assets) in this method because the compiler-aspect already copies them\ninto the compiler.dist in the preBuild stage.",
|
|
2255
|
+
"tags": []
|
|
2242
2256
|
},
|
|
2243
2257
|
"signature": "(method) Compiler.build(context: BuildContext): Promise<BuiltTaskResult>",
|
|
2244
2258
|
"name": "build",
|
|
@@ -2309,7 +2323,8 @@
|
|
|
2309
2323
|
"character": 3
|
|
2310
2324
|
},
|
|
2311
2325
|
"raw": "/**\n * return the dist dir of the compiled files (relative path from the component root dir)\n */",
|
|
2312
|
-
"comment": "return the dist dir of the compiled files (relative path from the component root dir)"
|
|
2326
|
+
"comment": "return the dist dir of the compiled files (relative path from the component root dir)",
|
|
2327
|
+
"tags": []
|
|
2313
2328
|
},
|
|
2314
2329
|
"signature": "(method) Compiler.getDistDir?(): string",
|
|
2315
2330
|
"name": "getDistDir",
|
|
@@ -2340,7 +2355,8 @@
|
|
|
2340
2355
|
"character": 3
|
|
2341
2356
|
},
|
|
2342
2357
|
"raw": "/**\n * given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\n * both, the return path and the given path are relative paths.\n */",
|
|
2343
|
-
"comment": "given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\nboth, the return path and the given path are relative paths."
|
|
2358
|
+
"comment": "given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\nboth, the return path and the given path are relative paths.",
|
|
2359
|
+
"tags": []
|
|
2344
2360
|
},
|
|
2345
2361
|
"signature": "(method) Compiler.getDistPathBySrcPath(srcPath: string): string",
|
|
2346
2362
|
"name": "getDistPathBySrcPath",
|
|
@@ -2392,7 +2408,8 @@
|
|
|
2392
2408
|
"character": 3
|
|
2393
2409
|
},
|
|
2394
2410
|
"raw": "/**\n * given a component, returns the path to the source folder to use for the preview, uses the one\n * in node_modules by default\n */",
|
|
2395
|
-
"comment": "given a component, returns the path to the source folder to use for the preview, uses the one\nin node_modules by default"
|
|
2411
|
+
"comment": "given a component, returns the path to the source folder to use for the preview, uses the one\nin node_modules by default",
|
|
2412
|
+
"tags": []
|
|
2396
2413
|
},
|
|
2397
2414
|
"signature": "(method) Compiler.getPreviewComponentRootPath?(component: Component): string",
|
|
2398
2415
|
"name": "getPreviewComponentRootPath",
|
|
@@ -2448,7 +2465,8 @@
|
|
|
2448
2465
|
"character": 3
|
|
2449
2466
|
},
|
|
2450
2467
|
"raw": "/**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */",
|
|
2451
|
-
"comment": "only supported files matching get compiled. others, are copied to the dist dir."
|
|
2468
|
+
"comment": "only supported files matching get compiled. others, are copied to the dist dir.",
|
|
2469
|
+
"tags": []
|
|
2452
2470
|
},
|
|
2453
2471
|
"signature": "(method) Compiler.isFileSupported(filePath: string): boolean",
|
|
2454
2472
|
"name": "isFileSupported",
|
|
@@ -2500,7 +2518,8 @@
|
|
|
2500
2518
|
"character": 3
|
|
2501
2519
|
},
|
|
2502
2520
|
"raw": "/**\n * sugar to create a Compiler task via the concrete compiler\n */",
|
|
2503
|
-
"comment": "sugar to create a Compiler task via the concrete compiler"
|
|
2521
|
+
"comment": "sugar to create a Compiler task via the concrete compiler",
|
|
2522
|
+
"tags": []
|
|
2504
2523
|
},
|
|
2505
2524
|
"signature": "(method) Compiler.createTask?(name?: string): BuildTask",
|
|
2506
2525
|
"name": "createTask",
|
|
@@ -2556,7 +2575,8 @@
|
|
|
2556
2575
|
"character": 3
|
|
2557
2576
|
},
|
|
2558
2577
|
"raw": "/**\n * run before the build pipeline has started. this is useful when some preparation are needed to\n * be done on all envs before the build starts.\n */",
|
|
2559
|
-
"comment": "run before the build pipeline has started. this is useful when some preparation are needed to\nbe done on all envs before the build starts."
|
|
2578
|
+
"comment": "run before the build pipeline has started. this is useful when some preparation are needed to\nbe done on all envs before the build starts.",
|
|
2579
|
+
"tags": []
|
|
2560
2580
|
},
|
|
2561
2581
|
"signature": "(method) Compiler.preBuild?(context: BuildContext): Promise<void>",
|
|
2562
2582
|
"name": "preBuild",
|
|
@@ -2623,7 +2643,8 @@
|
|
|
2623
2643
|
"character": 3
|
|
2624
2644
|
},
|
|
2625
2645
|
"raw": "/**\n * run after the build pipeline completed for all envs. useful for some cleanups\n */",
|
|
2626
|
-
"comment": "run after the build pipeline completed for all envs. useful for some cleanups"
|
|
2646
|
+
"comment": "run after the build pipeline completed for all envs. useful for some cleanups",
|
|
2647
|
+
"tags": []
|
|
2627
2648
|
},
|
|
2628
2649
|
"signature": "(method) Compiler.postBuild?(context: BuildContext, tasksResults: TaskResultsList): Promise<void>",
|
|
2629
2650
|
"name": "postBuild",
|
|
@@ -2714,7 +2735,8 @@
|
|
|
2714
2735
|
"character": 3
|
|
2715
2736
|
},
|
|
2716
2737
|
"raw": "/**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */",
|
|
2717
|
-
"comment": "returns the version of the current compiler instance (e.g. '4.0.1')."
|
|
2738
|
+
"comment": "returns the version of the current compiler instance (e.g. '4.0.1').",
|
|
2739
|
+
"tags": []
|
|
2718
2740
|
},
|
|
2719
2741
|
"signature": "(method) Compiler.version(): string",
|
|
2720
2742
|
"name": "version",
|
|
@@ -2745,7 +2767,8 @@
|
|
|
2745
2767
|
"character": 3
|
|
2746
2768
|
},
|
|
2747
2769
|
"raw": "/**\n * returns the display name of the current compiler instance (e.g. 'TypeScript')\n */",
|
|
2748
|
-
"comment": "returns the display name of the current compiler instance (e.g. 'TypeScript')"
|
|
2770
|
+
"comment": "returns the display name of the current compiler instance (e.g. 'TypeScript')",
|
|
2771
|
+
"tags": []
|
|
2749
2772
|
},
|
|
2750
2773
|
"signature": "(property) Compiler.displayName: string",
|
|
2751
2774
|
"name": "displayName",
|
|
@@ -2809,7 +2832,8 @@
|
|
|
2809
2832
|
"character": 3
|
|
2810
2833
|
},
|
|
2811
2834
|
"raw": "/**\n * name of the compiler.\n */",
|
|
2812
|
-
"comment": "name of the compiler."
|
|
2835
|
+
"comment": "name of the compiler.",
|
|
2836
|
+
"tags": []
|
|
2813
2837
|
}
|
|
2814
2838
|
},
|
|
2815
2839
|
{
|
|
@@ -2839,7 +2863,8 @@
|
|
|
2839
2863
|
"character": 3
|
|
2840
2864
|
},
|
|
2841
2865
|
"raw": "/**\n * relative path of the dist directory inside the capsule. e.g. \"dist\".\n */",
|
|
2842
|
-
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\"."
|
|
2866
|
+
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\".",
|
|
2867
|
+
"tags": []
|
|
2843
2868
|
}
|
|
2844
2869
|
},
|
|
2845
2870
|
{
|
|
@@ -2877,7 +2902,8 @@
|
|
|
2877
2902
|
"character": 3
|
|
2878
2903
|
},
|
|
2879
2904
|
"raw": "/**\n * determines which ones of the generated files will be saved in the bit objects when tagging.\n * e.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\n * see https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.\n */",
|
|
2880
|
-
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax."
|
|
2905
|
+
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.",
|
|
2906
|
+
"tags": []
|
|
2881
2907
|
}
|
|
2882
2908
|
},
|
|
2883
2909
|
{
|
|
@@ -2907,7 +2933,8 @@
|
|
|
2907
2933
|
"character": 3
|
|
2908
2934
|
},
|
|
2909
2935
|
"raw": "/**\n * whether or not unsupported files (such as assets) should be copied into the dist directory\n */",
|
|
2910
|
-
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory"
|
|
2936
|
+
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory",
|
|
2937
|
+
"tags": []
|
|
2911
2938
|
}
|
|
2912
2939
|
},
|
|
2913
2940
|
{
|
|
@@ -2937,7 +2964,8 @@
|
|
|
2937
2964
|
"character": 3
|
|
2938
2965
|
},
|
|
2939
2966
|
"raw": "/**\n * optional. default to \"dist\".\n * useful when the build pipeline has multiple compiler tasks of the same compiler.\n * e.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\n * the second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.\n */",
|
|
2940
|
-
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly."
|
|
2967
|
+
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.",
|
|
2968
|
+
"tags": []
|
|
2941
2969
|
}
|
|
2942
2970
|
}
|
|
2943
2971
|
]
|
|
@@ -2964,7 +2992,7 @@
|
|
|
2964
2992
|
"_legacy": {
|
|
2965
2993
|
"scope": "teambit.compilation",
|
|
2966
2994
|
"name": "compiler",
|
|
2967
|
-
"version": "1.0.
|
|
2995
|
+
"version": "1.0.311"
|
|
2968
2996
|
},
|
|
2969
2997
|
"_scope": "teambit.compilation"
|
|
2970
2998
|
}
|
|
@@ -3006,7 +3034,8 @@
|
|
|
3006
3034
|
"character": 3
|
|
3007
3035
|
},
|
|
3008
3036
|
"raw": "/**\n * name of the compiler.\n */",
|
|
3009
|
-
"comment": "name of the compiler."
|
|
3037
|
+
"comment": "name of the compiler.",
|
|
3038
|
+
"tags": []
|
|
3010
3039
|
},
|
|
3011
3040
|
"signature": "(property) CompilerOptions.name?: string | undefined",
|
|
3012
3041
|
"name": "name",
|
|
@@ -3036,7 +3065,8 @@
|
|
|
3036
3065
|
"character": 3
|
|
3037
3066
|
},
|
|
3038
3067
|
"raw": "/**\n * relative path of the dist directory inside the capsule. e.g. \"dist\".\n */",
|
|
3039
|
-
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\"."
|
|
3068
|
+
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\".",
|
|
3069
|
+
"tags": []
|
|
3040
3070
|
},
|
|
3041
3071
|
"signature": "(property) CompilerOptions.distDir: string",
|
|
3042
3072
|
"name": "distDir",
|
|
@@ -3066,7 +3096,8 @@
|
|
|
3066
3096
|
"character": 3
|
|
3067
3097
|
},
|
|
3068
3098
|
"raw": "/**\n * determines which ones of the generated files will be saved in the bit objects when tagging.\n * e.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\n * see https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.\n */",
|
|
3069
|
-
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax."
|
|
3099
|
+
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.",
|
|
3100
|
+
"tags": []
|
|
3070
3101
|
},
|
|
3071
3102
|
"signature": "(property) CompilerOptions.distGlobPatterns?: string[] | undefined",
|
|
3072
3103
|
"name": "distGlobPatterns",
|
|
@@ -3104,7 +3135,8 @@
|
|
|
3104
3135
|
"character": 3
|
|
3105
3136
|
},
|
|
3106
3137
|
"raw": "/**\n * whether or not unsupported files (such as assets) should be copied into the dist directory\n */",
|
|
3107
|
-
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory"
|
|
3138
|
+
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory",
|
|
3139
|
+
"tags": []
|
|
3108
3140
|
},
|
|
3109
3141
|
"signature": "(property) CompilerOptions.shouldCopyNonSupportedFiles?: boolean | undefined",
|
|
3110
3142
|
"name": "shouldCopyNonSupportedFiles",
|
|
@@ -3134,7 +3166,8 @@
|
|
|
3134
3166
|
"character": 3
|
|
3135
3167
|
},
|
|
3136
3168
|
"raw": "/**\n * optional. default to \"dist\".\n * useful when the build pipeline has multiple compiler tasks of the same compiler.\n * e.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\n * the second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.\n */",
|
|
3137
|
-
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly."
|
|
3169
|
+
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.",
|
|
3170
|
+
"tags": []
|
|
3138
3171
|
},
|
|
3139
3172
|
"signature": "(property) CompilerOptions.artifactName?: string | undefined",
|
|
3140
3173
|
"name": "artifactName",
|
|
@@ -3587,7 +3620,7 @@
|
|
|
3587
3620
|
"_legacy": {
|
|
3588
3621
|
"scope": "teambit.compilation",
|
|
3589
3622
|
"name": "compiler",
|
|
3590
|
-
"version": "1.0.
|
|
3623
|
+
"version": "1.0.311"
|
|
3591
3624
|
},
|
|
3592
3625
|
"_scope": "teambit.compilation"
|
|
3593
3626
|
}
|
|
@@ -3863,7 +3896,8 @@
|
|
|
3863
3896
|
"character": 3
|
|
3864
3897
|
},
|
|
3865
3898
|
"raw": "/**\n * Run compilation on `bit new` and when new components are imported\n */",
|
|
3866
|
-
"comment": "Run compilation on `bit new` and when new components are imported"
|
|
3899
|
+
"comment": "Run compilation on `bit new` and when new components are imported",
|
|
3900
|
+
"tags": []
|
|
3867
3901
|
},
|
|
3868
3902
|
"signature": "(method) CompilerMain.compileOnWorkspace(componentsIds?: string[] | ComponentID[] | ComponentID[], options?: CompileOptions): Promise<BuildResult[]>",
|
|
3869
3903
|
"name": "compileOnWorkspace",
|
|
@@ -4000,7 +4034,8 @@
|
|
|
4000
4034
|
"character": 3
|
|
4001
4035
|
},
|
|
4002
4036
|
"raw": "/**\n * API to create a new compiler task, it facilitates the usage of multiple compilers.\n * with this method you can create any number of compilers and add them to the buildPipeline.\n */",
|
|
4003
|
-
"comment": "API to create a new compiler task, it facilitates the usage of multiple compilers.\nwith this method you can create any number of compilers and add them to the buildPipeline."
|
|
4037
|
+
"comment": "API to create a new compiler task, it facilitates the usage of multiple compilers.\nwith this method you can create any number of compilers and add them to the buildPipeline.",
|
|
4038
|
+
"tags": []
|
|
4004
4039
|
},
|
|
4005
4040
|
"signature": "(method) CompilerMain.createTask(name: string, compiler: Compiler): CompilerTask",
|
|
4006
4041
|
"name": "createTask",
|
|
@@ -4072,7 +4107,8 @@
|
|
|
4072
4107
|
"character": 3
|
|
4073
4108
|
},
|
|
4074
4109
|
"raw": "/**\n * find the compiler configured on the workspace and ask for the dist path.\n */",
|
|
4075
|
-
"comment": "find the compiler configured on the workspace and ask for the dist path."
|
|
4110
|
+
"comment": "find the compiler configured on the workspace and ask for the dist path.",
|
|
4111
|
+
"tags": []
|
|
4076
4112
|
},
|
|
4077
4113
|
"signature": "(method) CompilerMain.getDistPathBySrcPath(component: Component, srcPath: string): string | null",
|
|
4078
4114
|
"name": "getDistPathBySrcPath",
|
|
@@ -4167,7 +4203,8 @@
|
|
|
4167
4203
|
"character": 3
|
|
4168
4204
|
},
|
|
4169
4205
|
"raw": "/**\n * find the compiler configured on the workspace and ask for the dist folder path.\n */",
|
|
4170
|
-
"comment": "find the compiler configured on the workspace and ask for the dist folder path."
|
|
4206
|
+
"comment": "find the compiler configured on the workspace and ask for the dist folder path.",
|
|
4207
|
+
"tags": []
|
|
4171
4208
|
},
|
|
4172
4209
|
"signature": "(method) CompilerMain.getRelativeDistFolder(component: Component): string",
|
|
4173
4210
|
"name": "getRelativeDistFolder",
|
|
@@ -4765,7 +4802,8 @@
|
|
|
4765
4802
|
"character": 3
|
|
4766
4803
|
},
|
|
4767
4804
|
"raw": "/**\n * instance of compiler to use.\n */",
|
|
4768
|
-
"comment": "instance of compiler to use."
|
|
4805
|
+
"comment": "instance of compiler to use.",
|
|
4806
|
+
"tags": []
|
|
4769
4807
|
},
|
|
4770
4808
|
"signature": "(property) compiler: EnvHandler<Compiler>",
|
|
4771
4809
|
"name": "compiler",
|
|
@@ -4810,7 +4848,8 @@
|
|
|
4810
4848
|
"character": 3
|
|
4811
4849
|
},
|
|
4812
4850
|
"raw": "/**\n * name of compiler task\n */",
|
|
4813
|
-
"comment": "name of compiler task"
|
|
4851
|
+
"comment": "name of compiler task",
|
|
4852
|
+
"tags": []
|
|
4814
4853
|
},
|
|
4815
4854
|
"signature": "(property) name?: string | undefined",
|
|
4816
4855
|
"name": "name",
|
|
@@ -4843,7 +4882,8 @@
|
|
|
4843
4882
|
"character": 1
|
|
4844
4883
|
},
|
|
4845
4884
|
"raw": "/**\n * compiler build task. Allows to compile components during component build.\n */",
|
|
4846
|
-
"comment": "compiler build task. Allows to compile components during component build."
|
|
4885
|
+
"comment": "compiler build task. Allows to compile components during component build.",
|
|
4886
|
+
"tags": []
|
|
4847
4887
|
},
|
|
4848
4888
|
"signature": "class CompilerTask",
|
|
4849
4889
|
"name": "CompilerTask",
|
|
@@ -5305,7 +5345,7 @@
|
|
|
5305
5345
|
"_legacy": {
|
|
5306
5346
|
"scope": "teambit.compilation",
|
|
5307
5347
|
"name": "compiler",
|
|
5308
|
-
"version": "1.0.
|
|
5348
|
+
"version": "1.0.311"
|
|
5309
5349
|
},
|
|
5310
5350
|
"_scope": "teambit.compilation"
|
|
5311
5351
|
}
|
|
@@ -5349,7 +5389,8 @@
|
|
|
5349
5389
|
"character": 3
|
|
5350
5390
|
},
|
|
5351
5391
|
"raw": "/**\n * return a compiler instance.\n */",
|
|
5352
|
-
"comment": "return a compiler instance."
|
|
5392
|
+
"comment": "return a compiler instance.",
|
|
5393
|
+
"tags": []
|
|
5353
5394
|
},
|
|
5354
5395
|
"signature": "(method) CompilerEnv.compiler(): EnvHandler<Compiler>",
|
|
5355
5396
|
"name": "compiler",
|
|
@@ -5828,7 +5869,8 @@
|
|
|
5828
5869
|
"character": 3
|
|
5829
5870
|
},
|
|
5830
5871
|
"raw": "/**\n * name of the compiler.\n */",
|
|
5831
|
-
"comment": "name of the compiler."
|
|
5872
|
+
"comment": "name of the compiler.",
|
|
5873
|
+
"tags": []
|
|
5832
5874
|
},
|
|
5833
5875
|
"signature": "(property) CompilerOptions.name?: string | undefined",
|
|
5834
5876
|
"name": "name",
|
|
@@ -5858,7 +5900,8 @@
|
|
|
5858
5900
|
"character": 3
|
|
5859
5901
|
},
|
|
5860
5902
|
"raw": "/**\n * relative path of the dist directory inside the capsule. e.g. \"dist\".\n */",
|
|
5861
|
-
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\"."
|
|
5903
|
+
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\".",
|
|
5904
|
+
"tags": []
|
|
5862
5905
|
},
|
|
5863
5906
|
"signature": "(property) CompilerOptions.distDir: string",
|
|
5864
5907
|
"name": "distDir",
|
|
@@ -5888,7 +5931,8 @@
|
|
|
5888
5931
|
"character": 3
|
|
5889
5932
|
},
|
|
5890
5933
|
"raw": "/**\n * determines which ones of the generated files will be saved in the bit objects when tagging.\n * e.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\n * see https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.\n */",
|
|
5891
|
-
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax."
|
|
5934
|
+
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.",
|
|
5935
|
+
"tags": []
|
|
5892
5936
|
},
|
|
5893
5937
|
"signature": "(property) CompilerOptions.distGlobPatterns?: string[] | undefined",
|
|
5894
5938
|
"name": "distGlobPatterns",
|
|
@@ -5926,7 +5970,8 @@
|
|
|
5926
5970
|
"character": 3
|
|
5927
5971
|
},
|
|
5928
5972
|
"raw": "/**\n * whether or not unsupported files (such as assets) should be copied into the dist directory\n */",
|
|
5929
|
-
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory"
|
|
5973
|
+
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory",
|
|
5974
|
+
"tags": []
|
|
5930
5975
|
},
|
|
5931
5976
|
"signature": "(property) CompilerOptions.shouldCopyNonSupportedFiles?: boolean | undefined",
|
|
5932
5977
|
"name": "shouldCopyNonSupportedFiles",
|
|
@@ -5956,7 +6001,8 @@
|
|
|
5956
6001
|
"character": 3
|
|
5957
6002
|
},
|
|
5958
6003
|
"raw": "/**\n * optional. default to \"dist\".\n * useful when the build pipeline has multiple compiler tasks of the same compiler.\n * e.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\n * the second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.\n */",
|
|
5959
|
-
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly."
|
|
6004
|
+
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.",
|
|
6005
|
+
"tags": []
|
|
5960
6006
|
},
|
|
5961
6007
|
"signature": "(property) CompilerOptions.artifactName?: string | undefined",
|
|
5962
6008
|
"name": "artifactName",
|
|
@@ -5999,7 +6045,8 @@
|
|
|
5999
6045
|
"character": 3
|
|
6000
6046
|
},
|
|
6001
6047
|
"raw": "/**\n * id of the compiler.\n */",
|
|
6002
|
-
"comment": "id of the compiler."
|
|
6048
|
+
"comment": "id of the compiler.",
|
|
6049
|
+
"tags": []
|
|
6003
6050
|
},
|
|
6004
6051
|
"signature": "(property) Compiler.id: string",
|
|
6005
6052
|
"name": "id",
|
|
@@ -6029,7 +6076,8 @@
|
|
|
6029
6076
|
"character": 3
|
|
6030
6077
|
},
|
|
6031
6078
|
"raw": "/**\n * Delete dist folder before writing the new compiled files\n */",
|
|
6032
|
-
"comment": "Delete dist folder before writing the new compiled files"
|
|
6079
|
+
"comment": "Delete dist folder before writing the new compiled files",
|
|
6080
|
+
"tags": []
|
|
6033
6081
|
},
|
|
6034
6082
|
"signature": "(property) Compiler.deleteDistDir?: boolean | undefined",
|
|
6035
6083
|
"name": "deleteDistDir",
|
|
@@ -6059,7 +6107,8 @@
|
|
|
6059
6107
|
"character": 3
|
|
6060
6108
|
},
|
|
6061
6109
|
"raw": "/**\n * serialized config of the compiler.\n */",
|
|
6062
|
-
"comment": "serialized config of the compiler."
|
|
6110
|
+
"comment": "serialized config of the compiler.",
|
|
6111
|
+
"tags": []
|
|
6063
6112
|
},
|
|
6064
6113
|
"signature": "(method) Compiler.displayConfig?(): string",
|
|
6065
6114
|
"name": "displayConfig",
|
|
@@ -6090,7 +6139,8 @@
|
|
|
6090
6139
|
"character": 3
|
|
6091
6140
|
},
|
|
6092
6141
|
"raw": "/**\n * transpile a single file that gets saved into the workspace, used by `bit compile` and during\n * development\n */",
|
|
6093
|
-
"comment": "transpile a single file that gets saved into the workspace, used by `bit compile` and during\ndevelopment"
|
|
6142
|
+
"comment": "transpile a single file that gets saved into the workspace, used by `bit compile` and during\ndevelopment",
|
|
6143
|
+
"tags": []
|
|
6094
6144
|
},
|
|
6095
6145
|
"signature": "(property) Compiler.transpileFile?: ((fileContent: string, params: TranspileFileParams) => TranspileFileOutput | Promise<TranspileFileOutput>) | undefined",
|
|
6096
6146
|
"name": "transpileFile",
|
|
@@ -6203,7 +6253,8 @@
|
|
|
6203
6253
|
"character": 3
|
|
6204
6254
|
},
|
|
6205
6255
|
"raw": "/**\n * transpile all the files of a component, use this when you can't use `transpileFile`\n */",
|
|
6206
|
-
"comment": "transpile all the files of a component, use this when you can't use `transpileFile`"
|
|
6256
|
+
"comment": "transpile all the files of a component, use this when you can't use `transpileFile`",
|
|
6257
|
+
"tags": []
|
|
6207
6258
|
},
|
|
6208
6259
|
"signature": "(property) Compiler.transpileComponent?: ((params: TranspileComponentParams) => Promise<void>) | undefined",
|
|
6209
6260
|
"name": "transpileComponent",
|
|
@@ -6277,7 +6328,8 @@
|
|
|
6277
6328
|
"character": 3
|
|
6278
6329
|
},
|
|
6279
6330
|
"raw": "/**\n * compile components inside isolated capsules. this being used during tag for the release.\n * meaning, the final package of the component has the dists generated by this method.\n *\n * no need to handle non-supported-files (e.g. assets) in this method because the compiler-aspect already copies them\n * into the compiler.dist in the preBuild stage.\n */",
|
|
6280
|
-
"comment": "compile components inside isolated capsules. this being used during tag for the release.\nmeaning, the final package of the component has the dists generated by this method.\n\nno need to handle non-supported-files (e.g. assets) in this method because the compiler-aspect already copies them\ninto the compiler.dist in the preBuild stage."
|
|
6331
|
+
"comment": "compile components inside isolated capsules. this being used during tag for the release.\nmeaning, the final package of the component has the dists generated by this method.\n\nno need to handle non-supported-files (e.g. assets) in this method because the compiler-aspect already copies them\ninto the compiler.dist in the preBuild stage.",
|
|
6332
|
+
"tags": []
|
|
6281
6333
|
},
|
|
6282
6334
|
"signature": "(method) Compiler.build(context: BuildContext): Promise<BuiltTaskResult>",
|
|
6283
6335
|
"name": "build",
|
|
@@ -6348,7 +6400,8 @@
|
|
|
6348
6400
|
"character": 3
|
|
6349
6401
|
},
|
|
6350
6402
|
"raw": "/**\n * return the dist dir of the compiled files (relative path from the component root dir)\n */",
|
|
6351
|
-
"comment": "return the dist dir of the compiled files (relative path from the component root dir)"
|
|
6403
|
+
"comment": "return the dist dir of the compiled files (relative path from the component root dir)",
|
|
6404
|
+
"tags": []
|
|
6352
6405
|
},
|
|
6353
6406
|
"signature": "(method) Compiler.getDistDir?(): string",
|
|
6354
6407
|
"name": "getDistDir",
|
|
@@ -6379,7 +6432,8 @@
|
|
|
6379
6432
|
"character": 3
|
|
6380
6433
|
},
|
|
6381
6434
|
"raw": "/**\n * given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\n * both, the return path and the given path are relative paths.\n */",
|
|
6382
|
-
"comment": "given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\nboth, the return path and the given path are relative paths."
|
|
6435
|
+
"comment": "given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\nboth, the return path and the given path are relative paths.",
|
|
6436
|
+
"tags": []
|
|
6383
6437
|
},
|
|
6384
6438
|
"signature": "(method) Compiler.getDistPathBySrcPath(srcPath: string): string",
|
|
6385
6439
|
"name": "getDistPathBySrcPath",
|
|
@@ -6431,7 +6485,8 @@
|
|
|
6431
6485
|
"character": 3
|
|
6432
6486
|
},
|
|
6433
6487
|
"raw": "/**\n * given a component, returns the path to the source folder to use for the preview, uses the one\n * in node_modules by default\n */",
|
|
6434
|
-
"comment": "given a component, returns the path to the source folder to use for the preview, uses the one\nin node_modules by default"
|
|
6488
|
+
"comment": "given a component, returns the path to the source folder to use for the preview, uses the one\nin node_modules by default",
|
|
6489
|
+
"tags": []
|
|
6435
6490
|
},
|
|
6436
6491
|
"signature": "(method) Compiler.getPreviewComponentRootPath?(component: Component): string",
|
|
6437
6492
|
"name": "getPreviewComponentRootPath",
|
|
@@ -6487,7 +6542,8 @@
|
|
|
6487
6542
|
"character": 3
|
|
6488
6543
|
},
|
|
6489
6544
|
"raw": "/**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */",
|
|
6490
|
-
"comment": "only supported files matching get compiled. others, are copied to the dist dir."
|
|
6545
|
+
"comment": "only supported files matching get compiled. others, are copied to the dist dir.",
|
|
6546
|
+
"tags": []
|
|
6491
6547
|
},
|
|
6492
6548
|
"signature": "(method) Compiler.isFileSupported(filePath: string): boolean",
|
|
6493
6549
|
"name": "isFileSupported",
|
|
@@ -6539,7 +6595,8 @@
|
|
|
6539
6595
|
"character": 3
|
|
6540
6596
|
},
|
|
6541
6597
|
"raw": "/**\n * sugar to create a Compiler task via the concrete compiler\n */",
|
|
6542
|
-
"comment": "sugar to create a Compiler task via the concrete compiler"
|
|
6598
|
+
"comment": "sugar to create a Compiler task via the concrete compiler",
|
|
6599
|
+
"tags": []
|
|
6543
6600
|
},
|
|
6544
6601
|
"signature": "(method) Compiler.createTask?(name?: string): BuildTask",
|
|
6545
6602
|
"name": "createTask",
|
|
@@ -6595,7 +6652,8 @@
|
|
|
6595
6652
|
"character": 3
|
|
6596
6653
|
},
|
|
6597
6654
|
"raw": "/**\n * run before the build pipeline has started. this is useful when some preparation are needed to\n * be done on all envs before the build starts.\n */",
|
|
6598
|
-
"comment": "run before the build pipeline has started. this is useful when some preparation are needed to\nbe done on all envs before the build starts."
|
|
6655
|
+
"comment": "run before the build pipeline has started. this is useful when some preparation are needed to\nbe done on all envs before the build starts.",
|
|
6656
|
+
"tags": []
|
|
6599
6657
|
},
|
|
6600
6658
|
"signature": "(method) Compiler.preBuild?(context: BuildContext): Promise<void>",
|
|
6601
6659
|
"name": "preBuild",
|
|
@@ -6662,7 +6720,8 @@
|
|
|
6662
6720
|
"character": 3
|
|
6663
6721
|
},
|
|
6664
6722
|
"raw": "/**\n * run after the build pipeline completed for all envs. useful for some cleanups\n */",
|
|
6665
|
-
"comment": "run after the build pipeline completed for all envs. useful for some cleanups"
|
|
6723
|
+
"comment": "run after the build pipeline completed for all envs. useful for some cleanups",
|
|
6724
|
+
"tags": []
|
|
6666
6725
|
},
|
|
6667
6726
|
"signature": "(method) Compiler.postBuild?(context: BuildContext, tasksResults: TaskResultsList): Promise<void>",
|
|
6668
6727
|
"name": "postBuild",
|
|
@@ -6753,7 +6812,8 @@
|
|
|
6753
6812
|
"character": 3
|
|
6754
6813
|
},
|
|
6755
6814
|
"raw": "/**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */",
|
|
6756
|
-
"comment": "returns the version of the current compiler instance (e.g. '4.0.1')."
|
|
6815
|
+
"comment": "returns the version of the current compiler instance (e.g. '4.0.1').",
|
|
6816
|
+
"tags": []
|
|
6757
6817
|
},
|
|
6758
6818
|
"signature": "(method) Compiler.version(): string",
|
|
6759
6819
|
"name": "version",
|
|
@@ -6784,7 +6844,8 @@
|
|
|
6784
6844
|
"character": 3
|
|
6785
6845
|
},
|
|
6786
6846
|
"raw": "/**\n * returns the display name of the current compiler instance (e.g. 'TypeScript')\n */",
|
|
6787
|
-
"comment": "returns the display name of the current compiler instance (e.g. 'TypeScript')"
|
|
6847
|
+
"comment": "returns the display name of the current compiler instance (e.g. 'TypeScript')",
|
|
6848
|
+
"tags": []
|
|
6788
6849
|
},
|
|
6789
6850
|
"signature": "(property) Compiler.displayName: string",
|
|
6790
6851
|
"name": "displayName",
|
|
@@ -6848,7 +6909,8 @@
|
|
|
6848
6909
|
"character": 3
|
|
6849
6910
|
},
|
|
6850
6911
|
"raw": "/**\n * name of the compiler.\n */",
|
|
6851
|
-
"comment": "name of the compiler."
|
|
6912
|
+
"comment": "name of the compiler.",
|
|
6913
|
+
"tags": []
|
|
6852
6914
|
}
|
|
6853
6915
|
},
|
|
6854
6916
|
{
|
|
@@ -6878,7 +6940,8 @@
|
|
|
6878
6940
|
"character": 3
|
|
6879
6941
|
},
|
|
6880
6942
|
"raw": "/**\n * relative path of the dist directory inside the capsule. e.g. \"dist\".\n */",
|
|
6881
|
-
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\"."
|
|
6943
|
+
"comment": "relative path of the dist directory inside the capsule. e.g. \"dist\".",
|
|
6944
|
+
"tags": []
|
|
6882
6945
|
}
|
|
6883
6946
|
},
|
|
6884
6947
|
{
|
|
@@ -6916,7 +6979,8 @@
|
|
|
6916
6979
|
"character": 3
|
|
6917
6980
|
},
|
|
6918
6981
|
"raw": "/**\n * determines which ones of the generated files will be saved in the bit objects when tagging.\n * e.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\n * see https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.\n */",
|
|
6919
|
-
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax."
|
|
6982
|
+
"comment": "determines which ones of the generated files will be saved in the bit objects when tagging.\ne.g. distGlobPatterns = [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`];\nsee https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.",
|
|
6983
|
+
"tags": []
|
|
6920
6984
|
}
|
|
6921
6985
|
},
|
|
6922
6986
|
{
|
|
@@ -6946,7 +7010,8 @@
|
|
|
6946
7010
|
"character": 3
|
|
6947
7011
|
},
|
|
6948
7012
|
"raw": "/**\n * whether or not unsupported files (such as assets) should be copied into the dist directory\n */",
|
|
6949
|
-
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory"
|
|
7013
|
+
"comment": "whether or not unsupported files (such as assets) should be copied into the dist directory",
|
|
7014
|
+
"tags": []
|
|
6950
7015
|
}
|
|
6951
7016
|
},
|
|
6952
7017
|
{
|
|
@@ -6976,7 +7041,8 @@
|
|
|
6976
7041
|
"character": 3
|
|
6977
7042
|
},
|
|
6978
7043
|
"raw": "/**\n * optional. default to \"dist\".\n * useful when the build pipeline has multiple compiler tasks of the same compiler.\n * e.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\n * the second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.\n */",
|
|
6979
|
-
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly."
|
|
7044
|
+
"comment": "optional. default to \"dist\".\nuseful when the build pipeline has multiple compiler tasks of the same compiler.\ne.g. using the same Babel compiler for two different tasks, one for creating \"es5\" files, and\nthe second for creating \"esm\". the artifact names would be \"es5\" and \"esm\" accordingly.",
|
|
7045
|
+
"tags": []
|
|
6980
7046
|
}
|
|
6981
7047
|
}
|
|
6982
7048
|
]
|
|
@@ -7003,7 +7069,7 @@
|
|
|
7003
7069
|
"_legacy": {
|
|
7004
7070
|
"scope": "teambit.compilation",
|
|
7005
7071
|
"name": "compiler",
|
|
7006
|
-
"version": "1.0.
|
|
7072
|
+
"version": "1.0.311"
|
|
7007
7073
|
},
|
|
7008
7074
|
"_scope": "teambit.compilation"
|
|
7009
7075
|
}
|
|
@@ -7150,7 +7216,7 @@
|
|
|
7150
7216
|
"_legacy": {
|
|
7151
7217
|
"scope": "teambit.compilation",
|
|
7152
7218
|
"name": "compiler",
|
|
7153
|
-
"version": "1.0.
|
|
7219
|
+
"version": "1.0.311"
|
|
7154
7220
|
},
|
|
7155
7221
|
"_scope": "teambit.compilation"
|
|
7156
7222
|
}
|
|
@@ -7223,7 +7289,7 @@
|
|
|
7223
7289
|
"componentId": {
|
|
7224
7290
|
"scope": "teambit.compilation",
|
|
7225
7291
|
"name": "compiler",
|
|
7226
|
-
"version": "1.0.
|
|
7292
|
+
"version": "1.0.311"
|
|
7227
7293
|
},
|
|
7228
7294
|
"taggedModuleExports": []
|
|
7229
7295
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.311/dist/compiler.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.311/dist/compiler.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.311",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/compilation/compiler",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compilation",
|
|
8
8
|
"name": "compiler",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.311"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"@teambit/component-id": "1.2.0",
|
|
20
20
|
"@teambit/bit-roots": "0.0.133",
|
|
21
21
|
"@teambit/bit-error": "0.0.404",
|
|
22
|
-
"@teambit/envs": "1.0.
|
|
23
|
-
"@teambit/cli": "0.0.
|
|
24
|
-
"@teambit/logger": "0.0.
|
|
25
|
-
"@teambit/pubsub": "1.0.
|
|
26
|
-
"@teambit/aspect-loader": "1.0.
|
|
27
|
-
"@teambit/builder": "1.0.
|
|
22
|
+
"@teambit/envs": "1.0.311",
|
|
23
|
+
"@teambit/cli": "0.0.888",
|
|
24
|
+
"@teambit/logger": "0.0.981",
|
|
25
|
+
"@teambit/pubsub": "1.0.311",
|
|
26
|
+
"@teambit/aspect-loader": "1.0.311",
|
|
27
|
+
"@teambit/builder": "1.0.311",
|
|
28
28
|
"@teambit/component-issues": "0.0.149",
|
|
29
|
-
"@teambit/component": "1.0.
|
|
30
|
-
"@teambit/dependency-resolver": "1.0.
|
|
31
|
-
"@teambit/generator": "1.0.
|
|
32
|
-
"@teambit/issues": "1.0.
|
|
33
|
-
"@teambit/ui": "1.0.
|
|
34
|
-
"@teambit/watcher": "1.0.
|
|
35
|
-
"@teambit/workspace": "1.0.
|
|
36
|
-
"@teambit/isolator": "1.0.
|
|
29
|
+
"@teambit/component": "1.0.311",
|
|
30
|
+
"@teambit/dependency-resolver": "1.0.311",
|
|
31
|
+
"@teambit/generator": "1.0.312",
|
|
32
|
+
"@teambit/issues": "1.0.311",
|
|
33
|
+
"@teambit/ui": "1.0.311",
|
|
34
|
+
"@teambit/watcher": "1.0.311",
|
|
35
|
+
"@teambit/workspace": "1.0.311",
|
|
36
|
+
"@teambit/isolator": "1.0.311",
|
|
37
37
|
"@teambit/toolbox.fs.hard-link-directory": "0.0.21",
|
|
38
|
-
"@teambit/multi-compiler": "1.0.
|
|
38
|
+
"@teambit/multi-compiler": "1.0.311",
|
|
39
39
|
"@teambit/workspace.modules.node-modules-linker": "0.0.174"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|