Skip to content

Commit

Permalink
feat(core): enable project crystal by default (#21403)
Browse files Browse the repository at this point in the history
Co-authored-by: Katerina Skroumpelou <[email protected]>
Co-authored-by: Jack Hsu <[email protected]>
Co-authored-by: Colum Ferry <[email protected]>
Co-authored-by: Leosvel Pérez Espinosa <[email protected]>
Co-authored-by: Emily Xiong <[email protected]>
Co-authored-by: Nicholas Cunningham <[email protected]>
  • Loading branch information
7 people authored Feb 2, 2024
1 parent 05b0848 commit 396ffc4
Show file tree
Hide file tree
Showing 430 changed files with 7,239 additions and 6,841 deletions.
2 changes: 1 addition & 1 deletion docs/generated/cli/add.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The package name and optional version (e.g. `@nx/react` or `@nx/react@latest`) t

Type: `boolean`

Update `package.json` scripts with inferred targets. Defaults to `true` when `NX_PCV3=true` and the package is a core Nx plugin
Update `package.json` scripts with inferred targets. Defaults to `true` when the package is a core Nx plugin

### verbose

Expand Down
34 changes: 1 addition & 33 deletions docs/generated/cli/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,12 @@ Install `nx` globally to invoke the command directly using `nx`, or use `npx nx`

## Options

### addE2e

Type: `boolean`

Default: `false`

Set up Cypress E2E tests in integrated workspaces. Only for CRA projects.

### force

Type: `boolean`

Default: `false`

Force the migration to continue and ignore custom webpack setup or uncommitted changes. Only for CRA projects.

### help

Type: `boolean`

Show help

### integrated

Type: `boolean`

Default: `false`

Migrate to an Nx integrated layout workspace. Only for Angular CLI workspaces and CRA projects.

### interactive

Type: `boolean`
Expand All @@ -59,7 +35,7 @@ When false disables interactive input prompts for options.

Type: `boolean`

Set up remote caching with Nx Cloud.
Set up distributed caching with Nx Cloud.

### useDotNxInstallation

Expand All @@ -74,11 +50,3 @@ Initialize an Nx workspace setup in the .nx directory of the current repository.
Type: `boolean`

Show version number

### vite

Type: `boolean`

Default: `true`

Use Vite as the bundler. Only for CRA projects.
2 changes: 1 addition & 1 deletion docs/generated/manifests/nx-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@
},
"generators": {
"/nx-api/expo/generators/init": {
"description": "Initialize the @nrwl/expo plugin",
"description": "Initialize the @nx/expo plugin",
"file": "generated/packages/expo/generators/init.json",
"hidden": true,
"name": "init",
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/packages-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@
],
"generators": [
{
"description": "Initialize the @nrwl/expo plugin",
"description": "Initialize the @nx/expo plugin",
"file": "generated/packages/expo/generators/init.json",
"hidden": true,
"name": "init",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-component-configuration",
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration",
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxAngularCypressComponentConfigurationGenerator",
Expand Down Expand Up @@ -41,7 +41,7 @@
"presets": []
},
"description": "Setup Cypress component testing for a project.",
"implementation": "/packages/angular/src/generators/cypress-component-configuration/cypress-component-configuration.ts",
"implementation": "/packages/angular/src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal.ts",
"aliases": [],
"hidden": false,
"path": "/packages/angular/src/generators/cypress-component-configuration/schema.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "component-configuration",
"aliases": ["cypress-component-configuration"],
"factory": "./src/generators/component-configuration/component-configuration",
"factory": "./src/generators/component-configuration/component-configuration#componentConfigurationGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxCypressComponentConfiguration",
Expand Down Expand Up @@ -46,7 +46,7 @@
},
"description": "Set up Cypress Component Test for a project",
"hidden": true,
"implementation": "/packages/cypress/src/generators/component-configuration/component-configuration.ts",
"implementation": "/packages/cypress/src/generators/component-configuration/component-configuration#componentConfigurationGeneratorInternal.ts",
"path": "/packages/cypress/src/generators/component-configuration/schema.json",
"type": "generator"
}
4 changes: 2 additions & 2 deletions docs/generated/packages/cypress/generators/configuration.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "configuration",
"aliases": ["cypress-e2e-configuration", "e2e", "e2e-config"],
"factory": "./src/generators/configuration/configuration",
"factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxCypressE2EConfigGenerator",
Expand Down Expand Up @@ -93,7 +93,7 @@
"presets": []
},
"description": "Add a Cypress E2E Configuration to an existing project.",
"implementation": "/packages/cypress/src/generators/configuration/configuration.ts",
"implementation": "/packages/cypress/src/generators/configuration/configuration#configurationGeneratorInternal.ts",
"hidden": false,
"path": "/packages/cypress/src/generators/configuration/schema.json",
"type": "generator"
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/cypress/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init#cypressInitGenerator",
"factory": "./src/generators/init/init#cypressInitGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxCypressInit",
Expand Down Expand Up @@ -39,7 +39,7 @@
"description": "Initialize the `@nrwl/cypress` plugin.",
"aliases": ["ng-add"],
"hidden": true,
"implementation": "/packages/cypress/src/generators/init/init#cypressInitGenerator.ts",
"implementation": "/packages/cypress/src/generators/init/init#cypressInitGeneratorInternal.ts",
"path": "/packages/cypress/src/generators/init/schema.json",
"type": "generator"
}
4 changes: 2 additions & 2 deletions docs/generated/packages/detox/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init#detoxInitGenerator",
"factory": "./src/generators/init/init#detoxInitGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"title": "Add Detox Schematics",
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"description": "Initialize the `@nrwl/detox` plugin.",
"hidden": true,
"implementation": "/packages/detox/src/generators/init/init#detoxInitGenerator.ts",
"implementation": "/packages/detox/src/generators/init/init#detoxInitGeneratorInternal.ts",
"aliases": [],
"path": "/packages/detox/src/generators/init/schema.json",
"type": "generator"
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/eslint/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init#lintInitGenerator",
"factory": "./src/generators/init/init#initEsLint",
"schema": {
"$schema": "https://json-schema.org/schema",
"cli": "nx",
Expand Down Expand Up @@ -32,7 +32,7 @@
},
"description": "Set up the ESLint plugin.",
"hidden": true,
"implementation": "/packages/eslint/src/generators/init/init#lintInitGenerator.ts",
"implementation": "/packages/eslint/src/generators/init/init#initEsLint.ts",
"aliases": [],
"path": "/packages/eslint/src/generators/init/schema.json",
"type": "generator"
Expand Down
6 changes: 3 additions & 3 deletions docs/generated/packages/expo/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init#expoInitGenerator",
"factory": "./src/generators/init/init#expoInitGeneratorInternal",
"schema": {
"cli": "nx",
"$id": "NxExpoInit",
Expand Down Expand Up @@ -35,9 +35,9 @@
"required": [],
"presets": []
},
"description": "Initialize the @nrwl/expo plugin",
"description": "Initialize the @nx/expo plugin",
"hidden": true,
"implementation": "/packages/expo/src/generators/init/init#expoInitGenerator.ts",
"implementation": "/packages/expo/src/generators/init/init#expoInitGeneratorInternal.ts",
"aliases": [],
"path": "/packages/expo/src/generators/init/schema.json",
"type": "generator"
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/jest/generators/configuration.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "configuration",
"factory": "./src/generators/configuration/configuration",
"factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxJestProject",
Expand Down Expand Up @@ -82,7 +82,7 @@
},
"description": "Add Jest configuration to a project.",
"hidden": true,
"implementation": "/packages/jest/src/generators/configuration/configuration.ts",
"implementation": "/packages/jest/src/generators/configuration/configuration#configurationGeneratorInternal.ts",
"aliases": [],
"path": "/packages/jest/src/generators/configuration/schema.json",
"type": "generator"
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/jest/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init#jestInitGenerator",
"factory": "./src/generators/init/init#jestInitGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxJestInit",
Expand Down Expand Up @@ -40,7 +40,7 @@
"description": "Initialize the `@nrwl/jest` plugin.",
"aliases": ["ng-add"],
"hidden": true,
"implementation": "/packages/jest/src/generators/init/init#jestInitGenerator.ts",
"implementation": "/packages/jest/src/generators/init/init#jestInitGeneratorInternal.ts",
"path": "/packages/jest/src/generators/init/schema.json",
"type": "generator"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-component-configuration",
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration",
"factory": "./src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"cli": "nx",
Expand Down Expand Up @@ -45,7 +45,7 @@
"presets": []
},
"description": "cypress-component-configuration generator",
"implementation": "/packages/next/src/generators/cypress-component-configuration/cypress-component-configuration.ts",
"implementation": "/packages/next/src/generators/cypress-component-configuration/cypress-component-configuration#cypressComponentConfigurationInternal.ts",
"aliases": [],
"hidden": false,
"path": "/packages/next/src/generators/cypress-component-configuration/schema.json",
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/next/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init#nextInitGenerator",
"factory": "./src/generators/init/init#nextInitGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"cli": "nx",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"description": "Initialize the `@nrwl/next` plugin.",
"hidden": true,
"implementation": "/packages/next/src/generators/init/init#nextInitGenerator.ts",
"implementation": "/packages/next/src/generators/init/init#nextInitGeneratorInternal.ts",
"aliases": [],
"path": "/packages/next/src/generators/init/schema.json",
"type": "generator"
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/packages/nx/documents/add.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The package name and optional version (e.g. `@nx/react` or `@nx/react@latest`) t

