@teambit/generator 0.0.690 → 0.0.693

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.
@@ -27,7 +27,7 @@ const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
27
27
  style: {
28
28
  width: 70
29
29
  },
30
- src: "https://static.bit.dev/extensions-icons/generator.svg"
30
+ src: "https://static.bit.dev/extensions-icons/generator-new.svg"
31
31
  }));
32
32
 
33
33
  exports.Logo = Logo;
@@ -1 +1 @@
1
- {"version":3,"sources":["generator.composition.tsx"],"names":["Logo","height","display","justifyContent","width"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,MAAM,EAAE,MAAV;AAAkBC,IAAAA,OAAO,EAAE,MAA3B;AAAmCC,IAAAA,cAAc,EAAE;AAAnD;AAAZ,gBACE;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,KAAK,EAAE;AAAT,GAAZ;AAA2B,EAAA,GAAG,EAAC;AAA/B,EADF,CADK","sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/generator.svg\" />\n </div>\n);\n"]}
1
+ {"version":3,"sources":["generator.composition.tsx"],"names":["Logo","height","display","justifyContent","width"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,MAAM,EAAE,MAAV;AAAkBC,IAAAA,OAAO,EAAE,MAA3B;AAAmCC,IAAAA,cAAc,EAAE;AAAnD;AAAZ,gBACE;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,KAAK,EAAE;AAAT,GAAZ;AAA2B,EAAA,GAAG,EAAC;AAA/B,EADF,CADK","sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/generator-new.svg\" />\n </div>\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["new.cmd.ts"],"names":["NewCmd","constructor","generator","report","templateName","workspaceName","options","skipGit","standalone","results","generateWorkspaceTemplate","chalk","white","green","yellow","bold"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAWO,MAAMA,MAAN,CAAgC;AAwBrCC,EAAAA,WAAW,CAASC,SAAT,EAAmC;AAAA,SAA1BA,SAA0B,GAA1BA,SAA0B;AAAA,kDAvBvC,oCAuBuC;AAAA,yDAtBhC,wCAsBgC;AAAA,8DArB3B,EAqB2B;AAAA,mDApBtC,EAoBsC;AAAA,oDAnBrC,IAmBqC;AAAA,mDAlBtC,OAkBsC;AAAA,qDAjBpC,CACR,CACE,GADF,EAEE,iBAFF,EAGE,iHAHF,CADQ,EAMR,CAAC,GAAD,EAAM,wBAAN,EAAiC,6CAAjC,CANQ,EAOR,CAAC,EAAD,EAAK,YAAL,EAAmB,oCAAnB,CAPQ,EAQR,CAAC,GAAD,EAAM,UAAN,EAAkB,mCAAlB,CARQ,EASR,CAAC,GAAD,EAAM,OAAN,EAAe,4FAAf,CATQ,EAUR,CACE,EADF,EAEE,oBAFF,EAGE,qGAHF,CAVQ,CAiBoC;AAAE;;AAEpC,QAANC,MAAM,CAAC,CAACC,YAAD,EAAeC,aAAf,CAAD,EAAkDC,OAAlD,EAAiG;AAAA;;AAC3GA,IAAAA,OAAO,CAACC,OAAR,uBAAkBD,OAAO,CAACC,OAA1B,+DAAqCD,OAAO,CAACE,UAA7C;AACA,UAAMC,OAAO,GAAG,MAAM,KAAKP,SAAL,CAAeQ,yBAAf,CACpBL,aADoB,EAEpBD,YAFoB,EAGpBE,OAHoB,CAAtB;AAKA,WAAOK,iBAAMC,KAAN,CACJ,GAAED,iBAAME,KAAN,CAAa;AACtB;AACA,8DAA8DJ,OAAQ,GAF7D,CAEiE;AAC1E;AACA,wBAAwBJ,aAAc;AACtC;AACA,QAAQM,iBAAMG,MAAN,CAAa,WAAb,CAA0B;AAClC;AACA;AACA,QAAQH,iBAAMG,MAAN,CAAa,aAAb,CAA4B;AACpC;AACA;AACA,QAAQH,iBAAMG,MAAN,CAAa,YAAb,CAA2B;AACnC;AACA;AACA,QAAQH,iBAAMG,MAAN,CAAa,aAAb,CAA4B;AACpC;AACA;AACA,QAAQH,iBAAMG,MAAN,CAAa,UAAb,CAAyB;AACjC;AACA;AACA,QAAQH,iBAAMG,MAAN,CAAa,eAAb,CAA8B;AACtC;AACA;AACA,QAAQH,iBAAMG,MAAN,CAAa,UAAb,CAAyB;AACjC;AACA;AACA;AACA,EAAEH,iBAAME,KAAN,CAAYE,IAAZ,CAAiB,oBAAjB,CAAuC;AACzC;AACA,QAAQJ,iBAAMG,MAAN,CAAc,MAAKT,aAAc,EAAjC,CAAoC;AAC5C,QAAQM,iBAAMG,MAAN,CAAc,WAAd,CAA0B;AAClC;AACA,OAlCW,CAAP;AAoCD;;AArEoC","sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { GeneratorMain } from './generator.main.runtime';\n\nexport type NewOptions = {\n aspect?: string;\n defaultScope?: string;\n skipGit?: boolean;\n loadFrom?: string;\n empty?: boolean;\n};\n\nexport class NewCmd implements Command {\n name = 'new <templateName> <workspaceName>';\n description = 'Create a new workspace from a template';\n shortDescription = '';\n alias = '';\n loader = true;\n group = 'start';\n options = [\n [\n 'a',\n 'aspect <string>',\n 'aspect-id of the template. mandatory for non-core aspects. helpful for core aspects in case of a name collision',\n ],\n ['d', 'default-scope <string>', `set defaultScope in the new workspace.jsonc`],\n ['', 'standalone', 'DEPRECATED. use --skip-git instead'],\n ['s', 'skip-git', 'skip generation of Git repository'],\n ['e', 'empty', 'empty workspace with no components (relevant for templates that add components by default)'],\n [\n '',\n 'load-from <string>',\n 'path to the workspace containing the template. helpful during a development of a workspace-template',\n ],\n ] as CommandOptions;\n\n constructor(private generator: GeneratorMain) {}\n\n async report([templateName, workspaceName]: [string, string], options: NewOptions & { standalone: boolean }) {\n options.skipGit = options.skipGit ?? options.standalone;\n const results = await this.generator.generateWorkspaceTemplate(\n workspaceName,\n templateName,\n options\n );\n return chalk.white(\n `${chalk.green(`\n\nCongrats! A new workspace has been created successfully at '${results}'`)}\n\nInside the directory '${workspaceName}' you can run various commands including:\n\n ${chalk.yellow('bit start')}\n Starts the workspace in development mode\n\n ${chalk.yellow('bit install')}\n Installs any missing dependencies\n\n ${chalk.yellow('bit status')}\n Shows the status of the components\n\n ${chalk.yellow('bit compile')}\n Compiles the components\n\n ${chalk.yellow('bit test')}\n Runs the tests on all your components\n\n ${chalk.yellow('bit templates')}\n Shows all available component templates\n\n ${chalk.yellow('bit help')}\n Shows all available commands\n\n\n${chalk.green.bold(\"Let's get started!\")}\n\n ${chalk.yellow(`cd ${workspaceName}`)}\n ${chalk.yellow(`bit start`)}\n\n `\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["new.cmd.ts"],"names":["NewCmd","constructor","generator","report","templateName","workspaceName","options","skipGit","standalone","results","generateWorkspaceTemplate","chalk","white","green","yellow","bold"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAWO,MAAMA,MAAN,CAAgC;AAwBrCC,EAAAA,WAAW,CAASC,SAAT,EAAmC;AAAA,SAA1BA,SAA0B,GAA1BA,SAA0B;AAAA,kDAvBvC,oCAuBuC;AAAA,yDAtBhC,wCAsBgC;AAAA,8DArB3B,EAqB2B;AAAA,mDApBtC,EAoBsC;AAAA,oDAnBrC,IAmBqC;AAAA,mDAlBtC,OAkBsC;AAAA,qDAjBpC,CACR,CACE,GADF,EAEE,iBAF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Ac,EAAjC,CAAoC;AAC5C,QAAQM,iBAAMG,MAAN,CAAc,WAAd,CAA0B;AAClC;AACA,OAlCW,CAAP;AAoCD;;AAjEoC","sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { GeneratorMain } from './generator.main.runtime';\n\nexport type NewOptions = {\n aspect?: string;\n defaultScope?: string;\n skipGit?: boolean;\n loadFrom?: string;\n empty?: boolean;\n};\n\nexport class NewCmd implements Command {\n name = 'new <templateName> <workspaceName>';\n description = 'Create a new workspace from a template';\n shortDescription = '';\n alias = '';\n loader = true;\n group = 'start';\n options = [\n [\n 'a',\n 'aspect <string>',\n 'aspect-id of the template. mandatory for non-core aspects. helpful for core aspects in case of a name collision',\n ],\n ['d', 'default-scope <string>', `set defaultScope in the new workspace.jsonc`],\n ['', 'standalone', 'DEPRECATED. use --skip-git instead'],\n ['s', 'skip-git', 'skip generation of Git repository'],\n ['e', 'empty', 'empty workspace with no components (relevant for templates that add components by default)'],\n [\n '',\n 'load-from <string>',\n 'path to the workspace containing the template. helpful during a development of a workspace-template',\n ],\n ] as CommandOptions;\n\n constructor(private generator: GeneratorMain) {}\n\n async report([templateName, workspaceName]: [string, string], options: NewOptions & { standalone: boolean }) {\n options.skipGit = options.skipGit ?? options.standalone;\n const results = await this.generator.generateWorkspaceTemplate(workspaceName, templateName, options);\n return chalk.white(\n `${chalk.green(`\n\nCongrats! A new workspace has been created successfully at '${results}'`)}\n\nInside the directory '${workspaceName}' you can run various commands including:\n\n ${chalk.yellow('bit start')}\n Starts the workspace in development mode\n\n ${chalk.yellow('bit install')}\n Installs any missing dependencies\n\n ${chalk.yellow('bit status')}\n Shows the status of the components\n\n ${chalk.yellow('bit compile')}\n Compiles the components\n\n ${chalk.yellow('bit test')}\n Runs the tests on all your components\n\n ${chalk.yellow('bit templates')}\n Shows all available component templates\n\n ${chalk.yellow('bit help')}\n Shows all available commands\n\n\n${chalk.green.bold(\"Let's get started!\")}\n\n ${chalk.yellow(`cd ${workspaceName}`)}\n ${chalk.yellow(`bit start`)}\n\n `\n );\n }\n}\n"]}
@@ -2,6 +2,6 @@ import React from 'react';
2
2
 
