@teambit/generator 0.0.985 → 0.0.987
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/new.cmd.d.ts +1 -0
- package/dist/new.cmd.js +3 -2
- package/dist/new.cmd.js.map +1 -1
- package/dist/{preview-1676431915606.js → preview-1676570198614.js} +2 -2
- package/package-tar/teambit-generator-0.0.987.tgz +0 -0
- package/package.json +14 -14
- package/package-tar/teambit-generator-0.0.985.tgz +0 -0
package/dist/new.cmd.d.ts
CHANGED
package/dist/new.cmd.js
CHANGED
@@ -36,11 +36,12 @@ class NewCmd {
|
|
36
36
|
(0, _defineProperty2().default)(this, "alias", '');
|
37
37
|
(0, _defineProperty2().default)(this, "loader", true);
|
38
38
|
(0, _defineProperty2().default)(this, "group", 'start');
|
39
|
-
(0, _defineProperty2().default)(this, "options", [['a', 'aspect <aspect-id>', 'aspect-id of the template. mandatory for non-core aspects. helpful for core aspects in case of a name collision'], ['d', 'default-scope <scope-name>', `set defaultScope in the new workspace.jsonc`], ['', 'standalone', 'DEPRECATED. use --skip-git instead'], ['s', 'skip-git', 'skip generation of Git repository'], ['e', 'empty', 'empty workspace with no components (relevant for templates that add components by default)'], ['', 'load-from <path-to-template>', 'path to the workspace containing the template. helpful during a development of a workspace-template']]);
|
39
|
+
(0, _defineProperty2().default)(this, "options", [['a', 'aspect <aspect-id>', 'aspect-id of the template. mandatory for non-core aspects. helpful for core aspects in case of a name collision'], ['', 'env <env-id>', 'env-id of the template'], ['d', 'default-scope <scope-name>', `set defaultScope in the new workspace.jsonc`], ['', 'standalone', 'DEPRECATED. use --skip-git instead'], ['s', 'skip-git', 'skip generation of Git repository'], ['e', 'empty', 'empty workspace with no components (relevant for templates that add components by default)'], ['', 'load-from <path-to-template>', 'path to the workspace containing the template. helpful during a development of a workspace-template']]);
|
40
40
|
}
|
41
41
|
async report([templateName, workspaceName], options) {
|
42
|
-
var _options$skipGit;
|
42
|
+
var _options$skipGit, _options$aspect;
|
43
43
|
options.skipGit = (_options$skipGit = options.skipGit) !== null && _options$skipGit !== void 0 ? _options$skipGit : options.standalone;
|
44
|
+
options.aspect = (_options$aspect = options.aspect) !== null && _options$aspect !== void 0 ? _options$aspect : options.env;
|
44
45
|
const {
|
45
46
|
workspacePath,
|
46
47
|
appName
|
package/dist/new.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["NewCmd","constructor","generator","name","description","report","templateName","workspaceName","options","skipGit","standalone","workspacePath","appName","generateWorkspaceTemplate","chalk","white","green","yellow","bold","getBottomSection","cdLine","parts","push","join"],"sources":["new.cmd.ts"],"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 <template-name> <workspace-name>';\n description = 'create a new workspace from a template';\n arguments = [\n {\n name: 'template-name',\n description:\n \"the name of the workspace template (run 'bit templates', outside of a workspace, to get a list of available templates)\",\n },\n { name: 'workspace-name', description: 'the name for the new workspace and workspace directory' },\n ];\n alias = '';\n loader = true;\n group = 'start';\n options = [\n [\n 'a',\n 'aspect <aspect-id>',\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 <scope-name>', `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 <path-to-template>',\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]
|
1
|
+
{"version":3,"names":["NewCmd","constructor","generator","name","description","report","templateName","workspaceName","options","skipGit","standalone","aspect","env","workspacePath","appName","generateWorkspaceTemplate","chalk","white","green","yellow","bold","getBottomSection","cdLine","parts","push","join"],"sources":["new.cmd.ts"],"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 <template-name> <workspace-name>';\n description = 'create a new workspace from a template';\n arguments = [\n {\n name: 'template-name',\n description:\n \"the name of the workspace template (run 'bit templates', outside of a workspace, to get a list of available templates)\",\n },\n { name: 'workspace-name', description: 'the name for the new workspace and workspace directory' },\n ];\n alias = '';\n loader = true;\n group = 'start';\n options = [\n [\n 'a',\n 'aspect <aspect-id>',\n 'aspect-id of the template. mandatory for non-core aspects. helpful for core aspects in case of a name collision',\n ],\n ['', 'env <env-id>', 'env-id of the template'],\n ['d', 'default-scope <scope-name>', `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 <path-to-template>',\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(\n [templateName, workspaceName]: [string, string],\n options: NewOptions & {\n standalone: boolean;\n env?: string;\n }\n ) {\n options.skipGit = options.skipGit ?? options.standalone;\n options.aspect = options.aspect ?? options.env;\n const { workspacePath, appName } = 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 '${workspacePath}'`)}\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 ${getBottomSection(workspaceName, appName)}\n `\n );\n }\n}\n\nfunction getBottomSection(workspaceName: string, appName: string | undefined) {\n const cdLine = chalk.yellow(`cd ${workspaceName}`);\n const parts = [cdLine];\n if (appName) {\n parts.push(chalk.yellow(` bit run ${appName}`));\n }\n parts.push(chalk.yellow(` bit start`));\n return parts.join('\\n');\n}\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAWO,MAAMA,MAAM,CAAoB;EAgCrCC,WAAW,CAASC,SAAwB,EAAE;IAAA,KAA1BA,SAAwB,GAAxBA,SAAwB;IAAA,8CA/BrC,sCAAsC;IAAA,qDAC/B,wCAAwC;IAAA,mDAC1C,CACV;MACEC,IAAI,EAAE,eAAe;MACrBC,WAAW,EACT;IACJ,CAAC,EACD;MAAED,IAAI,EAAE,gBAAgB;MAAEC,WAAW,EAAE;IAAyD,CAAC,CAClG;IAAA,+CACO,EAAE;IAAA,gDACD,IAAI;IAAA,+CACL,OAAO;IAAA,iDACL,CACR,CACE,GAAG,EACH,oBAAoB,EACpB,iHAAiH,CAClH,EACD,CAAC,EAAE,EAAE,cAAc,EAAE,wBAAwB,CAAC,EAC9C,CAAC,GAAG,EAAE,4BAA4B,EAAG,6CAA4C,CAAC,EAClF,CAAC,EAAE,EAAE,YAAY,EAAE,oCAAoC,CAAC,EACxD,CAAC,GAAG,EAAE,UAAU,EAAE,mCAAmC,CAAC,EACtD,CAAC,GAAG,EAAE,OAAO,EAAE,4FAA4F,CAAC,EAC5G,CACE,EAAE,EACF,8BAA8B,EAC9B,qGAAqG,CACtG,CACF;EAE8C;EAE/C,MAAMC,MA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AG,CAACD,MAAM,CAAC;EACtB,IAAIR,OAAO,EAAE;IACXS,KAAK,CAACC,IAAI,CAACR,gBAAK,CAACG,MAAM,CAAE,iBAAgBL,OAAQ,EAAC,CAAC,CAAC;EACtD;EACAS,KAAK,CAACC,IAAI,CAACR,gBAAK,CAACG,MAAM,CAAE,iBAAgB,CAAC,CAAC;EAC3C,OAAOI,KAAK,CAACE,IAAI,CAAC,IAAI,CAAC;AACzB"}
|
@@ -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.987/dist/generator.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@0.0.987/dist/generator.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
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.987",
|
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.987"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"camelcase": "6.2.0",
|
@@ -22,22 +22,22 @@
|
|
22
22
|
"@teambit/harmony": "0.4.6",
|
23
23
|
"@teambit/bit-error": "0.0.402",
|
24
24
|
"@teambit/component-id": "0.0.426",
|
25
|
-
"@teambit/envs": "0.0.
|
26
|
-
"@teambit/new-component-helper": "0.0.
|
27
|
-
"@teambit/tracker": "0.0.
|
28
|
-
"@teambit/workspace": "0.0.
|
25
|
+
"@teambit/envs": "0.0.987",
|
26
|
+
"@teambit/new-component-helper": "0.0.391",
|
27
|
+
"@teambit/tracker": "0.0.18",
|
28
|
+
"@teambit/workspace": "0.0.987",
|
29
29
|
"@teambit/cli": "0.0.662",
|
30
|
-
"@teambit/graphql": "0.0.
|
31
|
-
"@teambit/aspect-loader": "0.0.
|
32
|
-
"@teambit/bit": "0.0.
|
30
|
+
"@teambit/graphql": "0.0.987",
|
31
|
+
"@teambit/aspect-loader": "0.0.987",
|
32
|
+
"@teambit/bit": "0.0.989",
|
33
33
|
"@teambit/community": "0.0.210",
|
34
|
-
"@teambit/component": "0.0.
|
35
|
-
"@teambit/compiler": "0.0.
|
36
|
-
"@teambit/forking": "0.0.
|
37
|
-
"@teambit/importer": "0.0.
|
34
|
+
"@teambit/component": "0.0.987",
|
35
|
+
"@teambit/compiler": "0.0.987",
|
36
|
+
"@teambit/forking": "0.0.391",
|
37
|
+
"@teambit/importer": "0.0.416",
|
38
38
|
"@teambit/install": "0.0.110",
|
39
39
|
"@teambit/logger": "0.0.755",
|
40
|
-
"@teambit/ui": "0.0.
|
40
|
+
"@teambit/ui": "0.0.987"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
43
|
"@types/fs-extra": "9.0.7",
|
Binary file
|