Type: `boolean`

Update `package.json` scripts with inferred targets. Defaults to `true` when `NX_PCV3=true` and the package is a core Nx plugin
Update `package.json` scripts with inferred targets. Defaults to `true` when the package is a core Nx plugin

### verbose

Expand Down
34 changes: 1 addition & 33 deletions docs/generated/packages/nx/documents/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,12 @@ Install `nx` globally to invoke the command directly using `nx`, or use `npx nx`

## Options

### addE2e

Type: `boolean`

Default: `false`

Set up Cypress E2E tests in integrated workspaces. Only for CRA projects.

### force

Type: `boolean`

Default: `false`

Force the migration to continue and ignore custom webpack setup or uncommitted changes. Only for CRA projects.

### help

Type: `boolean`

Show help

### integrated

Type: `boolean`

Default: `false`

Migrate to an Nx integrated layout workspace. Only for Angular CLI workspaces and CRA projects.

### interactive

Type: `boolean`
Expand All @@ -59,7 +35,7 @@ When false disables interactive input prompts for options.

Type: `boolean`

Set up remote caching with Nx Cloud.
Set up distributed caching with Nx Cloud.

### useDotNxInstallation

Expand All @@ -74,11 +50,3 @@ Initialize an Nx workspace setup in the .nx directory of the current repository.
Type: `boolean`

