@teambit/compiler 1.0.1132 → 1.0.1134
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/dist/compiler.task.js
CHANGED
|
@@ -4,13 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CompilerTask = void 0;
|
|
7
|
-
function _toolboxFs() {
|
|
8
|
-
const data = require("@teambit/toolbox.fs.hard-link-directory");
|
|
9
|
-
_toolboxFs = function () {
|
|
10
|
-
return data;
|
|
11
|
-
};
|
|
12
|
-
return data;
|
|
13
|
-
}
|
|
14
7
|
function _fsExtra() {
|
|
15
8
|
const data = _interopRequireDefault(require("fs-extra"));
|
|
16
9
|
_fsExtra = function () {
|
|
@@ -33,6 +26,7 @@ function _compiler() {
|
|
|
33
26
|
return data;
|
|
34
27
|
}
|
|
35
28
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
36
30
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
37
31
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
38
32
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -67,10 +61,17 @@ class CompilerTask {
|
|
|
67
61
|
* then the `dist` folder of the `button` component will be copied to `<card_capsule>/node_modules/button/dist`.
|
|
68
62
|
*/
|
|
69
63
|
async _hardLinkBuildArtifactsOnCapsules(context) {
|
|
64
|
+
// lazy on purpose: this is the only build-time-only dependency of this module, and the module
|
|
65
|
+
// itself loads on every bit invocation (via envs). a top-level import pulls the package plus
|
|
66
|
+
// its own fs-extra tree (~36 files in the released bundle's hoisted layout) into every
|
|
67
|
+
// bootstrap/status, which is what pushed the filesystem-read e2e guard over its threshold.
|
|
68
|
+
const {
|
|
69
|
+
hardLinkDirectory
|
|
70
|
+
} = await Promise.resolve().then(() => _interopRequireWildcard(require('@teambit/toolbox.fs.hard-link-directory')));
|
|
70
71
|
await Promise.all(context.capsuleNetwork.seedersCapsules.map(async capsule => {
|
|
71
72
|
const relCompDir = _path().default.relative(context.capsuleNetwork.capsulesRootDir, capsule.path).replace(/\\/g, '/');
|
|
72
73
|
const injectedDirs = await this.dependencyResolver.getInjectedDirs(context.capsuleNetwork.capsulesRootDir, relCompDir, this.dependencyResolver.getPackageName(capsule.component));
|
|
73
|
-
return
|
|
74
|
+
return hardLinkDirectory(capsule.path,
|
|
74
75
|
// An injected copy is reported relative to the lockfile dir when it sits under it, and
|
|
75
76
|
// absolute when it cannot - which is what the global virtual store always produces, since
|
|
76
77
|
// its slots live outside the capsule root entirely. Joining an absolute path onto the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_toolboxFs","data","require","_fsExtra","_interopRequireDefault","_path","_compiler","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CompilerTask","constructor","aspectId","name","compilerInstance","dependencyResolver","artifactName","description","preBuild","context","Promise","all","capsuleNetwork","seedersCapsules","map","capsule","copyNonSupportedFiles","execute","buildResults","build","_hardLinkBuildArtifactsOnCapsules","relCompDir","path","relative","capsulesRootDir","replace","injectedDirs","getInjectedDirs","getPackageName","component","hardLinkDirectory","injectedDir","isAbsolute","join","postBuild","tasksResults","compiler","shouldCopyNonSupportedFiles","filesystem","files","file","isFileSupported","content","contents","fs","outputFile","distDir","from","options","CompilerAspect","id","depResolve","getAspect","exports"],"sources":["compiler.task.ts"],"sourcesContent":["import type { BuildContext, BuiltTaskResult, BuildTask, TaskResultsList } from '@teambit/builder';\nimport type { Capsule } from '@teambit/isolator';\nimport { hardLinkDirectory } from '@teambit/toolbox.fs.hard-link-directory';\nimport type { EnvContext, EnvHandler } from '@teambit/envs';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport fs from 'fs-extra';\nimport path from 'path';\nimport type { Compiler } from './types';\nimport { CompilerAspect } from './compiler.aspect';\n\nexport type CompilerTaskOptions = {\n /**\n * instance of compiler to use.\n */\n compiler: EnvHandler<Compiler>;\n\n /**\n * name of compiler task\n */\n name?: string;\n};\n\n/**\n * compiler build task. Allows to compile components during component build.\n */\nexport class CompilerTask implements BuildTask {\n readonly description = 'compile components';\n constructor(\n readonly aspectId: string,\n readonly name: string,\n readonly compilerInstance: Compiler,\n private dependencyResolver: DependencyResolverMain\n ) {\n if (compilerInstance.artifactName) {\n this.description += ` for artifact ${compilerInstance.artifactName}`;\n }\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map((capsule) =>\n this.copyNonSupportedFiles(capsule, this.compilerInstance)\n )\n );\n if (!this.compilerInstance.preBuild) return;\n await this.compilerInstance.preBuild(context);\n }\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const buildResults = await this.compilerInstance.build(context);\n await this._hardLinkBuildArtifactsOnCapsules(context);\n return buildResults;\n }\n\n /**\n * This function hard links the compiled artifacts to the `node_modules` of other component capsules.\n * For instance, if we have a `button` component that is a dependency of the `card` component,\n * then the `dist` folder of the `button` component will be copied to `<card_capsule>/node_modules/button/dist`.\n */\n private async _hardLinkBuildArtifactsOnCapsules(context: BuildContext): Promise<void> {\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map(async (capsule) => {\n const relCompDir = path.relative(context.capsuleNetwork.capsulesRootDir, capsule.path).replace(/\\\\/g, '/');\n const injectedDirs = await this.dependencyResolver.getInjectedDirs(\n context.capsuleNetwork.capsulesRootDir,\n relCompDir,\n this.dependencyResolver.getPackageName(capsule.component)\n );\n return hardLinkDirectory(\n capsule.path,\n // An injected copy is reported relative to the lockfile dir when it sits under it, and\n // absolute when it cannot - which is what the global virtual store always produces, since\n // its slots live outside the capsule root entirely. Joining an absolute path onto the\n // capsule root would silently produce `<capsulesRoot>/<store path>` and link the\n // artifacts into nowhere.\n injectedDirs.map((injectedDir) =>\n path.isAbsolute(injectedDir) ? injectedDir : path.join(context.capsuleNetwork.capsulesRootDir, injectedDir)\n )\n );\n })\n );\n }\n\n async postBuild?(context: BuildContext, tasksResults: TaskResultsList): Promise<void> {\n if (!this.compilerInstance.postBuild) return;\n await this.compilerInstance.postBuild(context, tasksResults);\n }\n\n async copyNonSupportedFiles(capsule: Capsule, compiler: Compiler) {\n if (!compiler.shouldCopyNonSupportedFiles) {\n return;\n }\n const component = capsule.component;\n await Promise.all(\n component.filesystem.files.map(async (file) => {\n if (compiler.isFileSupported(file.path)) return;\n const content = file.contents;\n await fs.outputFile(path.join(capsule.path, compiler.distDir, file.relative), content);\n })\n );\n }\n\n static from(options: CompilerTaskOptions) {\n return (context: EnvContext) => {\n const aspectId = CompilerAspect.id;\n const name = options.name || 'compiler-task';\n const depResolve = context.getAspect<any>('teambit.dependencies/dependency-resolver');\n return new CompilerTask(aspectId, name, options.compiler(context), depResolve);\n };\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAA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UAAU,CAACvB,eAAI,CAACW,IAAI,CAAClB,OAAO,CAACO,IAAI,EAAEc,QAAQ,CAACU,OAAO,EAAEN,IAAI,CAACjB,QAAQ,CAAC,EAAEmB,OAAO,CAAC;IACxF,CAAC,CACH,CAAC;EACH;EAEA,OAAOK,IAAIA,CAACC,OAA4B,EAAE;IACxC,OAAQvC,OAAmB,IAAK;MAC9B,MAAMP,QAAQ,GAAG+C,0BAAc,CAACC,EAAE;MAClC,MAAM/C,IAAI,GAAG6C,OAAO,CAAC7C,IAAI,IAAI,eAAe;MAC5C,MAAMgD,UAAU,GAAG1C,OAAO,CAAC2C,SAAS,CAAM,0CAA0C,CAAC;MACrF,OAAO,IAAIpD,YAAY,CAACE,QAAQ,EAAEC,IAAI,EAAE6C,OAAO,CAACZ,QAAQ,CAAC3B,OAAO,CAAC,EAAE0C,UAAU,CAAC;IAChF,CAAC;EACH;AACF;AAACE,OAAA,CAAArD,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_compiler","e","__esModule","default","_interopRequireWildcard","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","CompilerTask","constructor","aspectId","name","compilerInstance","dependencyResolver","artifactName","description","preBuild","context","Promise","all","capsuleNetwork","seedersCapsules","map","capsule","copyNonSupportedFiles","execute","buildResults","build","_hardLinkBuildArtifactsOnCapsules","hardLinkDirectory","resolve","then","relCompDir","path","relative","capsulesRootDir","replace","injectedDirs","getInjectedDirs","getPackageName","component","injectedDir","isAbsolute","join","postBuild","tasksResults","compiler","shouldCopyNonSupportedFiles","filesystem","files","file","isFileSupported","content","contents","fs","outputFile","distDir","from","options","CompilerAspect","id","depResolve","getAspect","exports"],"sources":["compiler.task.ts"],"sourcesContent":["import type { BuildContext, BuiltTaskResult, BuildTask, TaskResultsList } from '@teambit/builder';\nimport type { Capsule } from '@teambit/isolator';\nimport type { EnvContext, EnvHandler } from '@teambit/envs';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport fs from 'fs-extra';\nimport path from 'path';\nimport type { Compiler } from './types';\nimport { CompilerAspect } from './compiler.aspect';\n\nexport type CompilerTaskOptions = {\n /**\n * instance of compiler to use.\n */\n compiler: EnvHandler<Compiler>;\n\n /**\n * name of compiler task\n */\n name?: string;\n};\n\n/**\n * compiler build task. Allows to compile components during component build.\n */\nexport class CompilerTask implements BuildTask {\n readonly description = 'compile components';\n constructor(\n readonly aspectId: string,\n readonly name: string,\n readonly compilerInstance: Compiler,\n private dependencyResolver: DependencyResolverMain\n ) {\n if (compilerInstance.artifactName) {\n this.description += ` for artifact ${compilerInstance.artifactName}`;\n }\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map((capsule) =>\n this.copyNonSupportedFiles(capsule, this.compilerInstance)\n )\n );\n if (!this.compilerInstance.preBuild) return;\n await this.compilerInstance.preBuild(context);\n }\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const buildResults = await this.compilerInstance.build(context);\n await this._hardLinkBuildArtifactsOnCapsules(context);\n return buildResults;\n }\n\n /**\n * This function hard links the compiled artifacts to the `node_modules` of other component capsules.\n * For instance, if we have a `button` component that is a dependency of the `card` component,\n * then the `dist` folder of the `button` component will be copied to `<card_capsule>/node_modules/button/dist`.\n */\n private async _hardLinkBuildArtifactsOnCapsules(context: BuildContext): Promise<void> {\n // lazy on purpose: this is the only build-time-only dependency of this module, and the module\n // itself loads on every bit invocation (via envs). a top-level import pulls the package plus\n // its own fs-extra tree (~36 files in the released bundle's hoisted layout) into every\n // bootstrap/status, which is what pushed the filesystem-read e2e guard over its threshold.\n const { hardLinkDirectory } = await import('@teambit/toolbox.fs.hard-link-directory');\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map(async (capsule) => {\n const relCompDir = path.relative(context.capsuleNetwork.capsulesRootDir, capsule.path).replace(/\\\\/g, '/');\n const injectedDirs = await this.dependencyResolver.getInjectedDirs(\n context.capsuleNetwork.capsulesRootDir,\n relCompDir,\n this.dependencyResolver.getPackageName(capsule.component)\n );\n return hardLinkDirectory(\n capsule.path,\n // An injected copy is reported relative to the lockfile dir when it sits under it, and\n // absolute when it cannot - which is what the global virtual store always produces, since\n // its slots live outside the capsule root entirely. Joining an absolute path onto the\n // capsule root would silently produce `<capsulesRoot>/<store path>` and link the\n // artifacts into nowhere.\n injectedDirs.map((injectedDir) =>\n path.isAbsolute(injectedDir) ? injectedDir : path.join(context.capsuleNetwork.capsulesRootDir, injectedDir)\n )\n );\n })\n );\n }\n\n async postBuild?(context: BuildContext, tasksResults: TaskResultsList): Promise<void> {\n if (!this.compilerInstance.postBuild) return;\n await this.compilerInstance.postBuild(context, tasksResults);\n }\n\n async copyNonSupportedFiles(capsule: Capsule, compiler: Compiler) {\n if (!compiler.shouldCopyNonSupportedFiles) {\n return;\n }\n const component = capsule.component;\n await Promise.all(\n component.filesystem.files.map(async (file) => {\n if (compiler.isFileSupported(file.path)) return;\n const content = file.contents;\n await fs.outputFile(path.join(capsule.path, compiler.distDir, file.relative), content);\n })\n );\n }\n\n static from(options: CompilerTaskOptions) {\n return (context: EnvContext) => {\n const aspectId = CompilerAspect.id;\n const name = options.name || 'compiler-task';\n const depResolve = context.getAspect<any>('teambit.dependencies/dependency-resolver');\n return new CompilerTask(aspectId, name, options.compiler(context), depResolve);\n };\n }\n}\n"],"mappings":";;;;;;AAIA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA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OAAO,IAAItD,YAAY,CAACE,QAAQ,EAAEC,IAAI,EAAE+C,OAAO,CAACZ,QAAQ,CAAC7B,OAAO,CAAC,EAAE4C,UAAU,CAAC;IAChF,CAAC;EACH;AACF;AAACE,OAAA,CAAAvD,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -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.1134/dist/compiler.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1134/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.1134",
|
|
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.1134"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"pretty-time": "1.1.0",
|
|
@@ -17,33 +17,33 @@
|
|
|
17
17
|
"lodash": "4.17.21",
|
|
18
18
|
"p-map-series": "2.1.0",
|
|
19
19
|
"@teambit/harmony": "0.4.12",
|
|
20
|
-
"@teambit/component-id": "1.2.4",
|
|
21
|
-
"@teambit/toolbox.path.path": "0.0.21",
|
|
22
|
-
"@teambit/workspace.root-components": "1.0.1",
|
|
23
|
-
"@teambit/bit-error": "0.0.404",
|
|
24
|
-
"@teambit/envs": "1.0.1132",
|
|
25
20
|
"@teambit/cli": "0.0.1377",
|
|
26
21
|
"@teambit/logger": "0.0.1470",
|
|
27
|
-
"@teambit/
|
|
28
|
-
"@teambit/aspect-loader": "1.0.1132",
|
|
29
|
-
"@teambit/builder": "1.0.1132",
|
|
30
|
-
"@teambit/bundler": "1.0.1132",
|
|
22
|
+
"@teambit/component-id": "1.2.4",
|
|
31
23
|
"@teambit/component-issues": "0.0.184",
|
|
32
|
-
"@teambit/component": "1.0.1132",
|
|
33
|
-
"@teambit/dependency-resolver": "1.0.1132",
|
|
34
|
-
"@teambit/generator": "1.0.1133",
|
|
35
|
-
"@teambit/issues": "1.0.1132",
|
|
36
24
|
"@teambit/legacy.constants": "0.0.42",
|
|
37
|
-
"@teambit/ui": "1.0.1132",
|
|
38
|
-
"@teambit/watcher": "1.0.1132",
|
|
39
|
-
"@teambit/workspace": "1.0.1132",
|
|
40
|
-
"@teambit/isolator": "1.0.1132",
|
|
41
25
|
"@teambit/toolbox.fs.hard-link-directory": "0.0.38",
|
|
42
26
|
"@teambit/component.sources": "0.0.202",
|
|
43
|
-
"@teambit/
|
|
44
|
-
"@teambit/multi-compiler": "1.0.1132",
|
|
27
|
+
"@teambit/toolbox.path.path": "0.0.21",
|
|
45
28
|
"@teambit/pkg.modules.component-package-name": "0.0.157",
|
|
46
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.381"
|
|
29
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.381",
|
|
30
|
+
"@teambit/workspace.root-components": "1.0.1",
|
|
31
|
+
"@teambit/bit-error": "0.0.404",
|
|
32
|
+
"@teambit/envs": "1.0.1134",
|
|
33
|
+
"@teambit/pubsub": "1.0.1134",
|
|
34
|
+
"@teambit/aspect-loader": "1.0.1134",
|
|
35
|
+
"@teambit/builder": "1.0.1134",
|
|
36
|
+
"@teambit/bundler": "1.0.1134",
|
|
37
|
+
"@teambit/component": "1.0.1134",
|
|
38
|
+
"@teambit/dependency-resolver": "1.0.1134",
|
|
39
|
+
"@teambit/generator": "1.0.1135",
|
|
40
|
+
"@teambit/issues": "1.0.1134",
|
|
41
|
+
"@teambit/ui": "1.0.1134",
|
|
42
|
+
"@teambit/watcher": "1.0.1134",
|
|
43
|
+
"@teambit/workspace": "1.0.1134",
|
|
44
|
+
"@teambit/isolator": "1.0.1134",
|
|
45
|
+
"@teambit/graph": "1.0.1134",
|
|
46
|
+
"@teambit/multi-compiler": "1.0.1134"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/pretty-time": "^1.1.5",
|