@teambit/node 1.0.41 → 1.0.42

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.
Files changed (161) hide show
  1. package/artifacts/env-template/public/{29.aabccd461805a58cd99a.js → 29.ddc7bc194190fac98e8b.js} +18 -18
  2. package/artifacts/env-template/public/{238.64be32cc6d4bc396b35e.js → 293.4bce474b96c9eb955917.js} +4 -4
  3. package/artifacts/env-template/public/assets-manifest.json +12 -12
  4. package/artifacts/env-template/public/{compositions.2f6adb00de8250ec25bb.js → compositions.87d6238bc3f9ad09db15.js} +1 -1
  5. package/artifacts/env-template/public/compositions.html +1 -1
  6. package/artifacts/env-template/public/{overview.6046b45c5c5ed35f09bb.js → overview.4bebd06a33f1cc723194.js} +1 -1
  7. package/artifacts/env-template/public/overview.html +1 -1
  8. package/artifacts/env-template/public/{peers.b59dd85dd7ea760e8208.js → peers.f9dd17dc213c6e0d0102.js} +1 -1
  9. package/artifacts/env-template/public/{preview-root.983463c786334e1fbaf1.js → preview-root.3b62d04b3a7f234bd8ca.js} +1 -1
  10. package/dist/node.aspect.js +2 -4
  11. package/dist/node.aspect.js.map +1 -1
  12. package/dist/node.env.js +1 -2
  13. package/dist/node.env.js.map +1 -1
  14. package/dist/node.main.runtime.d.ts +6 -3
  15. package/dist/node.main.runtime.js +21 -25
  16. package/dist/node.main.runtime.js.map +1 -1
  17. package/dist/node.templates.d.ts +3 -0
  18. package/dist/node.templates.js +33 -0
  19. package/dist/node.templates.js.map +1 -0
  20. package/dist/node.ui.runtime.js +1 -2
  21. package/dist/node.ui.runtime.js.map +1 -1
  22. package/dist/{preview-1698981534427.js → preview-1699364645970.js} +2 -2
  23. package/package.json +23 -20
  24. package/dist/templates/entity/index.d.ts +0 -0
  25. package/dist/templates/entity/index.js +0 -3
  26. package/dist/templates/entity/index.js.map +0 -1
  27. package/dist/templates/express-app/files/app-root.d.ts +0 -5
  28. package/dist/templates/express-app/files/app-root.js +0 -39
  29. package/dist/templates/express-app/files/app-root.js.map +0 -1
  30. package/dist/templates/express-app/files/composition.d.ts +0 -5
  31. package/dist/templates/express-app/files/composition.js +0 -20
  32. package/dist/templates/express-app/files/composition.js.map +0 -1
  33. package/dist/templates/express-app/files/doc.d.ts +0 -5
  34. package/dist/templates/express-app/files/doc.js +0 -35
  35. package/dist/templates/express-app/files/doc.js.map +0 -1
  36. package/dist/templates/express-app/files/get-port.d.ts +0 -4
  37. package/dist/templates/express-app/files/get-port.js +0 -21
  38. package/dist/templates/express-app/files/get-port.js.map +0 -1
  39. package/dist/templates/express-app/files/index.d.ts +0 -6
  40. package/dist/templates/express-app/files/index.js +0 -17
  41. package/dist/templates/express-app/files/index.js.map +0 -1
  42. package/dist/templates/express-app/files/mock-route.d.ts +0 -4
  43. package/dist/templates/express-app/files/mock-route.js +0 -23
  44. package/dist/templates/express-app/files/mock-route.js.map +0 -1
  45. package/dist/templates/express-app/files/node-app.d.ts +0 -5
  46. package/dist/templates/express-app/files/node-app.js +0 -23
  47. package/dist/templates/express-app/files/node-app.js.map +0 -1
  48. package/dist/templates/express-app/files/route.d.ts +0 -4
  49. package/dist/templates/express-app/files/route.js +0 -29
  50. package/dist/templates/express-app/files/route.js.map +0 -1
  51. package/dist/templates/express-app/files/test.d.ts +0 -5
  52. package/dist/templates/express-app/files/test.js +0 -19
  53. package/dist/templates/express-app/files/test.js.map +0 -1
  54. package/dist/templates/express-app/index.d.ts +0 -2
  55. package/dist/templates/express-app/index.js +0 -79
  56. package/dist/templates/express-app/index.js.map +0 -1
  57. package/dist/templates/express-route/files/composition.d.ts +0 -5
  58. package/dist/templates/express-route/files/composition.js +0 -20
  59. package/dist/templates/express-route/files/composition.js.map +0 -1
  60. package/dist/templates/express-route/files/doc.d.ts +0 -5
  61. package/dist/templates/express-route/files/doc.js +0 -24
  62. package/dist/templates/express-route/files/doc.js.map +0 -1
  63. package/dist/templates/express-route/files/index.d.ts +0 -6
  64. package/dist/templates/express-route/files/index.js +0 -16
  65. package/dist/templates/express-route/files/index.js.map +0 -1
  66. package/dist/templates/express-route/files/main.d.ts +0 -5
  67. package/dist/templates/express-route/files/main.js +0 -21
  68. package/dist/templates/express-route/files/main.js.map +0 -1
  69. package/dist/templates/express-route/files/test.d.ts +0 -5
  70. package/dist/templates/express-route/files/test.js +0 -19
  71. package/dist/templates/express-route/files/test.js.map +0 -1
  72. package/dist/templates/express-route/index.d.ts +0 -2
  73. package/dist/templates/express-route/index.js +0 -51
  74. package/dist/templates/express-route/index.js.map +0 -1
  75. package/dist/templates/node/files/composition.d.ts +0 -5
  76. package/dist/templates/node/files/composition.js +0 -20
  77. package/dist/templates/node/files/composition.js.map +0 -1
  78. package/dist/templates/node/files/doc.d.ts +0 -5
  79. package/dist/templates/node/files/doc.js +0 -24
  80. package/dist/templates/node/files/doc.js.map +0 -1
  81. package/dist/templates/node/files/index.d.ts +0 -6
  82. package/dist/templates/node/files/index.js +0 -16
  83. package/dist/templates/node/files/index.js.map +0 -1
  84. package/dist/templates/node/files/main.d.ts +0 -5
  85. package/dist/templates/node/files/main.js +0 -17
  86. package/dist/templates/node/files/main.js.map +0 -1
  87. package/dist/templates/node/files/test.d.ts +0 -5
  88. package/dist/templates/node/files/test.js +0 -19
  89. package/dist/templates/node/files/test.js.map +0 -1
  90. package/dist/templates/node/index.d.ts +0 -2
  91. package/dist/templates/node/index.js +0 -58
  92. package/dist/templates/node/index.js.map +0 -1
  93. package/dist/templates/node-env/files/aspect.d.ts +0 -2
  94. package/dist/templates/node-env/files/aspect.js +0 -19
  95. package/dist/templates/node-env/files/aspect.js.map +0 -1
  96. package/dist/templates/node-env/files/doc.d.ts +0 -2
  97. package/dist/templates/node-env/files/doc.js +0 -187
  98. package/dist/templates/node-env/files/doc.js.map +0 -1
  99. package/dist/templates/node-env/files/index.d.ts +0 -2
  100. package/dist/templates/node-env/files/index.js +0 -19
  101. package/dist/templates/node-env/files/index.js.map +0 -1
  102. package/dist/templates/node-env/files/jest.config.d.ts +0 -1
  103. package/dist/templates/node-env/files/jest.config.js +0 -29
  104. package/dist/templates/node-env/files/jest.config.js.map +0 -1
  105. package/dist/templates/node-env/files/main.runtime.d.ts +0 -2
  106. package/dist/templates/node-env/files/main.runtime.js +0 -104
  107. package/dist/templates/node-env/files/main.runtime.js.map +0 -1
  108. package/dist/templates/node-env/files/preview.runtime.d.ts +0 -2
  109. package/dist/templates/node-env/files/preview.runtime.js +0 -37
  110. package/dist/templates/node-env/files/preview.runtime.js.map +0 -1
  111. package/dist/templates/node-env/files/typescript/styles.d.ts +0 -1
  112. package/dist/templates/node-env/files/typescript/styles.js +0 -15
  113. package/dist/templates/node-env/files/typescript/styles.js.map +0 -1
  114. package/dist/templates/node-env/files/typescript/ts-transformer.d.ts +0 -1
  115. package/dist/templates/node-env/files/typescript/ts-transformer.js +0 -58
  116. package/dist/templates/node-env/files/typescript/ts-transformer.js.map +0 -1
  117. package/dist/templates/node-env/files/typescript/typescript.config.d.ts +0 -1
  118. package/dist/templates/node-env/files/typescript/typescript.config.js +0 -29
  119. package/dist/templates/node-env/files/typescript/typescript.config.js.map +0 -1
  120. package/dist/templates/node-env/files/webpack.config.d.ts +0 -1
  121. package/dist/templates/node-env/files/webpack.config.js +0 -56
  122. package/dist/templates/node-env/files/webpack.config.js.map +0 -1
  123. package/dist/templates/node-env/index.d.ts +0 -2
  124. package/dist/templates/node-env/index.js +0 -124
  125. package/dist/templates/node-env/index.js.map +0 -1
  126. package/templates/entity/index.ts +0 -0
  127. package/templates/express-app/files/app-root.ts +0 -33
  128. package/templates/express-app/files/composition.ts +0 -14
  129. package/templates/express-app/files/doc.ts +0 -26
  130. package/templates/express-app/files/get-port.ts +0 -13
  131. package/templates/express-app/files/index.ts +0 -11
  132. package/templates/express-app/files/mock-route.ts +0 -15
  133. package/templates/express-app/files/node-app.ts +0 -17
  134. package/templates/express-app/files/route.ts +0 -21
  135. package/templates/express-app/files/test.ts +0 -13
  136. package/templates/express-app/index.ts +0 -35
  137. package/templates/express-route/files/composition.ts +0 -14
  138. package/templates/express-route/files/doc.ts +0 -18
  139. package/templates/express-route/files/index.ts +0 -10
  140. package/templates/express-route/files/main.ts +0 -15
  141. package/templates/express-route/files/test.ts +0 -13
  142. package/templates/express-route/index.ts +0 -27
  143. package/templates/node/files/composition.ts +0 -14
  144. package/templates/node/files/doc.ts +0 -18
  145. package/templates/node/files/index.ts +0 -10
  146. package/templates/node/files/main.ts +0 -11
  147. package/templates/node/files/test.ts +0 -13
  148. package/templates/node/index.ts +0 -21
  149. package/templates/node-env/files/aspect.ts +0 -10
  150. package/templates/node-env/files/doc.ts +0 -178
  151. package/templates/node-env/files/index.ts +0 -10
  152. package/templates/node-env/files/jest.config.ts +0 -21
  153. package/templates/node-env/files/main.runtime.ts +0 -95
  154. package/templates/node-env/files/preview.runtime.ts +0 -27
  155. package/templates/node-env/files/typescript/styles.ts +0 -7
  156. package/templates/node-env/files/typescript/ts-transformer.ts +0 -50
  157. package/templates/node-env/files/typescript/typescript.config.ts +0 -21
  158. package/templates/node-env/files/webpack.config.ts +0 -48
  159. package/templates/node-env/index.ts +0 -68
  160. /package/{compositions-1698981534427.js → compositions-1699364645970.js} +0 -0
  161. /package/{overview-1698981534427.js → overview-1699364645970.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["mainFile","context","relativePath","name","content","namePascalCase"],"sources":["main.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function mainFile(context: ComponentContext) {\n return {\n relativePath: `${context.name}.ts`,\n content: `export function get${context.namePascalCase}Route() {\n return {\n method: 'get',\n route: '/${context.name}',\n middlewares: [async (req, res) => res.send('${context.name} response')]\n }\n}\n`,\n };\n}\n"],"mappings":";;;;;;AAEO,SAASA,QAAQA,CAACC,OAAyB,EAAE;EAClD,OAAO;IACLC,YAAY,EAAG,GAAED,OAAO,CAACE,IAAK,KAAI;IAClCC,OAAO,EAAG,sBAAqBH,OAAO,CAACI,cAAe;AAC1D;AACA;AACA,eAAeJ,OAAO,CAACE,IAAK;AAC5B,kDAAkDF,OAAO,CAACE,IAAK;AAC/D;AACA;AACA;EACE,CAAC;AACH"}