Show version number

### vite

Type: `boolean`

Default: `true`

Use Vite as the bundler. Only for CRA projects.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "configuration",
"factory": "./src/generators/configuration/configuration",
"factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxPlaywrightConfiguration",
Expand Down Expand Up @@ -74,7 +74,7 @@
"presets": []
},
"description": "Add Nx Playwright configuration to your project",
"implementation": "/packages/playwright/src/generators/configuration/configuration.ts",
"implementation": "/packages/playwright/src/generators/configuration/configuration#configurationGeneratorInternal.ts",
"aliases": [],
"hidden": false,
"path": "/packages/playwright/src/generators/configuration/schema.json",
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/playwright/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init",
"factory": "./src/generators/init/init#initGeneratorInternal",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxPlaywrightInit",
Expand Down Expand Up @@ -37,7 +37,7 @@
"presets": []
},
"description": "Initializes a Playwright project in the current workspace",
"implementation": "/packages/playwright/src/generators/init/init.ts",
"implementation": "/packages/playwright/src/generators/init/init#initGeneratorInternal.ts",
"aliases": [],
"hidden": false,
"path": "/packages/playwright/src/generators/init/schema.json",
Expand Down
4 changes: 2 additions & 2 deletions docs/generated/packages/react-native/generators/init.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init",
"factory": "./src/generators/init/init#reactNativeInitGenerator",
"factory": "./src/generators/init/init#reactNativeInitGeneratorInternal",
"schema": {
"cli": "nx",
"$id": "NxReactNativeInit",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"description": "Initialize the `@nx/react-native` plugin.",
"hidden": true,
"implementation": "/packages/react-native/src/generators/init/init#reactNativeInitGenerator.ts",
"implementation": "/packages/react-native/src/generators/init/init#reactNativeInitGeneratorInternal.ts",
"aliases": [],
"path": "/packages/react-native/src/generators/init/schema.json",
"type": "generator"
Expand Down
Loading

0 comments on commit 396ffc4

Please sign in to comment.