@teambit/generator 1.0.410 → 1.0.412

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.generator/generator@1.0.410" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.generator/generator@1.0.412" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.generator/generator-preview"]=t():e["teambit.generator/generator-preview"]=t()}(self,(()=>(()=>{"use strict";var e={32004:(e,t,n)=>{var a={id:"teambit.generator/aspect-docs/generator@0.0.172",homepage:"https://bit.cloud/teambit/generator/aspect-docs/generator",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=c,l(n(41594));var o=n(5016),r=["components"];function l(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m.apply(null,arguments)}function p(e,t){if(null==e)return{};var n,a,o=i(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}l.__bit_component=a,m.__bit_component=a,p.__bit_component=a,i.__bit_component=a;var s={},d="wrapper";function c(e){var t=e.components,n=p(e,r);return(0,o.mdx)(d,m({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)("p",null,"Generator extension enable generating new components by pre-defined templates"),(0,o.mdx)("h3",null,"Component location"),(0,o.mdx)("p",null,"Component location in the workspace directory tree is defined with the ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit create")," command (see below). For example, a component named ",(0,o.mdx)("inlineCode",{parentName:"p"},"ShoppingCart")," created in the ",(0,o.mdx)("inlineCode",{parentName:"p"},"acme.shopper")," and the namespace ",(0,o.mdx)("inlineCode",{parentName:"p"},"ui")," will be generated in the following directory:"),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre"},"acme.shopper/ui/shopping-cart\n")),(0,o.mdx)("h3",null,"Component name"),(0,o.mdx)("p",null,"When using templates Bit will use CamelCasing for passing the component-name to the template, but generated file structure should be in kebab-case, for better cross-operating-system compatibility of the component."),(0,o.mdx)("h3",null,"Automatically ",(0,o.mdx)("inlineCode",{parentName:"h3"},"add")," component"),(0,o.mdx)("p",null,"Bit should automatically register the new component to the ",(0,o.mdx)("inlineCode",{parentName:"p"},".bitmap")," file with a symmetrical name to the component-location in the workspace."),(0,o.mdx)("h2",null,"Register a template"),(0,o.mdx)("p",null,"Any aspect (include envs) can register templates. Each template should have a name and a list of files. Each file has a relative-path to the component-dir and template content. See the ",(0,o.mdx)("inlineCode",{parentName:"p"},"component-template.ts")," file for more info about the exact API."),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"Component name should be available as a param for the file-content-template."),(0,o.mdx)("li",{parentName:"ul"},"TBD: An environment must have a default template (if not set, use first template in array?).")),(0,o.mdx)("p",null,"To register a template, use the Generator API: ",(0,o.mdx)("inlineCode",{parentName:"p"},"registerComponentTemplate(templates: ComponentTemplate[])"),"."),(0,o.mdx)("p",null,"To make the templates of an aspect available on a workspace, they need to be added to the workspace.jsonc. For example:"),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-json"},'"teambit.generator/generator": {\n "aspects": [\n "teambit.harmony/aspect"\n ]\n },\n')),(0,o.mdx)("p",null,"In the example above, the aspect ",(0,o.mdx)("inlineCode",{parentName:"p"},"teambit.harmony/aspect")," is configured to be available for the generator."),(0,o.mdx)("h2",null,"Show all available templates"),(0,o.mdx)("p",null,"Introduce a new command ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit templates"),", which groups all available templates by aspects."),(0,o.mdx)("h2",null,"Hide core templates"),(0,o.mdx)("p",null,"Configure the Generator aspect to hide core templates when running ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit templates"),". They'll be only shown when using ",(0,o.mdx)("inlineCode",{parentName:"p"},"--show-all")," flag."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-json"},'"teambit.generator/generator": {\n "hideCoreTemplates": true\n },\n')),(0,o.mdx)("h2",null,"Generate a template from CLI"),(0,o.mdx)("p",null,"Introduce a ",(0,o.mdx)("inlineCode",{parentName:"p"},"create")," command to use templates."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-sh"},"bit create <template-name> <component-name...> [--scope | -s] [--namespace | -n] [--aspect | -a]\n")),(0,o.mdx)("h3",null,"Args"),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"<component name>")),(0,o.mdx)("p",null,"Name of the component to create. Will be used as the component's dir name and fed to the component template."),(0,o.mdx)("p",null,(0,o.mdx)("strong",{parentName:"p"},"generated file structure should use kebab-case, while the template itself be in camel case"),"."),(0,o.mdx)("h3",null,"Options"),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"[--scope | -s]")),(0,o.mdx)("p",null,"Sets the component's scope and base directory. If not defined, use the ",(0,o.mdx)("inlineCode",{parentName:"p"},"defaultScope")," from ",(0,o.mdx)("inlineCode",{parentName:"p"},"teambit.workspace/workspace")," config."),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"[--namespace | -n]")),(0,o.mdx)("p",null,"Sets the component's namespace and nested dirs inside the scope. If not define, use empty string."),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"[--aspect | -a]")),(0,o.mdx)("p",null,"Aspect ID that registered this template, required only if there are two templates with the same name from several aspects in the workspace."),(0,o.mdx)("h2",null,"Creating a custom template generator"),(0,o.mdx)("p",null,"See our ",(0,o.mdx)("a",{parentName:"p",href:"https://harmony-docs.bit.dev/extending-bit/creating-a-custom-generator"},"tutorial")," on how to Create your own custom component generator."))}c.__bit_component=a,c.isMDXComponent=!0},89320:(e,t,n)=>{Object.defineProperty(t,"W",{enumerable:!0,get:function(){return a.default}});var a=o(n(32004));function o(e){return e&&e.__esModule?e:{default:e}}o.__bit_component={id:"teambit.generator/aspect-docs/generator@0.0.172",homepage:"https://bit.cloud/teambit/generator/aspect-docs/generator",exported:!0}},18508:(e,t,n)=>{var a={id:"teambit.generator/generator@1.0.410",homepage:"https://bit.cloud/teambit/generator/generator",exported:!0};function o(){const e=r(n(41594));return o=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=a,r.__bit_component=a;const l=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/generator-new.svg"}));l.__bit_component=a,t.Logo=l},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};n.r(a),n.d(a,{compositions:()=>h,compositions_metadata:()=>x,overview:()=>f});var o={};n.r(o),n.d(o,{default:()=>u});var r=n(18508),l=(n(41594),n(5016));const m=TeambitMdxUiMdxScopeContext;var p=n(89320),i=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(null,arguments)}var d={},c="wrapper";function u(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i);return(0,l.mdx)(c,s({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.mdx)(m.MDXScopeProvider,{components:{Generator:p.W},mdxType:"MDXScopeProvider"},(0,l.mdx)(p.W,{mdxType:"Generator"})))}u.isMDXComponent=!0;const h=[r],f=[o],x={compositions:[{displayName:"Logo",identifier:"Logo"}]};return a})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.generator/generator-preview"]=t():e["teambit.generator/generator-preview"]=t()}(self,(()=>(()=>{"use strict";var e={32004:(e,t,n)=>{var a={id:"teambit.generator/aspect-docs/generator@0.0.172",homepage:"https://bit.cloud/teambit/generator/aspect-docs/generator",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=c,l(n(41594));var o=n(5016),r=["components"];function l(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m.apply(null,arguments)}function p(e,t){if(null==e)return{};var n,a,o=i(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}l.__bit_component=a,m.__bit_component=a,p.__bit_component=a,i.__bit_component=a;var s={},d="wrapper";function c(e){var t=e.components,n=p(e,r);return(0,o.mdx)(d,m({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)("p",null,"Generator extension enable generating new components by pre-defined templates"),(0,o.mdx)("h3",null,"Component location"),(0,o.mdx)("p",null,"Component location in the workspace directory tree is defined with the ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit create")," command (see below). For example, a component named ",(0,o.mdx)("inlineCode",{parentName:"p"},"ShoppingCart")," created in the ",(0,o.mdx)("inlineCode",{parentName:"p"},"acme.shopper")," and the namespace ",(0,o.mdx)("inlineCode",{parentName:"p"},"ui")," will be generated in the following directory:"),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre"},"acme.shopper/ui/shopping-cart\n")),(0,o.mdx)("h3",null,"Component name"),(0,o.mdx)("p",null,"When using templates Bit will use CamelCasing for passing the component-name to the template, but generated file structure should be in kebab-case, for better cross-operating-system compatibility of the component."),(0,o.mdx)("h3",null,"Automatically ",(0,o.mdx)("inlineCode",{parentName:"h3"},"add")," component"),(0,o.mdx)("p",null,"Bit should automatically register the new component to the ",(0,o.mdx)("inlineCode",{parentName:"p"},".bitmap")," file with a symmetrical name to the component-location in the workspace."),(0,o.mdx)("h2",null,"Register a template"),(0,o.mdx)("p",null,"Any aspect (include envs) can register templates. Each template should have a name and a list of files. Each file has a relative-path to the component-dir and template content. See the ",(0,o.mdx)("inlineCode",{parentName:"p"},"component-template.ts")," file for more info about the exact API."),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"Component name should be available as a param for the file-content-template."),(0,o.mdx)("li",{parentName:"ul"},"TBD: An environment must have a default template (if not set, use first template in array?).")),(0,o.mdx)("p",null,"To register a template, use the Generator API: ",(0,o.mdx)("inlineCode",{parentName:"p"},"registerComponentTemplate(templates: ComponentTemplate[])"),"."),(0,o.mdx)("p",null,"To make the templates of an aspect available on a workspace, they need to be added to the workspace.jsonc. For example:"),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-json"},'"teambit.generator/generator": {\n "aspects": [\n "teambit.harmony/aspect"\n ]\n },\n')),(0,o.mdx)("p",null,"In the example above, the aspect ",(0,o.mdx)("inlineCode",{parentName:"p"},"teambit.harmony/aspect")," is configured to be available for the generator."),(0,o.mdx)("h2",null,"Show all available templates"),(0,o.mdx)("p",null,"Introduce a new command ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit templates"),", which groups all available templates by aspects."),(0,o.mdx)("h2",null,"Hide core templates"),(0,o.mdx)("p",null,"Configure the Generator aspect to hide core templates when running ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit templates"),". They'll be only shown when using ",(0,o.mdx)("inlineCode",{parentName:"p"},"--show-all")," flag."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-json"},'"teambit.generator/generator": {\n "hideCoreTemplates": true\n },\n')),(0,o.mdx)("h2",null,"Generate a template from CLI"),(0,o.mdx)("p",null,"Introduce a ",(0,o.mdx)("inlineCode",{parentName:"p"},"create")," command to use templates."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-sh"},"bit create <template-name> <component-name...> [--scope | -s] [--namespace | -n] [--aspect | -a]\n")),(0,o.mdx)("h3",null,"Args"),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"<component name>")),(0,o.mdx)("p",null,"Name of the component to create. Will be used as the component's dir name and fed to the component template."),(0,o.mdx)("p",null,(0,o.mdx)("strong",{parentName:"p"},"generated file structure should use kebab-case, while the template itself be in camel case"),"."),(0,o.mdx)("h3",null,"Options"),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"[--scope | -s]")),(0,o.mdx)("p",null,"Sets the component's scope and base directory. If not defined, use the ",(0,o.mdx)("inlineCode",{parentName:"p"},"defaultScope")," from ",(0,o.mdx)("inlineCode",{parentName:"p"},"teambit.workspace/workspace")," config."),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"[--namespace | -n]")),(0,o.mdx)("p",null,"Sets the component's namespace and nested dirs inside the scope. If not define, use empty string."),(0,o.mdx)("h4",null,(0,o.mdx)("inlineCode",{parentName:"h4"},"[--aspect | -a]")),(0,o.mdx)("p",null,"Aspect ID that registered this template, required only if there are two templates with the same name from several aspects in the workspace."),(0,o.mdx)("h2",null,"Creating a custom template generator"),(0,o.mdx)("p",null,"See our ",(0,o.mdx)("a",{parentName:"p",href:"https://harmony-docs.bit.dev/extending-bit/creating-a-custom-generator"},"tutorial")," on how to Create your own custom component generator."))}c.__bit_component=a,c.isMDXComponent=!0},89320:(e,t,n)=>{Object.defineProperty(t,"W",{enumerable:!0,get:function(){return a.default}});var a=o(n(32004));function o(e){return e&&e.__esModule?e:{default:e}}o.__bit_component={id:"teambit.generator/aspect-docs/generator@0.0.172",homepage:"https://bit.cloud/teambit/generator/aspect-docs/generator",exported:!0}},56934:(e,t,n)=>{var a={id:"teambit.generator/generator@1.0.412",homepage:"https://bit.cloud/teambit/generator/generator",exported:!0};function o(){const e=r(n(41594));return o=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=a,r.__bit_component=a;const l=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/generator-new.svg"}));l.__bit_component=a,t.Logo=l},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};n.r(a),n.d(a,{compositions:()=>h,compositions_metadata:()=>x,overview:()=>f});var o={};n.r(o),n.d(o,{default:()=>u});var r=n(56934),l=(n(41594),n(5016));const m=TeambitMdxUiMdxScopeContext;var p=n(89320),i=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(null,arguments)}var d={},c="wrapper";function u(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i);return(0,l.mdx)(c,s({},d,n,{components:t,mdxType:"MDXLayout"}),(0,l.mdx)(m.MDXScopeProvider,{components:{Generator:p.W},mdxType:"MDXScopeProvider"},(0,l.mdx)(p.W,{mdxType:"Generator"})))}u.isMDXComponent=!0;const h=[r],f=[o],x={compositions:[{displayName:"Logo",identifier:"Logo"}]};return a})()));
@@ -20,6 +20,7 @@
20
20
  "line": 1,