@@ -1,5 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function testFile(context: ComponentContext): {
3
- relativePath: string;
4
- content: string;
5
- };
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.testFile = testFile;
7
- function testFile(context) {
8
- return {
9
- relativePath: `${context.name}.spec.ts`,
10
- content: `import { ${context.nameCamelCase} } from './${context.name}';
11
-
12
- it('should return the correct value', () => {
13
- expect(${context.nameCamelCase}()).toBe('Hello world!');
14
- });
15
- `
16
- };
17
- }
18
-
19
- //# sourceMappingURL=test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["testFile","context","relativePath","name","content","nameCamelCase"],"sources":["test.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function testFile(context: ComponentContext) {\n return {\n relativePath: `${context.name}.spec.ts`,\n content: `import { ${context.nameCamelCase} } from './${context.name}';\n\nit('should return the correct value', () => {\n expect(${context.nameCamelCase}()).toBe('Hello world!');\n});\n`,\n };\n}\n"],"mappings":";;;;;;AAEO,SAASA,QAAQA,CAACC,OAAyB,EAAE;EAClD,OAAO;IACLC,YAAY,EAAG,GAAED,OAAO,CAACE,IAAK,UAAS;IACvCC,OAAO,EAAG,YAAWH,OAAO,CAACI,aAAc,cAAaJ,OAAO,CAACE,IAAK;AACzE;AACA;AACA,WAAWF,OAAO,CAACI,aAAc;AACjC;AACA;EACE,CAAC;AACH"}
@@ -1,2 +0,0 @@
1
- import { ComponentTemplate } from '@teambit/generator';
2
- export declare const expressRouteTemplate: ComponentTemplate;
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.expressRouteTemplate = void 0;
7
- function _index() {
8
- const data = require("./files/index");
9
- _index = function () {
10
- return data;
11
- };
12
- return data;
13
- }
14
- function _doc() {
15
- const data = require("./files/doc");
16
- _doc = function () {
17
- return data;
18
- };
19
- return data;
20
- }
21
- function _main() {
22
- const data = require("./files/main");
23
- _main = function () {
24
- return data;
25
- };
26
- return data;
27
- }
28
- // import { testFile } from './files/test';
29
- // import { compositionFile } from './files/composition';
30
-
31
- const expressRouteTemplate = {
32
- name: 'express-route',
33
- description: 'an express route',
34
- hidden: true,
35
- generateFiles: context => {
36
- return [(0, _index().indexFile)(context), (0, _doc().docFile)(context), (0, _main().mainFile)(context)
37
- // compositionFile(context),
38
- // testFile(context)
39
- ];
40
- },
41
-
42
- config: {
43
- 'teambit.harmony/node': {},
44
- 'teambit.envs/envs': {
45
- env: 'teambit.harmony/node'
46
- }
47
- }
48
- };
49
- exports.expressRouteTemplate = expressRouteTemplate;
50
-
51
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_index","data","require","_doc","_main","expressRouteTemplate","name","description","hidden","generateFiles","context","indexFile","docFile","mainFile","config","env","exports"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { docFile } from './files/doc';\nimport { mainFile } from './files/main';\n// import { testFile } from './files/test';\n// import { compositionFile } from './files/composition';\n\nexport const expressRouteTemplate: ComponentTemplate = {\n name: 'express-route',\n description: 'an express route',\n hidden: true,\n generateFiles: (context: ComponentContext) => {\n return [\n indexFile(context),\n docFile(context),\n mainFile(context),\n // compositionFile(context),\n // testFile(context)\n ];\n },\n config: {\n 'teambit.harmony/node': {},\n 'teambit.envs/envs': {\n env: 'teambit.harmony/node',\n },\n },\n};\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,KAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,IAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA;AACA;;AAEO,MAAMI,oBAAuC,GAAG;EACrDC,IAAI,EAAE,eAAe;EACrBC,WAAW,EAAE,kBAAkB;EAC/BC,MAAM,EAAE,IAAI;EACZC,aAAa,EAAGC,OAAyB,IAAK;IAC5C,OAAO,CACL,IAAAC,kBAAS,EAACD,OAAO,CAAC,EAClB,IAAAE,cAAO,EAACF,OAAO,CAAC,EAChB,IAAAG,gBAAQ,EAACH,OAAO;IAChB;IACA;IAAA,CACD;EACH,CAAC;;EACDI,MAAM,EAAE;IACN,sBAAsB,EAAE,CAAC,CAAC;IAC1B,mBAAmB,EAAE;MACnBC,GAAG,EAAE;IACP;EACF;AACF,CAAC;AAACC,OAAA,CAAAX,oBAAA,GAAAA,oBAAA"}
@@ -1,5 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function compositionFile(context: ComponentContext): {
3
- relativePath: string;
4
- content: string;
5
- };
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.compositionFile = compositionFile;
7
- function compositionFile(context) {
8
- return {
9
- relativePath: `${context.name}.composition.tsx`,
10
- content: `import React from 'react';
11
- import { ${context.nameCamelCase} } from './${context.name}';
12
-
13
- export function ReturnsCorrectValue() {
14
- return <div>{${context.nameCamelCase}()}</div>;
15
- }
16
- `
17
- };
18
- }
19
-
20
- //# sourceMappingURL=composition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["compositionFile","context","relativePath","name","content","nameCamelCase"],"sources":["composition.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function compositionFile(context: ComponentContext) {\n return {\n relativePath: `${context.name}.composition.tsx`,\n content: `import React from 'react';\nimport { ${context.nameCamelCase} } from './${context.name}';\n\nexport function ReturnsCorrectValue() {\n return <div>{${context.nameCamelCase}()}</div>;\n}\n`,\n };\n}\n"],"mappings":";;;;;;AAEO,SAASA,eAAeA,CAACC,OAAyB,EAAE;EACzD,OAAO;IACLC,YAAY,EAAG,GAAED,OAAO,CAACE,IAAK,kBAAiB;IAC/CC,OAAO,EAAG;AACd,WAAWH,OAAO,CAACI,aAAc,cAAaJ,OAAO,CAACE,IAAK;AAC3D;AACA;AACA,iBAAiBF,OAAO,CAACI,aAAc;AACvC;AACA;EACE,CAAC;AACH"}
@@ -1,5 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function docFile(context: ComponentContext): {
3
- relativePath: string;
4
- content: string;
5
- };
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.docFile = docFile;
7
- function docFile(context) {
8
- return {
9
- relativePath: `${context.name}.docs.mdx`,
10
- content: `---
11
- labels: ['module']
12
- description: 'A general purpose node module'
13
- ---
14
-
15
- API:
16
-
17
- \`\`\`ts
18
- function ${context.nameCamelCase}(): string;
19
- \`\`\`
20
- `
21
- };
22
- }
23
-
24
- //# sourceMappingURL=doc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["docFile","context","relativePath","name","content","nameCamelCase"],"sources":["doc.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function docFile(context: ComponentContext) {\n return {\n relativePath: `${context.name}.docs.mdx`,\n content: `---\nlabels: ['module']\ndescription: 'A general purpose node module'\n---\n\nAPI:\n\n\\`\\`\\`ts\nfunction ${context.nameCamelCase}(): string;\n\\`\\`\\`\n`,\n };\n}\n"],"mappings":";;;;;;AAEO,SAASA,OAAOA,CAACC,OAAyB,EAAE;EACjD,OAAO;IACLC,YAAY,EAAG,GAAED,OAAO,CAACE,IAAK,WAAU;IACxCC,OAAO,EAAG;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAWH,OAAO,CAACI,aAAc;AACjC;AACA;EACE,CAAC;AACH"}
@@ -1,6 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function indexFile(context: ComponentContext): {
3
- relativePath: string;
4
- content: string;
5
- isMain: boolean;
6
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.indexFile = indexFile;
7
- function indexFile(context) {
8
- return {
9
- relativePath: 'index.ts',
10
- content: `export { ${context.nameCamelCase} } from './${context.name}';
11
- `,
12
- isMain: true
13
- };
14
- }
15
-
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["indexFile","context","relativePath","content","nameCamelCase","name","isMain"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function indexFile(context: ComponentContext) {\n return {\n relativePath: 'index.ts',\n content: `export { ${context.nameCamelCase} } from './${context.name}';\n`,\n isMain: true,\n };\n}\n"],"mappings":";;;;;;AAEO,SAASA,SAASA,CAACC,OAAyB,EAAE;EACnD,OAAO;IACLC,YAAY,EAAE,UAAU;IACxBC,OAAO,EAAG,YAAWF,OAAO,CAACG,aAAc,cAAaH,OAAO,CAACI,IAAK;AACzE,CAAC;IACGC,MAAM,EAAE;EACV,CAAC;AACH"}
@@ -1,5 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function mainFile(context: ComponentContext): {
3
- relativePath: string;
4
- content: string;
5
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.mainFile = mainFile;
7
- function mainFile(context) {
8
- return {
9
- relativePath: `${context.name}.ts`,
10
- content: `export function ${context.nameCamelCase}() {
11
- return 'Hello world!';
12
- }
13
- `
14
- };
15
- }
16
-
17
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["mainFile","context","relativePath","name","content","nameCamelCase"],"sources":["main.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function mainFile(context: ComponentContext) {\n return {\n relativePath: `${context.name}.ts`,\n content: `export function ${context.nameCamelCase}() {\n return 'Hello world!';\n}\n`,\n };\n}\n"],"mappings":";;;;;;AAEO,SAASA,QAAQA,CAACC,OAAyB,EAAE;EAClD,OAAO;IACLC,YAAY,EAAG,GAAED,OAAO,CAACE,IAAK,KAAI;IAClCC,OAAO,EAAG,mBAAkBH,OAAO,CAACI,aAAc;AACtD;AACA;AACA;EACE,CAAC;AACH"}
@@ -1,5 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function testFile(context: ComponentContext): {
3
- relativePath: string;
4
- content: string;
5
- };
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.testFile = testFile;
7
- function testFile(context) {
8
- return {
9
- relativePath: `${context.name}.spec.ts`,
10
- content: `import { ${context.nameCamelCase} } from './${context.name}';
11
-
12
- it('should return the correct value', () => {
13
- expect(${context.nameCamelCase}()).toBe('Hello world!');
14
- });
15
- `
16
- };
17
- }
18
-
19
- //# sourceMappingURL=test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["testFile","context","relativePath","name","content","nameCamelCase"],"sources":["test.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function testFile(context: ComponentContext) {\n return {\n relativePath: `${context.name}.spec.ts`,\n content: `import { ${context.nameCamelCase} } from './${context.name}';\n\nit('should return the correct value', () => {\n expect(${context.nameCamelCase}()).toBe('Hello world!');\n});\n`,\n };\n}\n"],"mappings":";;;;;;AAEO,SAASA,QAAQA,CAACC,OAAyB,EAAE;EAClD,OAAO;IACLC,YAAY,EAAG,GAAED,OAAO,CAACE,IAAK,UAAS;IACvCC,OAAO,EAAG,YAAWH,OAAO,CAACI,aAAc,cAAaJ,OAAO,CAACE,IAAK;AACzE;AACA;AACA,WAAWF,OAAO,CAACI,aAAc;AACjC;AACA;EACE,CAAC;AACH"}
@@ -1,2 +0,0 @@
1
- import { ComponentTemplate } from '@teambit/generator';
2
- export declare const nodeTemplate: ComponentTemplate;
@@ -1,58 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.nodeTemplate = void 0;
7
- function _index() {
8
- const data = require("./files/index");
9
- _index = function () {
10
- return data;
11
- };
12
- return data;
13
- }
14
- function _doc() {
15
- const data = require("./files/doc");
16
- _doc = function () {
17
- return data;
18
- };
19
- return data;
20
- }
21
- function _main() {
22
- const data = require("./files/main");
23
- _main = function () {
24
- return data;
25
- };
26
- return data;
27
- }
28
- function _test() {
29
- const data = require("./files/test");
30
- _test = function () {
31
- return data;
32
- };
33
- return data;
34
- }
35
- function _composition() {
36
- const data = require("./files/composition");
37
- _composition = function () {
38
- return data;
39
- };
40
- return data;
41
- }
42
- const nodeTemplate = {
43
- name: 'node',
44
- description: 'a Node.js module',
45
- hidden: true,
46
- generateFiles: context => {
47
- return [(0, _index().indexFile)(context), (0, _doc().docFile)(context), (0, _main().mainFile)(context), (0, _composition().compositionFile)(context), (0, _test().testFile)(context)];
48
- },
49
- config: {
50
- 'teambit.harmony/node': {},
51
- 'teambit.envs/envs': {
52
- env: 'teambit.harmony/node'
53
- }
54
- }
55
- };
56
- exports.nodeTemplate = nodeTemplate;
57
-
58
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_index","data","require","_doc","_main","_test","_composition","nodeTemplate","name","description","hidden","generateFiles","context","indexFile","docFile","mainFile","compositionFile","testFile","config","env","exports"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { docFile } from './files/doc';\nimport { mainFile } from './files/main';\nimport { testFile } from './files/test';\nimport { compositionFile } from './files/composition';\n\nexport const nodeTemplate: ComponentTemplate = {\n name: 'node',\n description: 'a Node.js module',\n hidden: true,\n generateFiles: (context: ComponentContext) => {\n return [indexFile(context), docFile(context), mainFile(context), compositionFile(context), testFile(context)];\n },\n config: {\n 'teambit.harmony/node': {},\n 'teambit.envs/envs': {\n env: 'teambit.harmony/node',\n },\n },\n};\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,KAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,IAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,aAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,YAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAMM,YAA+B,GAAG;EAC7CC,IAAI,EAAE,MAAM;EACZC,WAAW,EAAE,kBAAkB;EAC/BC,MAAM,EAAE,IAAI;EACZC,aAAa,EAAGC,OAAyB,IAAK;IAC5C,OAAO,CAAC,IAAAC,kBAAS,EAACD,OAAO,CAAC,EAAE,IAAAE,cAAO,EAACF,OAAO,CAAC,EAAE,IAAAG,gBAAQ,EAACH,OAAO,CAAC,EAAE,IAAAI,8BAAe,EAACJ,OAAO,CAAC,EAAE,IAAAK,gBAAQ,EAACL,OAAO,CAAC,CAAC;EAC/G,CAAC;EACDM,MAAM,EAAE;IACN,sBAAsB,EAAE,CAAC,CAAC;IAC1B,mBAAmB,EAAE;MACnBC,GAAG,EAAE;IACP;EACF;AACF,CAAC;AAACC,OAAA,CAAAb,YAAA,GAAAA,YAAA"}
@@ -1,2 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function aspectFile({ namePascalCase: Name, componentId }: ComponentContext): string;
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.aspectFile = aspectFile;
7
- function aspectFile({
8
- namePascalCase: Name,
9
- componentId
10
- }) {
11
- return `import { Aspect } from '@teambit/harmony';
12
-
13
- export const ${Name}Aspect = Aspect.create({
14
- id: '${componentId}',
15
- });
16
- `;
17
- }
18
-
19
- //# sourceMappingURL=aspect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["aspectFile","namePascalCase","Name","componentId"],"sources":["aspect.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function aspectFile({ namePascalCase: Name, componentId }: ComponentContext) {\n return `import { Aspect } from '@teambit/harmony';\n\nexport const ${Name}Aspect = Aspect.create({\n id: '${componentId}',\n});\n`;\n}\n"],"mappings":";;;;;;AAEO,SAASA,UAAUA,CAAC;EAAEC,cAAc,EAAEC,IAAI;EAAEC;AAA8B,CAAC,EAAE;EAClF,OAAQ;AACV;AACA,eAAeD,IAAK;AACpB,SAASC,WAAY;AACrB;AACA,CAAC;AACD"}
@@ -1,2 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function docFile({ name, componentId }: ComponentContext): string;
@@ -1,187 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.docFile = docFile;
7
- function docFile({
8
- name,
9
- componentId
10
- }) {
11
- return `---
12
- description: 'A standard Node component development environment'
13
- labels: ['node', 'typescript', 'env', 'extension']
14
- ---
15
-
16
- ## Overview
17
-
18
- A customized version which extends the default Node component development environment created by teambit.
19
-
20
- This environment can be applied to all your components or a set of components via the command \`bit env set <pattern or component_id> ${componentId}\`, or under the variants of your \`workspace.json\` file.
21
- That means they will use your custom environment instead of the default environment. Environment components are just like any other Bit components in that they can be
22
- exported and then shared and used in various projects which makes it easier to create standards when working with many teams.
23
-
24
- ### Usage instructions
25
-
26
- #### Recommended usage:
27
-
28
- Run the command \`bit env set <"pattern" or component_id> ${componentId}\` where the pattern is a glob pattern to select multiple components. This will put the env
29
- config in your component's entry in the \`.bitmap\` file.
30
-
31
- :::Note - this will override any variants policy that tries to set an env for this component in the workspace.jsonc
32
- :::
33
-
34
- #### Alternative Usage
35
- Under the **variant** section of your \`workspace.json\` file choose which components you want to have the custom environment set. You can find the id of the extension in the \`${name}.aspect.ts\` file.
36
-
37
- \`\`\`json
38
- {
39
- "teambit.workspace/variants": {
40
- "{ui/**}, {pages/**}": {
41
- "${componentId}": {}
42
- }
43
- }
44
- }
45
- \`\`\`
46
-
47
- This usage may be deprecated in future in favour of the recommended usage above
48
-
49
- ## Runtime Configurations
50
-
51
- Extend the \`main.runtime\` file when you want to add custom configurations at runtime.
52
-
53
- ### Compilation
54
-
55
- By default, Component compilation is done with the TypeScript compiler. Target format is \`ES2015\` which
56
- supports execution from both NodeJS and browser runtimes for server-side rendering. You can modify the \`tsconfig.json\` file to add your own compiler options which will then be merged with the default configs set by teambit.
57
-
58
- Example:
59
-
60
- \`\`\`json
61
- {
62
- "compilerOptions": {
63
- "target": "es2017",
64
- "module": "es2015",
65
- "moduleResolution": "node",
66
- "lib": ["es2017", "dom"],
67
- "experimentalDecorators": true,
68
- "esModuleInterop": true,
69
- "outDir": "dist",
70
- "sourceMap": true,
71
- "emitDecoratorMetadata": true,
72
- "allowJs": true,
73
- "baseUrl": ".",
74
- "jsx": "react"
75
- }
76
- }
77
- \`\`\`
78
-
79
- ### Testing
80
-
81
- Component testing is done through [Jest](https://jestjs.io/) with the default \`teambit.react/react\` environment. You can modify the \`jestconfig.js\` file to add your own configurations which will then be merged with the default configs set by teambit.
82
-
83
- Example:
84
-
85
- To Override the Jest config to ignore transpiling from specific folders add this to the \`jestconfig.js\` file:
86
-
87
- \`\`\`js
88
- const reactJestConfig = require('@teambit/react/jest/jest.config');
89
- module.exports = {
90
- ...reactJestConfig,
91
- transformIgnorePatterns: ['/node_modules/(?!(prop-types|@teambit))']
92
- };
93
- \`\`\`
94
-
95
- ### Webpack
96
-
97
- Bit uses webpack 5 to bundle components. You can modify the \`webpack.config.js\` file to add your own configurations which will then be merged with the default configs set by teambit.
98
-
99
- Example:
100
-
101
- \`\`\`ts
102
- module.exports = {
103
- module: {
104
- // add your custom rules here
105
- rules: []
106
- }
107
- };
108
- \`\`\`
109
-
110
- ### ESLint
111
-
112
- Bit uses ESLint to lint your components. You can add your own rules in the \`${name}.main.runtime\` file.
113
-
114
- Example:
115
-
116
- \`\`\`ts
117
- react.useEslint({
118
- transformers: [
119
- (config) => {
120
- config.setRule('no-console', ['error']);
121
- // add more rules here
122
- return config;
123
- }
124
- ]
125
- }),
126
- \`\`\`
127
-
128
- To use ESLint:
129
-
130
- \`\`\`bash
131
- bit lint
132
- bit lint --fix
133
- \`\`\`
134
-
135
- ### Formatting
136
-
137
- Bit uses Prettier to format your components. You can add your own rules in the \`${name}.main.runtime\` file.
138
-
139
- Example:
140
-
141
- \`\`\`ts
142
- react.usePrettier({
143
- transformers: [
144
- (config) => {
145
- config.setKey('tabWidth', 2);
146
- // add more rules here
147
- return config;
148
- }
149
- ]
150
- }),
151
- \`\`\`
152
-
153
- To use Prettier:
154
-
155
- \`\`\`bash
156
- bit format --check
157
- bit format
158
- \`\`\`
159
-
160
- ### Dependencies
161
-
162
- Override the default dependencies in the \`${name}.main.runtime\` file to include react types of a different version for example.
163
-
164
- \`\`\`ts
165
- react.overrideDependencies({
166
- devDependencies: {
167
- '@types/react': '17.0.3'
168
- }
169
- });
170
- \`\`\`
171
-
172
- ## Preview Configurations
173
-
174
- Extend the \`${name}.preview.runtime\` file when you want to add your own customizations only for previewing in the Bit UI.
175
-
176
- ### Adding a Theme
177
-
178
- A custom theme has been added to the env which wraps all the composition files with the required theme so they can be developed with the correct themeing rather than the browsers default. This is added only in the preview runtime and not in the main runtime meaning it is only applied to compositions and not when consuming components. Adding a theme when consuming should be done at App level as you component may be consumed in various apps and have different themes applied depending on where it is consumed.
179
-
180
- Example:
181
-
182
- \`\`\`ts
183
- react.registerProvider([ThemeCompositions]);
184
- `;
185
- }
186
-
187
- //# sourceMappingURL=doc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["docFile","name","componentId"],"sources":["doc.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function docFile({ name, componentId }: ComponentContext) {\n return `---\ndescription: 'A standard Node component development environment'\nlabels: ['node', 'typescript', 'env', 'extension']\n---\n\n## Overview\n\nA customized version which extends the default Node component development environment created by teambit.\n\nThis environment can be applied to all your components or a set of components via the command \\`bit env set <pattern or component_id> ${componentId}\\`, or under the variants of your \\`workspace.json\\` file.\nThat means they will use your custom environment instead of the default environment. Environment components are just like any other Bit components in that they can be\nexported and then shared and used in various projects which makes it easier to create standards when working with many teams.\n\n### Usage instructions\n\n#### Recommended usage:\n\nRun the command \\`bit env set <\"pattern\" or component_id> ${componentId}\\` where the pattern is a glob pattern to select multiple components. This will put the env\nconfig in your component's entry in the \\`.bitmap\\` file.\n\n:::Note - this will override any variants policy that tries to set an env for this component in the workspace.jsonc\n:::\n\n#### Alternative Usage\nUnder the **variant** section of your \\`workspace.json\\` file choose which components you want to have the custom environment set. You can find the id of the extension in the \\`${name}.aspect.ts\\` file.\n\n\\`\\`\\`json\n{\n \"teambit.workspace/variants\": {\n \"{ui/**}, {pages/**}\": {\n \"${componentId}\": {}\n }\n }\n}\n\\`\\`\\`\n\nThis usage may be deprecated in future in favour of the recommended usage above\n\n## Runtime Configurations\n\nExtend the \\`main.runtime\\` file when you want to add custom configurations at runtime.\n\n### Compilation\n\nBy default, Component compilation is done with the TypeScript compiler. Target format is \\`ES2015\\` which\nsupports execution from both NodeJS and browser runtimes for server-side rendering. You can modify the \\`tsconfig.json\\` file to add your own compiler options which will then be merged with the default configs set by teambit.\n\nExample:\n\n\\`\\`\\`json\n{\n \"compilerOptions\": {\n \"target\": \"es2017\",\n \"module\": \"es2015\",\n \"moduleResolution\": \"node\",\n \"lib\": [\"es2017\", \"dom\"],\n \"experimentalDecorators\": true,\n \"esModuleInterop\": true,\n \"outDir\": \"dist\",\n \"sourceMap\": true,\n \"emitDecoratorMetadata\": true,\n \"allowJs\": true,\n \"baseUrl\": \".\",\n \"jsx\": \"react\"\n }\n}\n\\`\\`\\`\n\n### Testing\n\nComponent testing is done through [Jest](https://jestjs.io/) with the default \\`teambit.react/react\\` environment. You can modify the \\`jestconfig.js\\` file to add your own configurations which will then be merged with the default configs set by teambit.\n\nExample:\n\nTo Override the Jest config to ignore transpiling from specific folders add this to the \\`jestconfig.js\\` file:\n\n\\`\\`\\`js\nconst reactJestConfig = require('@teambit/react/jest/jest.config');\nmodule.exports = {\n ...reactJestConfig,\n transformIgnorePatterns: ['/node_modules/(?!(prop-types|@teambit))']\n};\n\\`\\`\\`\n\n### Webpack\n\nBit uses webpack 5 to bundle components. You can modify the \\`webpack.config.js\\` file to add your own configurations which will then be merged with the default configs set by teambit.\n\nExample:\n\n\\`\\`\\`ts\nmodule.exports = {\n module: {\n // add your custom rules here\n rules: []\n }\n};\n\\`\\`\\`\n\n### ESLint\n\nBit uses ESLint to lint your components. You can add your own rules in the \\`${name}.main.runtime\\` file.\n\nExample:\n\n\\`\\`\\`ts\nreact.useEslint({\n transformers: [\n (config) => {\n config.setRule('no-console', ['error']);\n // add more rules here\n return config;\n }\n ]\n}),\n\\`\\`\\`\n\nTo use ESLint:\n\n\\`\\`\\`bash\nbit lint\nbit lint --fix\n\\`\\`\\`\n\n### Formatting\n\nBit uses Prettier to format your components. You can add your own rules in the \\`${name}.main.runtime\\` file.\n\nExample:\n\n\\`\\`\\`ts\nreact.usePrettier({\n transformers: [\n (config) => {\n config.setKey('tabWidth', 2);\n // add more rules here\n return config;\n }\n ]\n}),\n\\`\\`\\`\n\nTo use Prettier:\n\n\\`\\`\\`bash\nbit format --check\nbit format\n\\`\\`\\`\n\n### Dependencies\n\nOverride the default dependencies in the \\`${name}.main.runtime\\` file to include react types of a different version for example.\n\n\\`\\`\\`ts\nreact.overrideDependencies({\n devDependencies: {\n '@types/react': '17.0.3'\n }\n});\n\\`\\`\\`\n\n## Preview Configurations\n\nExtend the \\`${name}.preview.runtime\\` file when you want to add your own customizations only for previewing in the Bit UI.\n\n### Adding a Theme\n\nA custom theme has been added to the env which wraps all the composition files with the required theme so they can be developed with the correct themeing rather than the browsers default. This is added only in the preview runtime and not in the main runtime meaning it is only applied to compositions and not when consuming components. Adding a theme when consuming should be done at App level as you component may be consumed in various apps and have different themes applied depending on where it is consumed.\n\nExample:\n\n\\`\\`\\`ts\nreact.registerProvider([ThemeCompositions]);\n`;\n}\n"],"mappings":";;;;;;AAEO,SAASA,OAAOA,CAAC;EAAEC,IAAI;EAAEC;AAA8B,CAAC,EAAE;EAC/D,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wIAAwIA,WAAY;AACpJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4DA,WAAY;AACxE;AACA;AACA;AACA;AACA;AACA;AACA,mLAAmLD,IAAK;AACxL;AACA;AACA;AACA;AACA;AACA,SAASC,WAAY;AACrB;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;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,+EAA+ED,IAAK;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmFA,IAAK;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6CA,IAAK;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeA,IAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD"}
@@ -1,2 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function indexFile({ namePascalCase: Name, name }: ComponentContext): string;
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.indexFile = indexFile;
7
- function indexFile({
8
- namePascalCase: Name,
9
- name
10
- }) {
11
- return `import { ${Name}Aspect } from './${name}.aspect';
12
-
13
- export type { ${Name}Main } from './${name}.main.runtime';
14
- export default ${Name}Aspect;
15
- export { ${Name}Aspect };
16
- `;
17
- }
18
-
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["indexFile","namePascalCase","Name","name"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function indexFile({ namePascalCase: Name, name }: ComponentContext) {\n return `import { ${Name}Aspect } from './${name}.aspect';\n\nexport type { ${Name}Main } from './${name}.main.runtime';\nexport default ${Name}Aspect;\nexport { ${Name}Aspect };\n`;\n}\n"],"mappings":";;;;;;AAEO,SAASA,SAASA,CAAC;EAAEC,cAAc,EAAEC,IAAI;EAAEC;AAAuB,CAAC,EAAE;EAC1E,OAAQ,YAAWD,IAAK,oBAAmBC,IAAK;AAClD;AACA,gBAAgBD,IAAK,kBAAiBC,IAAK;AAC3C,iBAAiBD,IAAK;AACtB,WAAWA,IAAK;AAChB,CAAC;AACD"}
@@ -1 +0,0 @@
1
- export declare function jestConfigFile(): string;
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.jestConfigFile = jestConfigFile;
7
- function jestConfigFile() {
8
- return `
9
- // Override the Jest config to ignore transpiling from specific folders
10
- // See the base Jest config: https://bit.cloud/teambit/react/react/~code/jest/jest.config.js
11
-
12
- // const reactJestConfig = require('@teambit/react/jest/jest.config');
13
- // uncomment the line below and install the package if you want to use this function
14
- // const {
15
- // generateNodeModulesPattern,
16
- // } = require('@teambit/dependencies.modules.packages-excluder');
17
- // const packagesToExclude = ['@my-org', 'my-package-name'];
18
-
19
- // module.exports = {
20
- // ...reactJestConfig,
21
- // transformIgnorePatterns: [
22
- // '^.+\\.module\\.(css|sass|scss)$',
23
- // generateNodeModulesPattern({ packages: packagesToExclude }),
24
- // ],
25
- // };
26
- `;
27
- }
28
-
29
- //# sourceMappingURL=jest.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["jestConfigFile"],"sources":["jest.config.ts"],"sourcesContent":["export function jestConfigFile() {\n return `\n // Override the Jest config to ignore transpiling from specific folders\n // See the base Jest config: https://bit.cloud/teambit/react/react/~code/jest/jest.config.js\n\n // const reactJestConfig = require('@teambit/react/jest/jest.config');\n // uncomment the line below and install the package if you want to use this function\n // const {\n // generateNodeModulesPattern,\n // } = require('@teambit/dependencies.modules.packages-excluder');\n // const packagesToExclude = ['@my-org', 'my-package-name'];\n\n // module.exports = {\n // ...reactJestConfig,\n // transformIgnorePatterns: [\n // '^.+\\\\.module\\\\.(css|sass|scss)$',\n // generateNodeModulesPattern({ packages: packagesToExclude }),\n // ],\n // };\n `;\n}\n"],"mappings":";;;;;;AAAO,SAASA,cAAcA,CAAA,EAAG;EAC/B,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH"}
@@ -1,2 +0,0 @@
1
- import { ComponentContext } from '@teambit/generator';
2
- export declare function mainRuntimeFile({ namePascalCase: Name, name }: ComponentContext): string;