@teambit/multi-compiler 1.0.226 → 1.0.228
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_compilation_multi_compiler-preview.js +1 -1
- package/artifacts/schema.json +31 -137
- package/dist/{preview-1712632644937.js → preview-1712805335812.js} +2 -2
- package/package.json +7 -7
- package/tsconfig.json +16 -1
- package/dist/index.d.ts +0 -5
- package/dist/multi-compiler.aspect.d.ts +0 -2
- package/dist/multi-compiler.compiler.d.ts +0 -47
- package/dist/multi-compiler.composition.d.ts +0 -1
- package/dist/multi-compiler.main.runtime.d.ts +0 -11
@@ -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.228" 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={
|
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={51037:(e,t,o)=>{Object.defineProperty(t,"b",{enumerable:!0,get:function(){return n.default}});var n=r(o(56849));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0}},56849:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,p(o(41594));var r=o(5016),i=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},l.apply(this,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||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function c(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}p.__bit_component=n,l.__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,l({},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},37660:(e,t,o)=>{var n={id:"teambit.compilation/multi-compiler@1.0.228",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 p=()=>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"}));p.__bit_component=n,t.Logo=p},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={};return(()=>{o.r(n),o.d(n,{compositions:()=>s,compositions_metadata:()=>f,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>u});var t=o(37660),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var p=o(51037),l=["components"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a.apply(this,arguments)}var c={},m="wrapper";function u(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,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,l);return(0,r.mdx)(m,a({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{MultiCompiler:p.b},mdxType:"MDXScopeProvider"},(0,r.mdx)(p.b,{mdxType:"MultiCompiler"})))}u.isMDXComponent=!0;const s=[t],d=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
package/artifacts/schema.json
CHANGED
@@ -104,11 +104,7 @@
|
|
104
104
|
"line": 11,
|
105
105
|
"character": 29
|
106
106
|
},
|
107
|
-
"name": "Compiler"
|
108
|
-
"componentId": {
|
109
|
-
"scope": "teambit.compilation",
|
110
|
-
"name": "compiler"
|
111
|
-
}
|
107
|
+
"name": "Compiler"
|
112
108
|
}
|
113
109
|
},
|
114
110
|
"isOptional": false,
|
@@ -138,11 +134,7 @@
|
|
138
134
|
"line": 11,
|
139
135
|
"character": 58
|
140
136
|
},
|
141
|
-
"name": "CompilerOptions"
|
142
|
-
"componentId": {
|
143
|
-
"scope": "teambit.compilation",
|
144
|
-
"name": "compiler"
|
145
|
-
}
|
137
|
+
"name": "CompilerOptions"
|
146
138
|
}
|
147
139
|
]
|
148
140
|
},
|
@@ -336,11 +328,7 @@
|
|
336
328
|
"line": 29,
|
337
329
|
"character": 25
|
338
330
|
},
|
339
|
-
"name": "Compiler"
|
340
|
-
"componentId": {
|
341
|
-
"scope": "teambit.compilation",
|
342
|
-
"name": "compiler"
|
343
|
-
}
|
331
|
+
"name": "Compiler"
|
344
332
|
}
|
345
333
|
},
|
346
334
|
"isOptional": false,
|
@@ -370,11 +358,7 @@
|
|
370
358
|
"line": 30,
|
371
359
|
"character": 39
|
372
360
|
},
|
373
|
-
"name": "CompilerOptions"
|
374
|
-
"componentId": {
|
375
|
-
"scope": "teambit.compilation",
|
376
|
-
"name": "compiler"
|
377
|
-
}
|
361
|
+
"name": "CompilerOptions"
|
378
362
|
}
|
379
363
|
]
|
380
364
|
},
|
@@ -397,8 +381,7 @@
|
|
397
381
|
"line": 31,
|
398
382
|
"character": 23
|
399
383
|
},
|
400
|
-
"name": "MultiCompilerOptions"
|
401
|
-
"internalFilePath": "multi-compiler.compiler.ts"
|
384
|
+
"name": "MultiCompilerOptions"
|
402
385
|
},
|
403
386
|
"isOptional": true,
|
404
387
|
"defaultValue": "{}",
|
@@ -534,11 +517,7 @@
|
|
534
517
|
"line": 70,
|
535
518
|
"character": 53
|
536
519
|
},
|
537
|
-
"name": "TranspileFileParams"
|
538
|
-
"componentId": {
|
539
|
-
"scope": "teambit.compilation",
|
540
|
-
"name": "compiler"
|
541
|
-
}
|
520
|
+
"name": "TranspileFileParams"
|
542
521
|
},
|
543
522
|
"isOptional": false,
|
544
523
|
"isSpread": false
|
@@ -560,11 +539,7 @@
|
|
560
539
|
"line": 70,
|
561
540
|
"character": 83
|
562
541
|
},
|
563
|
-
"name": "TranspileFileOutput"
|
564
|
-
"componentId": {
|
565
|
-
"scope": "teambit.compilation",
|
566
|
-
"name": "compiler"
|
567
|
-
}
|
542
|
+
"name": "TranspileFileOutput"
|
568
543
|
}
|
569
544
|
]
|
570
545
|
},
|
@@ -597,11 +572,7 @@
|
|
597
572
|
"line": 99,
|
598
573
|
"character": 36
|
599
574
|
},
|
600
|
-
"name": "TranspileComponentParams"
|
601
|
-
"componentId": {
|
602
|
-
"scope": "teambit.compilation",
|
603
|
-
"name": "compiler"
|
604
|
-
}
|
575
|
+
"name": "TranspileComponentParams"
|
605
576
|
},
|
606
577
|
"isOptional": false,
|
607
578
|
"isSpread": false
|
@@ -656,11 +627,7 @@
|
|
656
627
|
"line": 107,
|
657
628
|
"character": 24
|
658
629
|
},
|
659
|
-
"name": "BuildContext"
|
660
|
-
"componentId": {
|
661
|
-
"scope": "teambit.pipelines",
|
662
|
-
"name": "builder"
|
663
|
-
}
|
630
|
+
"name": "BuildContext"
|
664
631
|
},
|
665
632
|
"isOptional": false,
|
666
633
|
"isSpread": false
|
@@ -682,11 +649,7 @@
|
|
682
649
|
"line": 107,
|
683
650
|
"character": 47
|
684
651
|
},
|
685
|
-
"name": "BuiltTaskResult"
|
686
|
-
"componentId": {
|
687
|
-
"scope": "teambit.pipelines",
|
688
|
-
"name": "builder"
|
689
|
-
}
|
652
|
+
"name": "BuiltTaskResult"
|
690
653
|
}
|
691
654
|
]
|
692
655
|
},
|
@@ -719,11 +682,7 @@
|
|
719
682
|
"line": 119,
|
720
683
|
"character": 27
|
721
684
|
},
|
722
|
-
"name": "BuildContext"
|
723
|
-
"componentId": {
|
724
|
-
"scope": "teambit.pipelines",
|
725
|
-
"name": "builder"
|
726
|
-
}
|
685
|
+
"name": "BuildContext"
|
727
686
|
},
|
728
687
|
"isOptional": false,
|
729
688
|
"isSpread": false
|
@@ -767,11 +726,7 @@
|
|
767
726
|
"line": 128,
|
768
727
|
"character": 28
|
769
728
|
},
|
770
|
-
"name": "BuildContext"
|
771
|
-
"componentId": {
|
772
|
-
"scope": "teambit.pipelines",
|
773
|
-
"name": "builder"
|
774
|
-
}
|
729
|
+
"name": "BuildContext"
|
775
730
|
},
|
776
731
|
"isOptional": false,
|
777
732
|
"isSpread": false
|
@@ -791,11 +746,7 @@
|
|
791
746
|
"line": 128,
|
792
747
|
"character": 55
|
793
748
|
},
|
794
|
-
"name": "TaskResultsList"
|
795
|
-
"componentId": {
|
796
|
-
"scope": "teambit.pipelines",
|
797
|
-
"name": "builder"
|
798
|
-
}
|
749
|
+
"name": "TaskResultsList"
|
799
750
|
},
|
800
751
|
"isOptional": false,
|
801
752
|
"isSpread": false
|
@@ -839,11 +790,7 @@
|
|
839
790
|
"line": 141,
|
840
791
|
"character": 42
|
841
792
|
},
|
842
|
-
"name": "Component"
|
843
|
-
"componentId": {
|
844
|
-
"scope": "teambit.component",
|
845
|
-
"name": "component"
|
846
|
-
}
|
793
|
+
"name": "Component"
|
847
794
|
},
|
848
795
|
"isOptional": false,
|
849
796
|
"isSpread": false
|
@@ -1019,7 +966,7 @@
|
|
1019
966
|
"_legacy": {
|
1020
967
|
"scope": "teambit.compilation",
|
1021
968
|
"name": "multi-compiler",
|
1022
|
-
"version": "1.0.
|
969
|
+
"version": "1.0.228"
|
1023
970
|
},
|
1024
971
|
"_scope": "teambit.compilation"
|
1025
972
|
}
|
@@ -1151,11 +1098,7 @@
|
|
1151
1098
|
"line": 11,
|
1152
1099
|
"character": 29
|
1153
1100
|
},
|
1154
|
-
"name": "Compiler"
|
1155
|
-
"componentId": {
|
1156
|
-
"scope": "teambit.compilation",
|
1157
|
-
"name": "compiler"
|
1158
|
-
}
|
1101
|
+
"name": "Compiler"
|
1159
1102
|
}
|
1160
1103
|
},
|
1161
1104
|
"isOptional": false,
|
@@ -1185,11 +1128,7 @@
|
|
1185
1128
|
"line": 11,
|
1186
1129
|
"character": 58
|
1187
1130
|
},
|
1188
|
-
"name": "CompilerOptions"
|
1189
|
-
"componentId": {
|
1190
|
-
"scope": "teambit.compilation",
|
1191
|
-
"name": "compiler"
|
1192
|
-
}
|
1131
|
+
"name": "CompilerOptions"
|
1193
1132
|
}
|
1194
1133
|
]
|
1195
1134
|
},
|
@@ -1445,11 +1384,7 @@
|
|
1445
1384
|
"line": 29,
|
1446
1385
|
"character": 25
|
1447
1386
|
},
|
1448
|
-
"name": "Compiler"
|
1449
|
-
"componentId": {
|
1450
|
-
"scope": "teambit.compilation",
|
1451
|
-
"name": "compiler"
|
1452
|
-
}
|
1387
|
+
"name": "Compiler"
|
1453
1388
|
}
|
1454
1389
|
},
|
1455
1390
|
"isOptional": false,
|
@@ -1479,11 +1414,7 @@
|
|
1479
1414
|
"line": 30,
|
1480
1415
|
"character": 39
|
1481
1416
|
},
|
1482
|
-
"name": "CompilerOptions"
|
1483
|
-
"componentId": {
|
1484
|
-
"scope": "teambit.compilation",
|
1485
|
-
"name": "compiler"
|
1486
|
-
}
|
1417
|
+
"name": "CompilerOptions"
|
1487
1418
|
}
|
1488
1419
|
]
|
1489
1420
|
},
|
@@ -1506,8 +1437,7 @@
|
|
1506
1437
|
"line": 31,
|
1507
1438
|
"character": 23
|
1508
1439
|
},
|
1509
|
-
"name": "MultiCompilerOptions"
|
1510
|
-
"internalFilePath": "multi-compiler.compiler.ts"
|
1440
|
+
"name": "MultiCompilerOptions"
|
1511
1441
|
},
|
1512
1442
|
"isOptional": true,
|
1513
1443
|
"defaultValue": "{}",
|
@@ -1643,11 +1573,7 @@
|
|
1643
1573
|
"line": 70,
|
1644
1574
|
"character": 53
|
1645
1575
|
},
|
1646
|
-
"name": "TranspileFileParams"
|
1647
|
-
"componentId": {
|
1648
|
-
"scope": "teambit.compilation",
|
1649
|
-
"name": "compiler"
|
1650
|
-
}
|
1576
|
+
"name": "TranspileFileParams"
|
1651
1577
|
},
|
1652
1578
|
"isOptional": false,
|
1653
1579
|
"isSpread": false
|
@@ -1669,11 +1595,7 @@
|
|
1669
1595
|
"line": 70,
|
1670
1596
|
"character": 83
|
1671
1597
|
},
|
1672
|
-
"name": "TranspileFileOutput"
|
1673
|
-
"componentId": {
|
1674
|
-
"scope": "teambit.compilation",
|
1675
|
-
"name": "compiler"
|
1676
|
-
}
|
1598
|
+
"name": "TranspileFileOutput"
|
1677
1599
|
}
|
1678
1600
|
]
|
1679
1601
|
},
|
@@ -1706,11 +1628,7 @@
|
|
1706
1628
|
"line": 99,
|
1707
1629
|
"character": 36
|
1708
1630
|
},
|
1709
|
-
"name": "TranspileComponentParams"
|
1710
|
-
"componentId": {
|
1711
|
-
"scope": "teambit.compilation",
|
1712
|
-
"name": "compiler"
|
1713
|
-
}
|
1631
|
+
"name": "TranspileComponentParams"
|
1714
1632
|
},
|
1715
1633
|
"isOptional": false,
|
1716
1634
|
"isSpread": false
|
@@ -1765,11 +1683,7 @@
|
|
1765
1683
|
"line": 107,
|
1766
1684
|
"character": 24
|
1767
1685
|
},
|
1768
|
-
"name": "BuildContext"
|
1769
|
-
"componentId": {
|
1770
|
-
"scope": "teambit.pipelines",
|
1771
|
-
"name": "builder"
|
1772
|
-
}
|
1686
|
+
"name": "BuildContext"
|
1773
1687
|
},
|
1774
1688
|
"isOptional": false,
|
1775
1689
|
"isSpread": false
|
@@ -1791,11 +1705,7 @@
|
|
1791
1705
|
"line": 107,
|
1792
1706
|
"character": 47
|
1793
1707
|
},
|
1794
|
-
"name": "BuiltTaskResult"
|
1795
|
-
"componentId": {
|
1796
|
-
"scope": "teambit.pipelines",
|
1797
|
-
"name": "builder"
|
1798
|
-
}
|
1708
|
+
"name": "BuiltTaskResult"
|
1799
1709
|
}
|
1800
1710
|
]
|
1801
1711
|
},
|
@@ -1828,11 +1738,7 @@
|
|
1828
1738
|
"line": 119,
|
1829
1739
|
"character": 27
|
1830
1740
|
},
|
1831
|
-
"name": "BuildContext"
|
1832
|
-
"componentId": {
|
1833
|
-
"scope": "teambit.pipelines",
|
1834
|
-
"name": "builder"
|
1835
|
-
}
|
1741
|
+
"name": "BuildContext"
|
1836
1742
|
},
|
1837
1743
|
"isOptional": false,
|
1838
1744
|
"isSpread": false
|
@@ -1876,11 +1782,7 @@
|
|
1876
1782
|
"line": 128,
|
1877
1783
|
"character": 28
|
1878
1784
|
},
|
1879
|
-
"name": "BuildContext"
|
1880
|
-
"componentId": {
|
1881
|
-
"scope": "teambit.pipelines",
|
1882
|
-
"name": "builder"
|
1883
|
-
}
|
1785
|
+
"name": "BuildContext"
|
1884
1786
|
},
|
1885
1787
|
"isOptional": false,
|
1886
1788
|
"isSpread": false
|
@@ -1900,11 +1802,7 @@
|
|
1900
1802
|
"line": 128,
|
1901
1803
|
"character": 55
|
1902
1804
|
},
|
1903
|
-
"name": "TaskResultsList"
|
1904
|
-
"componentId": {
|
1905
|
-
"scope": "teambit.pipelines",
|
1906
|
-
"name": "builder"
|
1907
|
-
}
|
1805
|
+
"name": "TaskResultsList"
|
1908
1806
|
},
|
1909
1807
|
"isOptional": false,
|
1910
1808
|
"isSpread": false
|
@@ -1948,11 +1846,7 @@
|
|
1948
1846
|
"line": 141,
|
1949
1847
|
"character": 42
|
1950
1848
|
},
|
1951
|
-
"name": "Component"
|
1952
|
-
"componentId": {
|
1953
|
-
"scope": "teambit.component",
|
1954
|
-
"name": "component"
|
1955
|
-
}
|
1849
|
+
"name": "Component"
|
1956
1850
|
},
|
1957
1851
|
"isOptional": false,
|
1958
1852
|
"isSpread": false
|
@@ -2128,7 +2022,7 @@
|
|
2128
2022
|
"_legacy": {
|
2129
2023
|
"scope": "teambit.compilation",
|
2130
2024
|
"name": "multi-compiler",
|
2131
|
-
"version": "1.0.
|
2025
|
+
"version": "1.0.228"
|
2132
2026
|
},
|
2133
2027
|
"_scope": "teambit.compilation"
|
2134
2028
|
}
|
@@ -2143,7 +2037,7 @@
|
|
2143
2037
|
"componentId": {
|
2144
2038
|
"scope": "teambit.compilation",
|
2145
2039
|
"name": "multi-compiler",
|
2146
|
-
"version": "1.0.
|
2040
|
+
"version": "1.0.228"
|
2147
2041
|
},
|
2148
2042
|
"taggedModuleExports": []
|
2149
2043
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@1.0.228/dist/multi-compiler.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@1.0.228/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,26 +1,26 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/multi-compiler",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.228",
|
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.228"
|
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.228",
|
15
|
+
"@teambit/compiler": "1.0.228",
|
16
|
+
"@teambit/component": "1.0.228",
|
17
17
|
"@teambit/pipelines.modules.merge-component-results": "0.0.498",
|
18
|
-
"@teambit/cli": "0.0.
|
18
|
+
"@teambit/cli": "0.0.861"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@types/mocha": "9.1.0",
|
22
22
|
"chai": "4.3.0",
|
23
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
23
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.30",
|
24
24
|
"@teambit/compilation.aspect-docs.multi-compiler": "0.0.169"
|
25
25
|
},
|
26
26
|
"peerDependencies": {
|
package/tsconfig.json
CHANGED
@@ -20,7 +20,8 @@
|
|
20
20
|
"emitDeclarationOnly": true,
|
21
21
|
"strict": true,
|
22
22
|
"strictPropertyInitialization": false,
|
23
|
-
"noImplicitAny": false
|
23
|
+
"noImplicitAny": false,
|
24
|
+
"composite": true
|
24
25
|
},
|
25
26
|
"exclude": [
|
26
27
|
"artifacts",
|
@@ -35,5 +36,19 @@
|
|
35
36
|
"include": [
|
36
37
|
"**/*",
|
37
38
|
"**/*.json"
|
39
|
+
],
|
40
|
+
"references": [
|
41
|
+
{
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.228"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@1.0.228"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
52
|
+
}
|
38
53
|
]
|
39
54
|
}
|
package/dist/index.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
import { MultiCompilerAspect } from './multi-compiler.aspect';
|
2
|
-
export { MultiCompilerAspect };
|
3
|
-
export type { MultiCompilerMain } from './multi-compiler.main.runtime';
|
4
|
-
export type { MultiCompiler } from './multi-compiler.compiler';
|
5
|
-
export default MultiCompilerAspect;
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import { Compiler, CompilerOptions, TranspileComponentParams, TranspileFileOutput, TranspileFileParams } from '@teambit/compiler';
|
2
|
-
import { BuiltTaskResult, BuildContext, TaskResultsList } from '@teambit/builder';
|
3
|
-
import { Component } from '@teambit/component';
|
4
|
-
export type MultiCompilerOptions = {
|
5
|
-
targetExtension?: string;
|
6
|
-
};
|
7
|
-
export declare class MultiCompiler implements Compiler {
|
8
|
-
readonly id: string;
|
9
|
-
readonly compilers: Compiler[];
|
10
|
-
readonly compilerOptions: Partial<CompilerOptions>;
|
11
|
-
readonly options: MultiCompilerOptions;
|
12
|
-
displayName: string;
|
13
|
-
shouldCopyNonSupportedFiles: boolean;
|
14
|
-
distDir: string;
|
15
|
-
constructor(id: string, compilers: Compiler[], compilerOptions?: Partial<CompilerOptions>, options?: MultiCompilerOptions);
|
16
|
-
getDistDir(): string;
|
17
|
-
getArtifactDefinition(): {
|
18
|
-
generatedBy: string;
|
19
|
-
name: string;
|
20
|
-
globPatterns: string[];
|
21
|
-
}[];
|
22
|
-
private getOptions;
|
23
|
-
displayConfig(): string;
|
24
|
-
/**
|
25
|
-
* the multi-compiler applies all applicable defined compilers on given content.
|
26
|
-
*/
|
27
|
-
transpileFile(fileContent: string, options: TranspileFileParams): Promise<TranspileFileOutput>;
|
28
|
-
transpileComponent(params: TranspileComponentParams): Promise<void>;
|
29
|
-
build(context: BuildContext): Promise<BuiltTaskResult>;
|
30
|
-
preBuild(context: BuildContext): Promise<void>;
|
31
|
-
postBuild(context: BuildContext, taskResults: TaskResultsList): Promise<void>;
|
32
|
-
private firstMatchedCompiler;
|
33
|
-
getPreviewComponentRootPath(component: Component): string;
|
34
|
-
/**
|
35
|
-
* given a source file, return its parallel in the dists. e.g. "index.ts" => "dist/index.js"
|
36
|
-
* both, the return path and the given path are relative paths.
|
37
|
-
*/
|
38
|
-
getDistPathBySrcPath(srcPath: string): string;
|
39
|
-
/**
|
40
|
-
* only supported files matching get compiled. others, are copied to the dist dir.
|
41
|
-
*/
|
42
|
-
isFileSupported(filePath: string): boolean;
|
43
|
-
/**
|
44
|
-
* returns the version of the current compiler instance (e.g. '4.0.1').
|
45
|
-
*/
|
46
|
-
version(): string;
|
47
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Compiler, CompilerOptions } from '@teambit/compiler';
|
2
|
-
import { MultiCompiler } from './multi-compiler.compiler';
|
3
|
-
export declare class MultiCompilerMain {
|
4
|
-
/**
|
5
|
-
* create a multi-compiler `Compiler` instance.
|
6
|
-
* @param compilers list of compilers to include.
|
7
|
-
*/
|
8
|
-
createCompiler(compilers: Compiler[], options?: Partial<CompilerOptions>): MultiCompiler;
|
9
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
10
|
-
static provider(): Promise<MultiCompilerMain>;
|
11
|
-
}
|