21
21
  "character": 15
22
22
  },
23
+ "signature": "class GeneratorMain",
23
24
  "name": "GeneratorMain",
24
25
  "exportNode": {
25
26
  "__schema": "ClassSchema",
@@ -2373,6 +2374,7 @@
2373
2374
  "line": 3,
2374
2375
  "character": 3
2375
2376
  },
2377
+ "signature": "type ComponentContext = BaseComponentTemplateOptions",
2376
2378
  "name": "ComponentContext",
2377
2379
  "exportNode": {
2378
2380
  "__schema": "TypeSchema",
@@ -2412,6 +2414,7 @@
2412
2414
  "line": 4,
2413
2415
  "character": 3
2414
2416
  },
2417
+ "signature": "interface ComponentTemplate",
2415
2418
  "name": "ComponentTemplate",
2416
2419
  "exportNode": {
2417
2420
  "__schema": "InterfaceSchema",
@@ -2986,6 +2989,7 @@
2986
2989
  "line": 5,
2987
2990
  "character": 3
2988
2991
  },
2992
+ "signature": "interface ComponentTemplateOptions",
2989
2993
  "name": "ComponentTemplateOptions",
2990
2994
  "exportNode": {
2991
2995
  "__schema": "InterfaceSchema",
@@ -3326,6 +3330,7 @@
3326
3330
  "line": 6,
3327
3331
  "character": 3
3328
3332
  },
