@teambit/generator 0.0.876 → 0.0.878
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/templates/starter/files/starter.js.map +1 -1
- package/dist/templates/starter/index.js.map +1 -1
- package/package-tar/teambit-generator-0.0.878.tgz +0 -0
- package/package.json +20 -20
- package/{preview-1665459720186.js → preview-1665718844698.js} +2 -2
- package/templates/starter/files/starter.ts +0 -1
- package/templates/starter/index.ts +1 -2
- package/package-tar/teambit-generator-0.0.876.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["starterFile"],"sources":["starter.ts"],"sourcesContent":["export function starterFile() {\n return `import { WorkspaceContext, Starter } from '@teambit/generator';\nimport { workspaceConfig } from './template/files/workspace-config';\nimport { readme } from './template/files/readme-file';\nimport { gitIgnore } from './template/files/git-ignore';\n\nexport const starter: Starter = {\n name: 'template-example',\n description: 'demonstration of a workspace template',\n generateFiles: async (context: WorkspaceContext) => [\n {\n relativePath: 'workspace.jsonc',\n content: await workspaceConfig(context),\n },\n {\n relativePath: '.gitignore',\n content: gitIgnore(),\n },\n {\n relativePath: 'README.md',\n content: readme(),\n },\n ],\n importComponents: () => [\n { id: 'teambit.react/templates/ui/text', path: 'ui/text' },\n ],\n};\n\nexport default starter;\n`;\n}\n
|
|
1
|
+
{"version":3,"names":["starterFile"],"sources":["starter.ts"],"sourcesContent":["export function starterFile() {\n return `import { WorkspaceContext, Starter } from '@teambit/generator';\nimport { workspaceConfig } from './template/files/workspace-config';\nimport { readme } from './template/files/readme-file';\nimport { gitIgnore } from './template/files/git-ignore';\n\nexport const starter: Starter = {\n name: 'template-example',\n description: 'demonstration of a workspace template',\n generateFiles: async (context: WorkspaceContext) => [\n {\n relativePath: 'workspace.jsonc',\n content: await workspaceConfig(context),\n },\n {\n relativePath: '.gitignore',\n content: gitIgnore(),\n },\n {\n relativePath: 'README.md',\n content: readme(),\n },\n ],\n importComponents: () => [\n { id: 'teambit.react/templates/ui/text', path: 'ui/text' },\n ],\n};\n\nexport default starter;\n`;\n}\n"],"mappings":";;;;;;;AAAO,SAASA,WAAT,GAAuB;EAC5B,OAAQ;AACV;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,CA5BE;AA6BD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["starterTemplate","name","description","generateFiles","context","relativePath","content","indexFile","isMain","starterFile","docsFile","gitIgnoreTemplate","readmeTemplate","workspaceConfigTemplate","config","env"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { starterFile } from './files/starter';\nimport { docsFile } from './files/docs-file';\nimport { gitIgnoreTemplate } from './files/git-ignore-tpl';\nimport { readmeTemplate } from './files/readme-tpl';\nimport { workspaceConfigTemplate } from './files/workspace-config-tpl';\n\nexport const starterTemplate: ComponentTemplate = {\n name: 'starter',\n description
|
|
1
|
+
{"version":3,"names":["starterTemplate","name","description","generateFiles","context","relativePath","content","indexFile","isMain","starterFile","docsFile","gitIgnoreTemplate","readmeTemplate","workspaceConfigTemplate","config","env"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { starterFile } from './files/starter';\nimport { docsFile } from './files/docs-file';\nimport { gitIgnoreTemplate } from './files/git-ignore-tpl';\nimport { readmeTemplate } from './files/readme-tpl';\nimport { workspaceConfigTemplate } from './files/workspace-config-tpl';\n\nexport const starterTemplate: ComponentTemplate = {\n name: 'starter',\n description: 'create your own starter - \\nDocs: https://bit.dev/docs/dev-services/generator/generate-workspace',\n generateFiles: (context: ComponentContext) => {\n return [\n {\n relativePath: 'index.ts',\n content: indexFile(context),\n isMain: true,\n },\n {\n relativePath: `${context.name}.starter.ts`,\n content: starterFile(),\n },\n {\n relativePath: `${context.name}.docs.mdx`,\n content: docsFile(),\n },\n {\n relativePath: 'template/files/git-ignore.ts',\n content: gitIgnoreTemplate(),\n },\n {\n relativePath: 'template/files/readme-file.ts',\n content: readmeTemplate(),\n },\n {\n relativePath: 'template/files/workspace-config.ts',\n content: workspaceConfigTemplate(),\n },\n ];\n },\n config: {\n 'teambit.harmony/aspect': {},\n 'teambit.envs/envs': {\n env: 'teambit.harmony/aspect',\n },\n },\n};\n"],"mappings":";;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,eAAkC,GAAG;EAChDC,IAAI,EAAE,SAD0C;EAEhDC,WAAW,EAAE,kGAFmC;EAGhDC,aAAa,EAAGC,OAAD,IAA+B;IAC5C,OAAO,CACL;MACEC,YAAY,EAAE,UADhB;MAEEC,OAAO,EAAE,IAAAC,kBAAA,EAAUH,OAAV,CAFX;MAGEI,MAAM,EAAE;IAHV,CADK,EAML;MACEH,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,aADhC;MAEEK,OAAO,EAAE,IAAAG,sBAAA;IAFX,CANK,EAUL;MACEJ,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,WADhC;MAEEK,OAAO,EAAE,IAAAI,oBAAA;IAFX,CAVK,EAcL;MACEL,YAAY,EAAE,8BADhB;MAEEC,OAAO,EAAE,IAAAK,iCAAA;IAFX,CAdK,EAkBL;MACEN,YAAY,EAAE,+BADhB;MAEEC,OAAO,EAAE,IAAAM,2BAAA;IAFX,CAlBK,EAsBL;MACEP,YAAY,EAAE,oCADhB;MAEEC,OAAO,EAAE,IAAAO,6CAAA;IAFX,CAtBK,CAAP;EA2BD,CA/B+C;EAgChDC,MAAM,EAAE;IACN,0BAA0B,EADpB;IAEN,qBAAqB;MACnBC,GAAG,EAAE;IADc;EAFf;AAhCwC,CAA3C"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/generator",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.878",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/generator/generator",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.generator",
|
|
8
8
|
"name": "generator",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.878"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"camelcase": "6.2.0",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"core-js": "^3.0.0",
|
|
22
22
|
"@teambit/harmony": "0.3.3",
|
|
23
23
|
"@teambit/bit-error": "0.0.400",
|
|
24
|
-
"@teambit/component-id": "0.0.
|
|
25
|
-
"@teambit/envs": "0.0.
|
|
26
|
-
"@teambit/new-component-helper": "0.0.
|
|
27
|
-
"@teambit/workspace": "0.0.
|
|
28
|
-
"@teambit/cli": "0.0.
|
|
29
|
-
"@teambit/graphql": "0.0.
|
|
30
|
-
"@teambit/aspect-loader": "0.0.
|
|
31
|
-
"@teambit/bit": "0.0.
|
|
32
|
-
"@teambit/community": "0.0.
|
|
33
|
-
"@teambit/component": "0.0.
|
|
34
|
-
"@teambit/importer": "0.0.
|
|
35
|
-
"@teambit/compiler": "0.0.
|
|
36
|
-
"@teambit/forking": "0.0.
|
|
37
|
-
"@teambit/install": "0.0.
|
|
38
|
-
"@teambit/logger": "0.0.
|
|
39
|
-
"@teambit/ui": "0.0.
|
|
24
|
+
"@teambit/component-id": "0.0.418",
|
|
25
|
+
"@teambit/envs": "0.0.878",
|
|
26
|
+
"@teambit/new-component-helper": "0.0.282",
|
|
27
|
+
"@teambit/workspace": "0.0.878",
|
|
28
|
+
"@teambit/cli": "0.0.588",
|
|
29
|
+
"@teambit/graphql": "0.0.878",
|
|
30
|
+
"@teambit/aspect-loader": "0.0.878",
|
|
31
|
+
"@teambit/bit": "0.0.880",
|
|
32
|
+
"@teambit/community": "0.0.136",
|
|
33
|
+
"@teambit/component": "0.0.878",
|
|
34
|
+
"@teambit/importer": "0.0.307",
|
|
35
|
+
"@teambit/compiler": "0.0.878",
|
|
36
|
+
"@teambit/forking": "0.0.282",
|
|
37
|
+
"@teambit/install": "0.0.25",
|
|
38
|
+
"@teambit/logger": "0.0.681",
|
|
39
|
+
"@teambit/ui": "0.0.878"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/fs-extra": "9.0.7",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@types/jest": "^26.0.0",
|
|
48
48
|
"@types/react-dom": "^17.0.5",
|
|
49
49
|
"@types/node": "12.20.4",
|
|
50
|
-
"@teambit/generator.aspect-docs.generator": "0.0.
|
|
50
|
+
"@teambit/generator.aspect-docs.generator": "0.0.150"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@teambit/legacy": "1.0.
|
|
53
|
+
"@teambit/legacy": "1.0.369",
|
|
54
54
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
55
55
|
"react": "^16.8.0 || ^17.0.0"
|
|
56
56
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.878/dist/generator.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.878/dist/generator.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -8,8 +8,7 @@ import { workspaceConfigTemplate } from './files/workspace-config-tpl';
|
|
|
8
8
|
|
|
9
9
|
export const starterTemplate: ComponentTemplate = {
|
|
10
10
|
name: 'starter',
|
|
11
|
-
description:
|
|
12
|
-
'create your own starter - \nDocs: https://bit.dev/docs/dev-services/generator/generate-workspace',
|
|
11
|
+
description: 'create your own starter - \nDocs: https://bit.dev/docs/dev-services/generator/generate-workspace',
|
|
13
12
|
generateFiles: (context: ComponentContext) => {
|
|
14
13
|
return [
|
|
15
14
|
{
|
|
Binary file
|