create-nx-workspace 23.2.0-beta.1 → 23.2.0-beta.11

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/README.md CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  <div style="text-align: center;">
9
9
 
10
- [![License](https://img.shields.io/npm/l/@nx/workspace.svg?style=flat-square)]()
10
+ [![License](https://img.shields.io/npm/l/@nx/workspace.svg?style=flat-square)](<>)
11
11
  [![NPM Version](https://badge.fury.io/js/nx.svg)](https://www.npmjs.com/package/nx)
12
- [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)]()
12
+ [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](<>)
13
13
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
14
14
  [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
15
15
  [![Nx Sandboxing](https://staging.nx.app/workspaces/62d013ea0852fe0a2df74438/sandbox-badge.svg)](https://nx.dev/docs/features/ci-features/sandboxing)
@@ -1,11 +1,12 @@
1
1
  import yargs from 'yargs';
2
2
  import { CreateWorkspaceOptions } from '../src/create-workspace-options';
3
3
  import { Preset } from '../src/utils/preset/preset';
4
+ import { type Formatter, type Linter } from '../src/internal-utils/prompts';
4
5
  type AngularUnitTestRunner = 'none' | 'jest' | 'vitest-angular' | 'vitest-analog';
5
6
  interface BaseArguments extends CreateWorkspaceOptions {
6
7
  preset?: Preset;
7
- linter?: 'none' | 'eslint';
8
- formatter?: 'none' | 'prettier';
8
+ linter?: Linter;
9
+ formatter?: Formatter;
9
10
  workspaces?: boolean;
10
11
  useProjectJson?: boolean;
11
12
  }
@@ -58,13 +59,20 @@ interface NodeArguments extends BaseArguments {
58
59
  appName: string;
59
60
  framework: 'none' | 'express' | 'fastify' | 'koa' | 'nest';
60
61
  docker: boolean;
61
- unitTestRunner: 'none' | 'jest';
62
+ unitTestRunner: 'none' | 'jest' | 'vitest';
63
+ }
64
+ interface WebArguments extends BaseArguments {
65
+ stack: 'web';
62
66
  }
63
67
  interface UnknownStackArguments extends BaseArguments {
64
68
  stack: 'unknown';
65
69
  }
66
- type Arguments = NoneArguments | ReactArguments | AngularArguments | VueArguments | NodeArguments | UnknownStackArguments;
70
+ type Arguments = NoneArguments | ReactArguments | AngularArguments | VueArguments | NodeArguments | WebArguments | UnknownStackArguments;
67
71
  export declare const commandsObject: yargs.Argv<Arguments>;
72
+ export declare function applyEmptyPresetAlias(argv: {
73
+ preset?: Preset | 'empty';
74
+ template?: string;
75
+ }): void;
68
76
  /** Workspace names must start with a letter. */
69
77
  export declare function isValidWorkspaceName(name: string): boolean;
70
78
  export declare function validateWorkspaceName(name: string): void;
@@ -88,4 +96,5 @@ export declare function resolveSpecialFolderName(folderName: string): {
88
96
  * @visibleForTesting
89
97
  */
90
98
  export declare function determineFolder(parsedArgs: yargs.Arguments<Arguments>): Promise<string>;
99
+ export declare function determinePresetOptions(parsedArgs: yargs.Arguments<Arguments>): Promise<Partial<Arguments>>;
91
100
  export {};