3333
+ "signature": "interface ComponentFile",
3329
3334
  "name": "ComponentFile",
3330
3335
  "exportNode": {
3331
3336
  "__schema": "InterfaceSchema",
@@ -3441,6 +3446,7 @@
3441
3446
  "line": 7,
3442
3447
  "character": 3
3443
3448
  },
3449
+ "signature": "type ComponentConfig = {\n [aspectName: string]: any;\n}",
3444
3450
  "name": "ComponentConfig",
3445
3451
  "exportNode": {
3446
3452
  "__schema": "TypeSchema",
@@ -3507,6 +3513,7 @@
3507
3513
  "line": 8,
3508
3514
  "character": 3
3509
3515
  },
3516
+ "signature": "interface ConfigContext",
3510
3517
  "name": "ConfigContext",
3511
3518
  "exportNode": {
3512
3519
  "__schema": "InterfaceSchema",
@@ -3560,6 +3567,7 @@
3560
3567
  "line": 11,
3561
3568
  "character": 3
3562
3569
  },
3570
+ "signature": "type WorkspaceContext = BaseWorkspaceOptions",
3563
3571
  "name": "WorkspaceContext",
3564
3572
  "exportNode": {
3565
3573
  "__schema": "TypeSchema",
@@ -3599,6 +3607,7 @@
3599
3607
  "line": 12,
3600
3608
  "character": 3
3601
3609
  },
