@teambit/multi-compiler 1.0.310 → 1.0.312
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/multi-compiler@1.0.
|
3
|
+
<testsuite name="teambit.compilation/multi-compiler@1.0.312" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/multi-compiler-preview"]=t():e["teambit.compilation/multi-compiler-preview"]=t()}(self,(()=>(()=>{"use strict";var e={93296:(e,t,o)=>{Object.defineProperty(t,"b",{enumerable:!0,get:function(){return n.default}});var n=r(o(59670));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0}},59670:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,l(o(41594));var r=o(5016),i=["components"];function l(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(null,arguments)}function a(e,t){if(null==e)return{};var o,n,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function c(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}l.__bit_component=n,p.__bit_component=n,a.__bit_component=n,c.__bit_component=n;var m={},u="wrapper";function s(e){var t=e.components,o=a(e,i);return(0,r.mdx)(u,p({},m,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"The multi-compiler aspect allows the configuration of multiple compilers on a component. This determines which compiler to apply on a component file using the ",(0,r.mdx)("inlineCode",{parentName:"p"},"isFileSupported()")," compiler API."),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"createCompiler(compilers: Compiler[], options: CompilerOptions)")," API to support the creation a Multi-compiler instance which can be used in the Env API (the ",(0,r.mdx)("inlineCode",{parentName:"li"},"overrideCompiler")," and ",(0,r.mdx)("inlineCode",{parentName:"li"},"getCompiler")," APIs)."),(0,r.mdx)("li",{parentName:"ul"},"Supports the creation of a multi-compiler build tasks.")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")))}s.__bit_component=n,s.isMDXComponent=!0},
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/multi-compiler-preview"]=t():e["teambit.compilation/multi-compiler-preview"]=t()}(self,(()=>(()=>{"use strict";var e={93296:(e,t,o)=>{Object.defineProperty(t,"b",{enumerable:!0,get:function(){return n.default}});var n=r(o(59670));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0}},59670:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,l(o(41594));var r=o(5016),i=["components"];function l(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(null,arguments)}function a(e,t){if(null==e)return{};var o,n,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function c(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}l.__bit_component=n,p.__bit_component=n,a.__bit_component=n,c.__bit_component=n;var m={},u="wrapper";function s(e){var t=e.components,o=a(e,i);return(0,r.mdx)(u,p({},m,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"The multi-compiler aspect allows the configuration of multiple compilers on a component. This determines which compiler to apply on a component file using the ",(0,r.mdx)("inlineCode",{parentName:"p"},"isFileSupported()")," compiler API."),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"createCompiler(compilers: Compiler[], options: CompilerOptions)")," API to support the creation a Multi-compiler instance which can be used in the Env API (the ",(0,r.mdx)("inlineCode",{parentName:"li"},"overrideCompiler")," and ",(0,r.mdx)("inlineCode",{parentName:"li"},"getCompiler")," APIs)."),(0,r.mdx)("li",{parentName:"ul"},"Supports the creation of a multi-compiler build tasks.")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")))}s.__bit_component=n,s.isMDXComponent=!0},23719:(e,t,o)=>{var n={id:"teambit.compilation/multi-compiler@1.0.312",homepage:"https://bit.cloud/teambit/compilation/multi-compiler",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const l=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/multi-complier.svg"}));l.__bit_component=n,t.Logo=l},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>b});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(23719),l=(o(41594),o(5016));const p=TeambitMdxUiMdxScopeContext;var a=o(93296),c=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},m.apply(null,arguments)}var u={},s="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,l.mdx)(s,m({},u,o,{components:t,mdxType:"MDXLayout"}),(0,l.mdx)(p.MDXScopeProvider,{components:{MultiCompiler:a.b},mdxType:"MDXScopeProvider"},(0,l.mdx)(a.b,{mdxType:"MultiCompiler"})))}d.isMDXComponent=!0;const f=[i],b=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
|
package/artifacts/schema.json
CHANGED
@@ -520,7 +520,8 @@
|
|
520
520
|
"character": 3
|
521
521
|
},
|
522
522
|
"raw": "/**\n * the multi-compiler applies all applicable defined compilers on given content.\n */",
|
523
|
-
"comment": "the multi-compiler applies all applicable defined compilers on given content."
|
523
|
+
"comment": "the multi-compiler applies all applicable defined compilers on given content.",
|
524
|
+
"tags": []
|
524
525
|
},
|
525
526
|
"signature": "(method) MultiCompiler.transpileFile(fileContent: string, options: TranspileFileParams): Promise<TranspileFileOutput>",
|
526
527
|
"name": "transpileFile",
|
@@ -901,7 +902,8 @@
|
|
901
902
|
"character": 3
|
902
903
|
},
|
903
904
|
"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 */",
|
904
|
-
"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."
|
905
|
+
"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.",
|
906
|
+
"tags": []
|
905
907
|
},
|
906
908
|
"signature": "(method) MultiCompiler.getDistPathBySrcPath(srcPath: string): string",
|
907
909
|
"name": "getDistPathBySrcPath",
|
@@ -953,7 +955,8 @@
|
|
953
955
|
"character": 3
|
954
956
|
},
|
955
957
|
"raw": "/**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */",
|
956
|
-
"comment": "only supported files matching get compiled. others, are copied to the dist dir."
|
958
|
+
"comment": "only supported files matching get compiled. others, are copied to the dist dir.",
|
959
|
+
"tags": []
|
957
960
|
},
|
958
961
|
"signature": "(method) MultiCompiler.isFileSupported(filePath: string): boolean",
|
959
962
|
"name": "isFileSupported",
|
@@ -1005,7 +1008,8 @@
|
|
1005
1008
|
"character": 3
|
1006
1009
|
},
|
1007
1010
|
"raw": "/**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */",
|
1008
|
-
"comment": "returns the version of the current compiler instance (e.g. '4.0.1')."
|
1011
|
+
"comment": "returns the version of the current compiler instance (e.g. '4.0.1').",
|
1012
|
+
"tags": []
|
1009
1013
|
},
|
1010
1014
|
"signature": "(method) MultiCompiler.version(): string",
|
1011
1015
|
"name": "version",
|
@@ -1045,7 +1049,7 @@
|
|
1045
1049
|
"_legacy": {
|
1046
1050
|
"scope": "teambit.compilation",
|
1047
1051
|
"name": "multi-compiler",
|
1048
|
-
"version": "1.0.
|
1052
|
+
"version": "1.0.312"
|
1049
1053
|
},
|
1050
1054
|
"_scope": "teambit.compilation"
|
1051
1055
|
}
|
@@ -1630,7 +1634,8 @@
|
|
1630
1634
|
"character": 3
|
1631
1635
|
},
|
1632
1636
|
"raw": "/**\n * the multi-compiler applies all applicable defined compilers on given content.\n */",
|
1633
|
-
"comment": "the multi-compiler applies all applicable defined compilers on given content."
|
1637
|
+
"comment": "the multi-compiler applies all applicable defined compilers on given content.",
|
1638
|
+
"tags": []
|
1634
1639
|
},
|
1635
1640
|
"signature": "(method) MultiCompiler.transpileFile(fileContent: string, options: TranspileFileParams): Promise<TranspileFileOutput>",
|
1636
1641
|
"name": "transpileFile",
|
@@ -2011,7 +2016,8 @@
|
|
2011
2016
|
"character": 3
|
2012
2017
|
},
|
2013
2018
|
"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 */",
|
2014
|
-
"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."
|
2019
|
+
"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.",
|
2020
|
+
"tags": []
|
2015
2021
|
},
|
2016
2022
|
"signature": "(method) MultiCompiler.getDistPathBySrcPath(srcPath: string): string",
|
2017
2023
|
"name": "getDistPathBySrcPath",
|
@@ -2063,7 +2069,8 @@
|
|
2063
2069
|
"character": 3
|
2064
2070
|
},
|
2065
2071
|
"raw": "/**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */",
|
2066
|
-
"comment": "only supported files matching get compiled. others, are copied to the dist dir."
|
2072
|
+
"comment": "only supported files matching get compiled. others, are copied to the dist dir.",
|
2073
|
+
"tags": []
|
2067
2074
|
},
|
2068
2075
|
"signature": "(method) MultiCompiler.isFileSupported(filePath: string): boolean",
|
2069
2076
|
"name": "isFileSupported",
|
@@ -2115,7 +2122,8 @@
|
|
2115
2122
|
"character": 3
|
2116
2123
|
},
|
2117
2124
|
"raw": "/**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */",
|
2118
|
-
"comment": "returns the version of the current compiler instance (e.g. '4.0.1')."
|
2125
|
+
"comment": "returns the version of the current compiler instance (e.g. '4.0.1').",
|
2126
|
+
"tags": []
|
2119
2127
|
},
|
2120
2128
|
"signature": "(method) MultiCompiler.version(): string",
|
2121
2129
|
"name": "version",
|
@@ -2155,7 +2163,7 @@
|
|
2155
2163
|
"_legacy": {
|
2156
2164
|
"scope": "teambit.compilation",
|
2157
2165
|
"name": "multi-compiler",
|
2158
|
-
"version": "1.0.
|
2166
|
+
"version": "1.0.312"
|
2159
2167
|
},
|
2160
2168
|
"_scope": "teambit.compilation"
|
2161
2169
|
}
|
@@ -2170,7 +2178,7 @@
|
|
2170
2178
|
"componentId": {
|
2171
2179
|
"scope": "teambit.compilation",
|
2172
2180
|
"name": "multi-compiler",
|
2173
|
-
"version": "1.0.
|
2181
|
+
"version": "1.0.312"
|
2174
2182
|
},
|
2175
2183
|
"taggedModuleExports": []
|
2176
2184
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.312/dist/multi-compiler.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.312/dist/multi-compiler.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/multi-compiler",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.312",
|
4
4
|
"homepage": "https://bit.cloud/teambit/compilation/multi-compiler",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.compilation",
|
8
8
|
"name": "multi-compiler",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.312"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"p-map-series": "2.1.0",
|
13
13
|
"@teambit/harmony": "0.4.6",
|
14
|
-
"@teambit/builder": "1.0.
|
15
|
-
"@teambit/compiler": "1.0.
|
16
|
-
"@teambit/component": "1.0.
|
14
|
+
"@teambit/builder": "1.0.312",
|
15
|
+
"@teambit/compiler": "1.0.312",
|
16
|
+
"@teambit/component": "1.0.312",
|
17
17
|
"@teambit/pipelines.modules.merge-component-results": "0.0.498",
|
18
|
-
"@teambit/cli": "0.0.
|
18
|
+
"@teambit/cli": "0.0.889"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@types/mocha": "9.1.0",
|