@teambit/compiler 0.0.1063 → 0.0.1065
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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CompilerService","getCompiler","context","compiler","env","render","descriptor","getDescriptor","id","displayName","version","config","highlight","language","ignoreIllegals","transform","undefined","icon","displayConfig"],"sources":["compiler.service.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, Newline } from 'ink';\nimport { EnvService, EnvDefinition, Env, EnvContext, ServiceTransformationMap, ExecutionContext } from '@teambit/envs';\nimport highlight from 'cli-highlight';\nimport { Compiler } from './types';\n\nexport type CompilerDescriptor = {\n id: string;\n icon?: string;\n config?: string;\n};\n\ntype CompilerTransformationMap = ServiceTransformationMap & {\n getCompiler: () => Compiler;\n};\n\nexport class CompilerService implements EnvService<{}, CompilerDescriptor> {\n name = 'Compile';\n\n getCompiler(context: ExecutionContext): Compiler {\n const compiler: Compiler = context.env.getCompiler();\n return compiler;\n }\n\n render(env: EnvDefinition) {\n const descriptor = this.getDescriptor(env);\n\n return (\n <Text key={descriptor?.id}>\n <Text color=\"cyan\">configured compiler: </Text>\n <Text>\n {descriptor?.id} ({descriptor?.displayName} @ {descriptor?.version})\n </Text>\n <Newline />\n <Text color=\"cyan\">compiler config:</Text>\n <Newline />\n <Text>\n {descriptor?.config && highlight(descriptor?.config, { language: 'javascript', ignoreIllegals: true })}\n </Text>\n <Newline />\n </Text>\n );\n }\n\n transform(env: Env, context: EnvContext): CompilerTransformationMap | undefined {\n // Old env\n if (!env?.compiler) return undefined;\n return {\n getCompiler: () => env.compiler()(context),\n };\n }\n\n getDescriptor(env: EnvDefinition) {\n if (!env.env.getCompiler) return undefined;\n const compiler = env.env.getCompiler();\n\n return {\n id: compiler.id,\n icon: compiler.icon,\n config: compiler.displayConfig ? compiler.displayConfig() : undefined,\n version: compiler.version ? compiler.version() : '?',\n displayName: compiler.displayName ? compiler.displayName : '?',\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAaO,MAAMA,eAAe,CAA+C;EAAA;IAAA,8CAClE,SAAS;EAAA;EAEhBC,WAAW,CAACC,OAAyB,EAAY;IAC/C,MAAMC,QAAkB,GAAGD,OAAO,CAACE,GAAG,CAACH,WAAW,EAAE;IACpD,OAAOE,QAAQ;EACjB;EAEAE,MAAM,CAACD,GAAkB,EAAE;IACzB,MAAME,UAAU,GAAG,IAAI,CAACC,aAAa,CAACH,GAAG,CAAC;IAE1C,oBACE,+BAAC,WAAI;MAAC,GAAG,EAAEE,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEE;IAAG,gBACxB,+BAAC,WAAI;MAAC,KAAK,EAAC;IAAM,
|
|
1
|
+
{"version":3,"names":["CompilerService","getCompiler","context","compiler","env","render","descriptor","getDescriptor","id","displayName","version","config","highlight","language","ignoreIllegals","transform","undefined","icon","displayConfig"],"sources":["compiler.service.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, Newline } from 'ink';\nimport { EnvService, EnvDefinition, Env, EnvContext, ServiceTransformationMap, ExecutionContext } from '@teambit/envs';\nimport highlight from 'cli-highlight';\nimport { Compiler } from './types';\n\nexport type CompilerDescriptor = {\n id: string;\n icon?: string;\n config?: string;\n};\n\ntype CompilerTransformationMap = ServiceTransformationMap & {\n getCompiler: () => Compiler;\n};\n\nexport class CompilerService implements EnvService<{}, CompilerDescriptor> {\n name = 'Compile';\n\n getCompiler(context: ExecutionContext): Compiler {\n const compiler: Compiler = context.env.getCompiler();\n return compiler;\n }\n\n render(env: EnvDefinition) {\n const descriptor = this.getDescriptor(env);\n\n return (\n <Text key={descriptor?.id}>\n <Text color=\"cyan\">configured compiler: </Text>\n <Text>\n {descriptor?.id} ({descriptor?.displayName} @ {descriptor?.version})\n </Text>\n <Newline />\n <Text color=\"cyan\">compiler config:</Text>\n <Newline />\n <Text>\n {descriptor?.config && highlight(descriptor?.config, { language: 'javascript', ignoreIllegals: true })}\n </Text>\n <Newline />\n </Text>\n );\n }\n\n transform(env: Env, context: EnvContext): CompilerTransformationMap | undefined {\n // Old env\n if (!env?.compiler) return undefined;\n return {\n getCompiler: () => env.compiler()(context),\n };\n }\n\n getDescriptor(env: EnvDefinition) {\n if (!env.env.getCompiler) return undefined;\n const compiler = env.env.getCompiler();\n\n return {\n id: compiler.id,\n icon: compiler.icon,\n config: compiler.displayConfig ? compiler.displayConfig() : undefined,\n version: compiler.version ? compiler.version() : '?',\n displayName: compiler.displayName ? compiler.displayName : '?',\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAaO,MAAMA,eAAe,CAA+C;EAAA;IAAA,8CAClE,SAAS;EAAA;EAEhBC,WAAW,CAACC,OAAyB,EAAY;IAC/C,MAAMC,QAAkB,GAAGD,OAAO,CAACE,GAAG,CAACH,WAAW,EAAE;IACpD,OAAOE,QAAQ;EACjB;EAEAE,MAAM,CAACD,GAAkB,EAAE;IACzB,MAAME,UAAU,GAAG,IAAI,CAACC,aAAa,CAACH,GAAG,CAAC;IAE1C,oBACE,+BAAC,WAAI;MAAC,GAAG,EAAEE,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEE;IAAG,gBACxB,+BAAC,WAAI;MAAC,KAAK,EAAC;IAAM,GAAC,uBAAqB,CAAO,eAC/C,+BAAC,WAAI,QACFF,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEE,EAAE,EAAC,IAAE,EAACF,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEG,WAAW,EAAC,KAAG,EAACH,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CA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it/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@0.0.1065/dist/compiler.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@0.0.1065/dist/compiler.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1065",
|
|
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": "0.0.
|
|
9
|
+
"version": "0.0.1065"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
"@babel/runtime": "7.20.0",
|
|
21
21
|
"@teambit/harmony": "0.4.6",
|
|
22
22
|
"@teambit/legacy-bit-id": "0.0.423",
|
|
23
|
-
"@teambit/envs": "0.0.
|
|
24
|
-
"@teambit/cli": "0.0.
|
|
25
|
-
"@teambit/component": "0.0.
|
|
26
|
-
"@teambit/logger": "0.0.
|
|
27
|
-
"@teambit/pubsub": "0.0.
|
|
28
|
-
"@teambit/aspect-loader": "0.0.
|
|
29
|
-
"@teambit/builder": "0.0.
|
|
23
|
+
"@teambit/envs": "0.0.1065",
|
|
24
|
+
"@teambit/cli": "0.0.718",
|
|
25
|
+
"@teambit/component": "0.0.1065",
|
|
26
|
+
"@teambit/logger": "0.0.811",
|
|
27
|
+
"@teambit/pubsub": "0.0.1065",
|
|
28
|
+
"@teambit/aspect-loader": "0.0.1065",
|
|
29
|
+
"@teambit/builder": "0.0.1065",
|
|
30
30
|
"@teambit/component-issues": "0.0.90",
|
|
31
|
-
"@teambit/dependency-resolver": "0.0.
|
|
32
|
-
"@teambit/generator": "0.0.
|
|
33
|
-
"@teambit/ui": "0.0.
|
|
34
|
-
"@teambit/watcher": "0.0.
|
|
35
|
-
"@teambit/workspace": "0.0.
|
|
36
|
-
"@teambit/isolator": "0.0.
|
|
31
|
+
"@teambit/dependency-resolver": "0.0.1065",
|
|
32
|
+
"@teambit/generator": "0.0.1065",
|
|
33
|
+
"@teambit/ui": "0.0.1065",
|
|
34
|
+
"@teambit/watcher": "0.0.77",
|
|
35
|
+
"@teambit/workspace": "0.0.1065",
|
|
36
|
+
"@teambit/isolator": "0.0.1065",
|
|
37
37
|
"@teambit/toolbox.fs.hard-link-directory": "0.0.14",
|
|
38
|
-
"@teambit/bit-roots": "0.0.
|
|
39
|
-
"@teambit/multi-compiler": "0.0.
|
|
40
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
38
|
+
"@teambit/bit-roots": "0.0.55",
|
|
39
|
+
"@teambit/multi-compiler": "0.0.1065",
|
|
40
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.62",
|
|
41
41
|
"@teambit/bit-error": "0.0.402"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@teambit/compilation.content.compiler-overview": "1.95.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@teambit/legacy": "1.0.
|
|
55
|
+
"@teambit/legacy": "1.0.498",
|
|
56
56
|
"react": "^16.8.0 || ^17.0.0",
|
|
57
57
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
58
58
|
},
|
|
Binary file
|