3610
+ "signature": "interface WorkspaceTemplate",
3602
3611
  "name": "WorkspaceTemplate",
3603
3612
  "exportNode": {
3604
3613
  "__schema": "InterfaceSchema",
@@ -4140,6 +4149,7 @@
4140
4149
  "line": 13,
4141
4150
  "character": 24
4142
4151
  },
4152
+ "signature": "interface WorkspaceTemplate",
4143
4153
  "name": "WorkspaceTemplate",
4144
4154
  "exportNode": {
4145
4155
  "__schema": "InterfaceSchema",
@@ -4682,6 +4692,7 @@
4682
4692
  "line": 14,
4683
4693
  "character": 3
4684
4694
  },
4695
+ "signature": "interface WorkspaceFile",
4685
4696
  "name": "WorkspaceFile",
4686
4697
  "exportNode": {
4687
4698
  "__schema": "InterfaceSchema",
@@ -4766,6 +4777,7 @@
4766
4777
  "line": 15,
4767
4778
  "character": 3
4768
4779
  },
4780
+ "signature": "interface ForkComponentInfo",
4769
4781
  "name": "ForkComponentInfo",
4770
4782
  "exportNode": {
4771
4783
  "__schema": "InterfaceSchema",
@@ -4998,6 +5010,7 @@
4998
5010
  "line": 16,
4999
5011
  "character": 3
5000
5012
  },