3
3
  export const Logo = () => (
4
4
  <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>
5
- <img style={{ width: 70 }} src="https://static.bit.dev/extensions-icons/generator.svg" />
5
+ <img style={{ width: 70 }} src="https://static.bit.dev/extensions-icons/generator-new.svg" />
6
6
  </div>
7
7
  );
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/generator",
3
- "version": "0.0.690",
3
+ "version": "0.0.693",
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.690"
9
+ "version": "0.0.693"
10
10
  },
11
11
  "dependencies": {
12
12
  "camelcase": "6.2.0",
@@ -23,21 +23,21 @@
23
23
  "core-js": "^3.0.0",
24
24
  "@teambit/bit-error": "0.0.394",
25
25
  "@teambit/component-id": "0.0.402",
26
- "@teambit/envs": "0.0.690",
27
- "@teambit/new-component-helper": "0.0.94",
28
- "@teambit/workspace": "0.0.690",
29
- "@teambit/cli": "0.0.462",
30
- "@teambit/graphql": "0.0.690",
31
- "@teambit/aspect-loader": "0.0.690",
32
- "@teambit/bit": "0.0.692",
33
- "@teambit/community": "0.0.10",
34
- "@teambit/component": "0.0.690",
35
- "@teambit/compiler": "0.0.690",
36
- "@teambit/dependency-resolver": "0.0.690",
26
+ "@teambit/envs": "0.0.693",
27
+ "@teambit/new-component-helper": "0.0.97",
28
+ "@teambit/workspace": "0.0.693",
29
+ "@teambit/cli": "0.0.463",
30
+ "@teambit/graphql": "0.0.693",
31
+ "@teambit/aspect-loader": "0.0.693",
32
+ "@teambit/bit": "0.0.695",
33
+ "@teambit/community": "0.0.11",
34
+ "@teambit/component": "0.0.693",
35
+ "@teambit/compiler": "0.0.693",
36
+ "@teambit/dependency-resolver": "0.0.693",
37
37
  "@teambit/legacy-bit-id": "0.0.399",
38
- "@teambit/logger": "0.0.554",
39
- "@teambit/pkg": "0.0.690",
40
- "@teambit/ui": "0.0.690"
38
+ "@teambit/logger": "0.0.555",
39
+ "@teambit/pkg": "0.0.693",
40
+ "@teambit/ui": "0.0.693"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/fs-extra": "9.0.7",
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.690/dist/generator.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.690/dist/generator.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.693/dist/generator.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.693/dist/generator.docs.mdx')]