@teambit/compiler 1.0.1060 → 1.0.1062

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,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1060/dist/compiler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1060/dist/compiler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1062/dist/compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1062/dist/compiler.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -24,7 +24,7 @@ export class ${namePascalCase} implements Compiler {
24
24
  constructor(readonly id: string, readonly distDir, private compiler: CompilerMain) {}
25
25
 
26
26
  /**
27
- * Detemines whether unsupported files (such as assets)
27
+ * Determines whether unsupported files (such as assets)
28
28
  * should be copied by Compiler aspect into the 'dist' directory
29
29
  */
30
30
  shouldCopyNonSupportedFiles = true;
@@ -58,7 +58,7 @@ export class ${namePascalCase} implements Compiler {
58
58
  }
59
59
 
60
60
  /* This is optional but recommended.
61
- Not using it will require consumers of your compiler to use two APIs and have two depndencies
61
+ Not using it will require consumers of your compiler to use two APIs and have two dependencies
62
62
  to their Envs - your compiler
63
63
  */
64
64
  createTask() {
@@ -1 +1 @@
1
- {"version":3,"names":["compilerFile","namePascalCase"],"sources":["compiler-file.ts"],"sourcesContent":["import type { ComponentContext } from '@teambit/generator';\n\nexport function compilerFile({ namePascalCase }: ComponentContext) {\n return `import {\n BuildContext,\n BuiltTaskResult,\n ComponentResult,\n} from '@teambit/builder';\nimport {\n Compiler,\n CompilerMain,\n TranspileFileParams,\n TranspileFileOutput,\n} from '@teambit/compiler';\n\nexport class ${namePascalCase} implements Compiler {\n\n constructor(readonly id: string, readonly distDir, private compiler: CompilerMain) {}\n\n /**\n * Detemines whether unsupported files (such as assets)\n * should be copied by Compiler aspect into the 'dist' directory\n */\n shouldCopyNonSupportedFiles = true;\n\n /* The name of the compiler being used. For example, TypeScript, Babel, etc. */\n displayName = '';\n\n /* The version of the compiler being used. For example '1.0.0' */\n version(): string {};\n\n /**\n * Use this for compilation in the workspace.\n * This will compile one file content at a time (alternatively, use 'transpileComponent') */\n transpileFile( fileContent: string, transpileFileParams: TranspileFileParams): TranspileFileOutput {}\n\n\n async build(context: BuildContext): Promise<BuiltTaskResult> {\n let componentsResults: ComponentResult[] = [];\n return {\n /* Sets the files to persist as the Component's artifacts,\n and describes them. */\n artifacts: [\n {\n generatedBy: this.id,\n name: 'compilation output',\n globPatterns: [\\`\\${this.distDir}/**\\`],\n },\n ],\n componentsResults,\n };\n }\n\n /* This is optional but recommended.\n Not using it will require consumers of your compiler to use two APIs and have two depndencies\n to their Envs - your compiler\n */\n createTask() {\n return this.compiler.createTask('${namePascalCase}', this);\n }\n\n /**\n * Given a source file, return its parallel in the dists. e.g. index.ts => dist/index.js.\n * Needed by aspects such as Pkg to determine the main prop.\n */\n getDistPathBySrcPath(srcPath: string): string {}\n\n /**\n * Returns a boolean indicating whether a file is supported by the compiler or not.\n * For example, this API is used by Compiler aspect to copy unsupported files to the dist directory.\n */\n isFileSupported(filePath: string): boolean {}\n}\n `;\n}\n"],"mappings":";;;;;;AAEO,SAASA,YAAYA,CAAC;EAAEC;AAAiC,CAAC,EAAE;EACjE,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeA,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2CA,cAAc;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH","ignoreList":[]}
1
+ {"version":3,"names":["compilerFile","namePascalCase"],"sources":["compiler-file.ts"],"sourcesContent":["import type { ComponentContext } from '@teambit/generator';\n\nexport function compilerFile({ namePascalCase }: ComponentContext) {\n return `import {\n BuildContext,\n BuiltTaskResult,\n ComponentResult,\n} from '@teambit/builder';\nimport {\n Compiler,\n CompilerMain,\n TranspileFileParams,\n TranspileFileOutput,\n} from '@teambit/compiler';\n\nexport class ${namePascalCase} implements Compiler {\n\n constructor(readonly id: string, readonly distDir, private compiler: CompilerMain) {}\n\n /**\n * Determines whether unsupported files (such as assets)\n * should be copied by Compiler aspect into the 'dist' directory\n */\n shouldCopyNonSupportedFiles = true;\n\n /* The name of the compiler being used. For example, TypeScript, Babel, etc. */\n displayName = '';\n\n /* The version of the compiler being used. For example '1.0.0' */\n version(): string {};\n\n /**\n * Use this for compilation in the workspace.\n * This will compile one file content at a time (alternatively, use 'transpileComponent') */\n transpileFile( fileContent: string, transpileFileParams: TranspileFileParams): TranspileFileOutput {}\n\n\n async build(context: BuildContext): Promise<BuiltTaskResult> {\n let componentsResults: ComponentResult[] = [];\n return {\n /* Sets the files to persist as the Component's artifacts,\n and describes them. */\n artifacts: [\n {\n generatedBy: this.id,\n name: 'compilation output',\n globPatterns: [\\`\\${this.distDir}/**\\`],\n },\n ],\n componentsResults,\n };\n }\n\n /* This is optional but recommended.\n Not using it will require consumers of your compiler to use two APIs and have two dependencies\n to their Envs - your compiler\n */\n createTask() {\n return this.compiler.createTask('${namePascalCase}', this);\n }\n\n /**\n * Given a source file, return its parallel in the dists. e.g. index.ts => dist/index.js.\n * Needed by aspects such as Pkg to determine the main prop.\n */\n getDistPathBySrcPath(srcPath: string): string {}\n\n /**\n * Returns a boolean indicating whether a file is supported by the compiler or not.\n * For example, this API is used by Compiler aspect to copy unsupported files to the dist directory.\n */\n isFileSupported(filePath: string): boolean {}\n}\n `;\n}\n"],"mappings":";;;;;;AAEO,SAASA,YAAYA,CAAC;EAAEC;AAAiC,CAAC,EAAE;EACjE,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeA,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2CA,cAAc;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/compiler",
3
- "version": "1.0.1060",
3
+ "version": "1.0.1062",
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.1060"
9
+ "version": "1.0.1062"
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/cli": "0.0.1351",
21
- "@teambit/logger": "0.0.1444",
20
+ "@teambit/cli": "0.0.1352",
21
+ "@teambit/logger": "0.0.1445",
22
22
  "@teambit/component-id": "1.2.4",
23
23
  "@teambit/component-issues": "0.0.177",
24
24
  "@teambit/legacy.constants": "0.0.34",
25
25
  "@teambit/toolbox.fs.hard-link-directory": "0.0.31",
26
- "@teambit/component.sources": "0.0.188",
26
+ "@teambit/component.sources": "0.0.189",
27
27
  "@teambit/toolbox.path.path": "0.0.19",
28
- "@teambit/pkg.modules.component-package-name": "0.0.143",
29
- "@teambit/workspace.modules.node-modules-linker": "0.0.367",
28
+ "@teambit/pkg.modules.component-package-name": "0.0.144",
29
+ "@teambit/workspace.modules.node-modules-linker": "0.0.368",
30
30
  "@teambit/workspace.root-components": "1.0.1",
31
31
  "@teambit/bit-error": "0.0.404",
32
- "@teambit/envs": "1.0.1060",
33
- "@teambit/pubsub": "1.0.1060",
34
- "@teambit/aspect-loader": "1.0.1060",
35
- "@teambit/builder": "1.0.1060",
36
- "@teambit/bundler": "1.0.1060",
37
- "@teambit/component": "1.0.1060",
38
- "@teambit/dependency-resolver": "1.0.1060",
39
- "@teambit/generator": "1.0.1061",
40
- "@teambit/issues": "1.0.1060",
41
- "@teambit/ui": "1.0.1060",
42
- "@teambit/watcher": "1.0.1060",
43
- "@teambit/workspace": "1.0.1060",
44
- "@teambit/isolator": "1.0.1060",
45
- "@teambit/graph": "1.0.1060",
46
- "@teambit/multi-compiler": "1.0.1060"
32
+ "@teambit/envs": "1.0.1062",
33
+ "@teambit/pubsub": "1.0.1062",
34
+ "@teambit/aspect-loader": "1.0.1062",
35
+ "@teambit/builder": "1.0.1062",
36
+ "@teambit/bundler": "1.0.1062",
37
+ "@teambit/component": "1.0.1062",
38
+ "@teambit/dependency-resolver": "1.0.1062",
39
+ "@teambit/generator": "1.0.1063",
40
+ "@teambit/issues": "1.0.1062",
41
+ "@teambit/ui": "1.0.1062",
42
+ "@teambit/watcher": "1.0.1062",
43
+ "@teambit/workspace": "1.0.1062",
44
+ "@teambit/isolator": "1.0.1062",
45
+ "@teambit/graph": "1.0.1062",
46
+ "@teambit/multi-compiler": "1.0.1062"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/pretty-time": "^1.1.5",
@@ -18,7 +18,7 @@ export class ${namePascalCase} implements Compiler {
18
18
  constructor(readonly id: string, readonly distDir, private compiler: CompilerMain) {}
19
19
 
20
20
  /**
21
- * Detemines whether unsupported files (such as assets)
21
+ * Determines whether unsupported files (such as assets)
22
22
  * should be copied by Compiler aspect into the 'dist' directory
23
23
  */
24
24
  shouldCopyNonSupportedFiles = true;
@@ -52,7 +52,7 @@ export class ${namePascalCase} implements Compiler {
52
52
  }
53
53
 
54
54
  /* This is optional but recommended.
55
- Not using it will require consumers of your compiler to use two APIs and have two depndencies
55
+ Not using it will require consumers of your compiler to use two APIs and have two dependencies
56
56
  to their Envs - your compiler
57
57
  */
58
58
  createTask() {