5013
+ "signature": "interface ImportComponentInfo",
5001
5014
  "name": "ImportComponentInfo",
5002
5015
  "exportNode": {
5003
5016
  "__schema": "InterfaceSchema",
@@ -5082,6 +5095,7 @@
5082
5095
  "line": 17,
5083
5096
  "character": 3
5084
5097
  },
5098
+ "signature": "interface CreateComponentInfo",
5085
5099
  "name": "CreateComponentInfo",
5086
5100
  "exportNode": {
5087
5101
  "__schema": "InterfaceSchema",
@@ -5290,6 +5304,7 @@
5290
5304
  "line": 19,
5291
5305
  "character": 15
5292
5306
  },
5307
+ "signature": "interface GeneratorEnv",
5293
5308
  "name": "GeneratorEnv",
5294
5309
  "exportNode": {
5295
5310
  "__schema": "InterfaceSchema",
@@ -5398,6 +5413,7 @@
5398
5413
  "line": 20,
5399
5414
  "character": 10
5400
5415
  },
5416
+ "signature": "const GeneratorAspect: Aspect",
5401
5417
  "name": "GeneratorAspect",
5402
5418
  "exportNode": {
5403
5419
  "__schema": "VariableLikeSchema",
@@ -5433,6 +5449,7 @@
5433
5449
  "line": 21,
5434
5450
  "character": 10
5435
5451
  },
5452
+ "signature": "class TemplateList",
5436
5453
  "name": "TemplateList",
5437
5454
  "exportNode": {
5438
5455
  "__schema": "ClassSchema",
@@ -5670,6 +5687,7 @@
5670
5687
  "line": 22,
5671
5688
  "character": 10
5672
5689
  },
5690
+ "signature": "class StarterList",
5673
5691
  "name": "StarterList",
5674
5692
  "exportNode": {
5675
5693
  "__schema": "ClassSchema",
@@ -5907,6 +5925,7 @@
5907
5925
  "line": 23,
5908
5926
  "character": 15
5909
5927
  },
5928
+ "signature": "type GenerateResult = {\n id: ComponentID;\n dir: string;\n files: string[];\n envId: string;\n envSetBy: string;\n packageName: string;\n isApp?: boolean | undefined;\n isEnv?: boolean | undefined;\n dependencies?: string[] | undefined;\n installMissingDependencies?: boolean | undefined;\n}",
5910
5929
  "name": "GenerateResult",
5911
5930
  "exportNode": {
5912
5931
  "__schema": "TypeSchema",
@@ -13616,7 +13635,7 @@
13616
13635
  "componentId": {
13617
13636
  "scope": "teambit.generator",
13618
13637
  "name": "generator",
13619
- "version": "1.0.410"
13638
+ "version": "1.0.412"
13620
13639
  },
13621
13640
  "taggedModuleExports": []
13622
13641
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.generator_generator@1.0.410/dist/generator.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.generator_generator@1.0.410/dist/generator.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.generator_generator@1.0.412/dist/generator.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.generator_generator@1.0.412/dist/generator.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/generator",
3
- "version": "1.0.410",
3
+ "version": "1.0.412",
4
4
  "homepage": "https://bit.cloud/teambit/generator/generator",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.generator",
8
8
  "name": "generator",
9
- "version": "1.0.410"
9
+ "version": "1.0.412"
10
10
  },
11
11
  "dependencies": {
12
12
  "camelcase": "6.2.0",
@@ -21,31 +21,31 @@
21
21
  "@teambit/component-id": "1.2.0",
22
22
  "@teambit/harmony": "0.4.6",
23
23
  "@teambit/git.modules.git-ignore": "1.0.2",
24
- "@teambit/component.sources": "0.0.29",
25
- "@teambit/envs": "1.0.409",
26
- "@teambit/logger": "0.0.1079",
27
- "@teambit/new-component-helper": "1.0.409",
24
+ "@teambit/component.sources": "0.0.30",
25
+ "@teambit/envs": "1.0.411",
26
+ "@teambit/logger": "0.0.1081",
27
+ "@teambit/new-component-helper": "1.0.411",
28
28
  "@teambit/pkg.modules.component-package-name": "0.0.4",
29
29
  "@teambit/toolbox.path.path": "0.0.4",
30
- "@teambit/tracker": "1.0.409",
31
- "@teambit/workspace-config-files": "1.0.409",
32
- "@teambit/workspace.modules.node-modules-linker": "0.0.204",
33
- "@teambit/workspace": "1.0.409",
34
- "@teambit/component": "1.0.409",
35
- "@teambit/cli": "0.0.986",
36
- "@teambit/graphql": "1.0.409",
37
- "@teambit/aspect-loader": "1.0.409",
38
- "@teambit/bit": "1.8.60",
39
- "@teambit/deprecation": "1.0.409",
40
- "@teambit/git": "1.0.409",
41
- "@teambit/compiler": "1.0.409",
42
- "@teambit/forking": "1.0.409",
30
+ "@teambit/tracker": "1.0.411",
31
+ "@teambit/workspace-config-files": "1.0.411",
32
+ "@teambit/workspace.modules.node-modules-linker": "0.0.205",
33
+ "@teambit/workspace": "1.0.411",
34
+ "@teambit/component": "1.0.411",
35
+ "@teambit/cli": "0.0.988",
36
+ "@teambit/graphql": "1.0.411",
37
+ "@teambit/aspect-loader": "1.0.411",
38
+ "@teambit/bit": "1.8.62",
39
+ "@teambit/deprecation": "1.0.411",
40
+ "@teambit/git": "1.0.411",
41
+ "@teambit/compiler": "1.0.411",
42
+ "@teambit/forking": "1.0.411",
43
43
  "@teambit/git.modules.git-executable": "0.0.1",
44
- "@teambit/host-initializer": "0.0.122",
45
- "@teambit/importer": "1.0.409",
46
- "@teambit/install": "1.0.409",
47
- "@teambit/ui": "1.0.409",
48
- "@teambit/config": "0.0.1160"
44
+ "@teambit/host-initializer": "0.0.124",
45
+ "@teambit/importer": "1.0.411",
46
+ "@teambit/install": "1.0.411",
47
+ "@teambit/ui": "1.0.411",
48
+ "@teambit/config": "0.0.1162"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/fs-extra": "9.0.7",