Compare commits
45 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e93a029398 | |||
| aaeca8bd3d | |||
| 61af0050ac | |||
| 65d0f81e9e | |||
| 1244fa787a | |||
| 339d0a3df1 | |||
| 7e15077515 | |||
| 79a0a52ec0 | |||
| 41480f817d | |||
| 98ccd09966 | |||
| 9d48ea162d | |||
| ff98c24932 | |||
| 189f44014c | |||
| b4f583ad1f | |||
| 33bf58a6dd | |||
| e14c1c692f | |||
| 7d5b198240 | |||
| b20d7173e4 | |||
| 6d19e77d79 | |||
| 4ba498ef2f | |||
| f9e746fcb0 | |||
| dc67eb7cfe | |||
| c0e9258d34 | |||
| dd8c5810bf | |||
| 5a62f325c6 | |||
| 412ca99a7c | |||
| 411d3b4d23 | |||
| ccc1d43153 | |||
| b263047f33 | |||
| 17f7c1f75c | |||
| ff3c6b0dbb | |||
| 1ae37ac027 | |||
| 16f89ce864 | |||
| 1c57697202 | |||
| 5025902c2b | |||
| 7c0e4ba4ac | |||
| 5a1429d4e5 | |||
| c8cbb3ae0d | |||
| 5e59170b70 | |||
| d2a9966f81 | |||
| 2d318c3911 | |||
| ad978816a2 | |||
| e5441f0ef6 | |||
| befdee276b | |||
| d30cb707fb |
+1
-1
@@ -1,5 +1,5 @@
|
||||
[build]
|
||||
target-dir = 'build/target'
|
||||
target-dir = 'dist/target'
|
||||
|
||||
[target.x86_64-unknown-linux-musl]
|
||||
rustflags = [
|
||||
|
||||
@@ -97,27 +97,11 @@ jobs:
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm playwright install --with-deps
|
||||
|
||||
- name: Check Documentation
|
||||
run: pnpm nx documentation
|
||||
timeout-minutes: 20
|
||||
|
||||
- name: Run Checks/Lint/Test/Build
|
||||
run: |
|
||||
pids=()
|
||||
|
||||
pnpm nx-cloud record -- nx format:check &
|
||||
pids+=($!)
|
||||
|
||||
pnpm nx-cloud record -- nx sync:check
|
||||
pids+=($!)
|
||||
|
||||
pnpm nx-cloud record -- nx-cloud conformance:check
|
||||
pids+=($!)
|
||||
|
||||
pnpm nx run-many -t check-imports check-commit check-lock-files check-codeowners --parallel=1 --no-dte &
|
||||
pids+=($!)
|
||||
|
||||
pnpm nx affected --targets=lint,test,build,e2e,e2e-ci,format-native,lint-native &
|
||||
|
||||
pnpm nx affected --targets=e2e,e2e-ci &
|
||||
pids+=($!)
|
||||
|
||||
for pid in "${pids[@]}"; do
|
||||
|
||||
+5
-1
@@ -34,6 +34,11 @@ CHANGELOG.md
|
||||
# Next.js
|
||||
.next
|
||||
out
|
||||
nx-dev/nx-dev/public/documentation
|
||||
nx-dev/nx-dev/public/sitemap.xml
|
||||
nx-dev/nx-dev/public/sitemap-0.xml
|
||||
nx-dev/nx-dev/public/robots.txt
|
||||
|
||||
|
||||
# Angular Cache
|
||||
.angular
|
||||
@@ -106,4 +111,3 @@ tasks/
|
||||
|
||||
# Raw docs local configuration (machine-specific)
|
||||
.rawdocs.local.json
|
||||
|
||||
|
||||
@@ -17,6 +17,12 @@ launch-templates:
|
||||
- name: Check Node Version
|
||||
script: node --version
|
||||
|
||||
- name: Check COREPACK_ENABLE_AUTO_PIN
|
||||
script: echo $COREPACK_ENABLE_AUTO_PIN
|
||||
|
||||
- name: Check COREPACK_ENABLE_STRICT
|
||||
script: echo $COREPACK_ENABLE_STRICT
|
||||
|
||||
- name: Cache restore
|
||||
uses: 'nrwl/nx-cloud-workflows/v5/workflow-steps/cache/main.yaml'
|
||||
inputs:
|
||||
|
||||
@@ -93,8 +93,6 @@ Error.cause
|
||||
|
||||
• `Readonly` **errors**: [file: string, error: Error][]
|
||||
|
||||
An array of tuples that represent errors encountered when processing a given file. An example entry might look like ['path/to/project.json', [Error: 'Invalid JSON. Unexpected token 'a' in JSON at position 0]]
|
||||
|
||||
---
|
||||
|
||||
### message
|
||||
@@ -121,8 +119,6 @@ Error.name
|
||||
|
||||
• `Readonly` **partialResults**: [`CreateNodesResultV2`](/reference/core-api/devkit/documents/CreateNodesResultV2)
|
||||
|
||||
The partial results of the `createNodesV2` function. This should be the results for each file that didn't encounter an issue.
|
||||
|
||||
---
|
||||
|
||||
### pluginIndex
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
# Interface: PackageManagerCommands
|
||||
|
||||
## Table of contents
|
||||
|
||||
### Properties
|
||||
|
||||
- [add](/reference/core-api/devkit/documents/PackageManagerCommands#add): string
|
||||
- [addDev](/reference/core-api/devkit/documents/PackageManagerCommands#adddev): string
|
||||
- [ciInstall](/reference/core-api/devkit/documents/PackageManagerCommands#ciinstall): string
|
||||
- [dlx](/reference/core-api/devkit/documents/PackageManagerCommands#dlx): string
|
||||
- [exec](/reference/core-api/devkit/documents/PackageManagerCommands#exec): string
|
||||
- [getRegistryUrl](/reference/core-api/devkit/documents/PackageManagerCommands#getregistryurl): string
|
||||
- [install](/reference/core-api/devkit/documents/PackageManagerCommands#install): string
|
||||
- [list](/reference/core-api/devkit/documents/PackageManagerCommands#list): string
|
||||
- [preInstall](/reference/core-api/devkit/documents/PackageManagerCommands#preinstall): string
|
||||
- [publish](/reference/core-api/devkit/documents/PackageManagerCommands#publish): Function
|
||||
- [rm](/reference/core-api/devkit/documents/PackageManagerCommands#rm): string
|
||||
- [run](/reference/core-api/devkit/documents/PackageManagerCommands#run): Function
|
||||
- [updateLockFile](/reference/core-api/devkit/documents/PackageManagerCommands#updatelockfile): string
|
||||
|
||||
## Properties
|
||||
|
||||
### add
|
||||
|
||||
• **add**: `string`
|
||||
|
||||
---
|
||||
|
||||
### addDev
|
||||
|
||||
• **addDev**: `string`
|
||||
|
||||
---
|
||||
|
||||
### ciInstall
|
||||
|
||||
• **ciInstall**: `string`
|
||||
|
||||
---
|
||||
|
||||
### dlx
|
||||
|
||||
• **dlx**: `string`
|
||||
|
||||
---
|
||||
|
||||
### exec
|
||||
|
||||
• **exec**: `string`
|
||||
|
||||
---
|
||||
|
||||
### getRegistryUrl
|
||||
|
||||
• `Optional` **getRegistryUrl**: `string`
|
||||
|
||||
---
|
||||
|
||||
### install
|
||||
|
||||
• **install**: `string`
|
||||
|
||||
---
|
||||
|
||||
### list
|
||||
|
||||
• **list**: `string`
|
||||
|
||||
---
|
||||
|
||||
### preInstall
|
||||
|
||||
• `Optional` **preInstall**: `string`
|
||||
|
||||
---
|
||||
|
||||
### publish
|
||||
|
||||
• **publish**: (`packageRoot`: `string`, `registry`: `string`, `registryConfigKey`: `string`, `tag`: `string`) => `string`
|
||||
|
||||
#### Type declaration
|
||||
|
||||
▸ (`packageRoot`, `registry`, `registryConfigKey`, `tag`): `string`
|
||||
|
||||
##### Parameters
|
||||
|
||||
| Name | Type |
|
||||
| :------------------ | :------- |
|
||||
| `packageRoot` | `string` |
|
||||
| `registry` | `string` |
|
||||
| `registryConfigKey` | `string` |
|
||||
| `tag` | `string` |
|
||||
|
||||
##### Returns
|
||||
|
||||
`string`
|
||||
|
||||
---
|
||||
|
||||
### rm
|
||||
|
||||
• **rm**: `string`
|
||||
|
||||
---
|
||||
|
||||
### run
|
||||
|
||||
• **run**: (`script`: `string`, `args?`: `string`) => `string`
|
||||
|
||||
#### Type declaration
|
||||
|
||||
▸ (`script`, `args?`): `string`
|
||||
|
||||
##### Parameters
|
||||
|
||||
| Name | Type |
|
||||
| :------- | :------- |
|
||||
| `script` | `string` |
|
||||
| `args?` | `string` |
|
||||
|
||||
##### Returns
|
||||
|
||||
`string`
|
||||
|
||||
---
|
||||
|
||||
### updateLockFile
|
||||
|
||||
• **updateLockFile**: `string`
|
||||
@@ -8,7 +8,7 @@ A node describing a project in a workspace
|
||||
|
||||
- [data](/reference/core-api/devkit/documents/ProjectGraphProjectNode#data): ProjectConfiguration & Object
|
||||
- [name](/reference/core-api/devkit/documents/ProjectGraphProjectNode#name): string
|
||||
- [type](/reference/core-api/devkit/documents/ProjectGraphProjectNode#type): "lib" | "app" | "e2e"
|
||||
- [type](/reference/core-api/devkit/documents/ProjectGraphProjectNode#type): "app" | "e2e" | "lib"
|
||||
|
||||
## Properties
|
||||
|
||||
@@ -28,4 +28,4 @@ Additional metadata about a project
|
||||
|
||||
### type
|
||||
|
||||
• **type**: `"lib"` \| `"app"` \| `"e2e"`
|
||||
• **type**: `"app"` \| `"e2e"` \| `"lib"`
|
||||
|
||||
@@ -44,6 +44,7 @@ It only uses language primitives and immutable objects
|
||||
- [MigrationsJson](/reference/core-api/devkit/documents/MigrationsJson)
|
||||
- [NxAffectedConfig](/reference/core-api/devkit/documents/NxAffectedConfig)
|
||||
- [NxJsonConfiguration](/reference/core-api/devkit/documents/NxJsonConfiguration)
|
||||
- [PackageManagerCommands](/reference/core-api/devkit/documents/PackageManagerCommands)
|
||||
- [ProjectConfiguration](/reference/core-api/devkit/documents/ProjectConfiguration)
|
||||
- [ProjectFileMap](/reference/core-api/devkit/documents/ProjectFileMap)
|
||||
- [ProjectGraph](/reference/core-api/devkit/documents/ProjectGraph)
|
||||
|
||||
@@ -14,13 +14,13 @@ This will **add** `react` and `jest` to the dependencies and devDependencies sec
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| :---------------------- | :-------------------------------------------------- | :-------------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | Tree representing file system to modify |
|
||||
| `dependencies` | `Record`\<`string`, `string`\> | Dependencies to be added to the dependencies section of package.json |
|
||||
| `devDependencies` | `Record`\<`string`, `string`\> | Dependencies to be added to the devDependencies section of package.json |
|
||||
| `packageJsonPath?` | `string` | Path to package.json |
|
||||
| `keepExistingVersions?` | `boolean` | If true, prevents existing dependencies from being bumped to newer versions |
|
||||
| Name | Type | Default value | Description |
|
||||
| :---------------------- | :-------------------------------------------------- | :--------------- | :-------------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | `undefined` | Tree representing file system to modify |
|
||||
| `dependencies` | `Record`\<`string`, `string`\> | `undefined` | Dependencies to be added to the dependencies section of package.json |
|
||||
| `devDependencies` | `Record`\<`string`, `string`\> | `undefined` | Dependencies to be added to the devDependencies section of package.json |
|
||||
| `packageJsonPath` | `string` | `'package.json'` | Path to package.json |
|
||||
| `keepExistingVersions?` | `boolean` | `undefined` | If true, prevents existing dependencies from being bumped to newer versions |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -6,12 +6,12 @@ Adds project configuration to the Nx workspace.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| :--------------------- | :---------------------------------------------------------------------------------- | :------------ | :---------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | `undefined` | the file system tree |
|
||||
| `projectName` | `string` | `undefined` | unique name. Often directories are part of the name (e.g., mydir-mylib) |
|
||||
| `projectConfiguration` | [`ProjectConfiguration`](/reference/core-api/devkit/documents/ProjectConfiguration) | `undefined` | project configuration |
|
||||
| `standalone` | `boolean` | `true` | whether the project is configured in workspace.json or not |
|
||||
| Name | Type | Description |
|
||||
| :--------------------- | :---------------------------------------------------------------------------------- | :---------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | the file system tree |
|
||||
| `projectName` | `string` | unique name. Often directories are part of the name (e.g., mydir-mylib) |
|
||||
| `projectConfiguration` | [`ProjectConfiguration`](/reference/core-api/devkit/documents/ProjectConfiguration) | project configuration |
|
||||
| `standalone?` | `boolean` | whether the project is configured in workspace.json or not |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ Convert an Nx Generator into an Angular Devkit Schematic.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| :------------------------------ | :------------------------------------------------------------------- | :---------------------------------------------------------- |
|
||||
| `generator` | [`Generator`](/reference/core-api/devkit/documents/Generator)\<`T`\> | The Nx generator to convert to an Angular Devkit Schematic. |
|
||||
| `skipWritingConfigInOldFormat?` | `boolean` | - |
|
||||
| Name | Type | Default value | Description |
|
||||
| :----------------------------- | :------------------------------------------------------------------- | :------------ | :---------------------------------------------------------- |
|
||||
| `generator` | [`Generator`](/reference/core-api/devkit/documents/Generator)\<`T`\> | `undefined` | The Nx generator to convert to an Angular Devkit Schematic. |
|
||||
| `skipWritingConfigInOldFormat` | `boolean` | `false` | - |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ stored in the daemon process. To reset both run: `nx reset`.
|
||||
|
||||
| Name | Type |
|
||||
| :------------------------ | :-------- |
|
||||
| `opts` | `Object` |
|
||||
| `opts?` | `Object` |
|
||||
| `opts.exitOnError` | `boolean` |
|
||||
| `opts.resetDaemonClient?` | `boolean` |
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ Detects which package manager is used in the workspace based on the lock file.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Default value |
|
||||
| :---- | :------- | :------------ |
|
||||
| `dir` | `string` | `''` |
|
||||
| Name | Type |
|
||||
| :----- | :------- |
|
||||
| `dir?` | `string` |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@ Formats all the created or updated files using Prettier
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| :------------------------------ | :-------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | the file system tree |
|
||||
| `options?` | `Object` | - |
|
||||
| `options.sortRootTsconfigPaths` | `boolean` | TODO(v21): Stop sorting tsconfig paths by default, paths are now less common/important in Nx workspace setups, and the sorting causes comments to be lost. |
|
||||
| Name | Type | Default value | Description |
|
||||
| :------------------------------ | :-------------------------------------------------- | :------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | `undefined` | the file system tree |
|
||||
| `options` | `Object` | `undefined` | - |
|
||||
| `options.sortRootTsconfigPaths` | `boolean` | `true` | TODO(v21): Stop sorting tsconfig paths by default, paths are now less common/important in Nx workspace setups, and the sorting causes comments to be lost. |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ doesn't get confused about incorrect TypeScript files.
|
||||
| `srcFolder` | `string` | the source folder of files (absolute path) |
|
||||
| `target` | `string` | the target folder (relative to the tree root) |
|
||||
| `substitutions` | `Object` | an object of key-value pairs |
|
||||
| `options?` | `GenerateFilesOptions` | See GenerateFilesOptions |
|
||||
| `options` | `GenerateFilesOptions` | See GenerateFilesOptions |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -19,8 +19,6 @@ Pass the target and overrides instead. This will be removed in v20.
|
||||
|
||||
▸ **getOutputsForTargetAndConfiguration**(`target`, `overrides`, `node`): `string`[]
|
||||
|
||||
Returns the list of outputs that will be cached.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Function: getPackageManagerCommand
|
||||
|
||||
▸ **getPackageManagerCommand**(`packageManager?`, `root?`): `PackageManagerCommands`
|
||||
▸ **getPackageManagerCommand**(`packageManager?`, `root?`): [`PackageManagerCommands`](/reference/core-api/devkit/documents/PackageManagerCommands)
|
||||
|
||||
Returns commands for the package manager used in the workspace.
|
||||
By default, the package manager is derived based on the lock file,
|
||||
@@ -14,11 +14,11 @@ execSync(`${getPackageManagerCommand().addDev} my-dev-package`);
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| :--------------- | :---------------------------------------------------------------------- | :-------------- | :------------------------------------------------------------------------------------------ |
|
||||
| `packageManager` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) | `undefined` | The package manager to use. If not provided, it will be detected based on the lock file. |
|
||||
| `root` | `string` | `workspaceRoot` | The directory the commands will be ran inside of. Defaults to the current workspace's root. |
|
||||
| Name | Type | Description |
|
||||
| :---------------- | :---------------------------------------------------------------------- | :------------------------------------------------------------------------------------------ |
|
||||
| `packageManager?` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) | The package manager to use. If not provided, it will be detected based on the lock file. |
|
||||
| `root?` | `string` | The directory the commands will be ran inside of. Defaults to the current workspace's root. |
|
||||
|
||||
#### Returns
|
||||
|
||||
`PackageManagerCommands`
|
||||
[`PackageManagerCommands`](/reference/core-api/devkit/documents/PackageManagerCommands)
|
||||
|
||||
@@ -8,10 +8,10 @@ but it can also be passed in explicitly.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type |
|
||||
| :--------------- | :---------------------------------------------------------------------- |
|
||||
| `packageManager` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) |
|
||||
| `cwd` | `string` |
|
||||
| Name | Type |
|
||||
| :---------------- | :---------------------------------------------------------------------- |
|
||||
| `packageManager?` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) |
|
||||
| `cwd?` | `string` |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@ Runs `npm install` or `yarn install`. It will skip running the install if
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| :---------------- | :---------------------------------------------------------------------- | :------------------------------------------------------------ |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | the file system tree |
|
||||
| `alwaysRun?` | `boolean` | always run the command even if `package.json` hasn't changed. |
|
||||
| `cwd?` | `string` | - |
|
||||
| `packageManager?` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) | - |
|
||||
| Name | Type | Default value | Description |
|
||||
| :--------------- | :---------------------------------------------------------------------- | :------------ | :------------------------------------------------------------ |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | `undefined` | the file system tree |
|
||||
| `alwaysRun` | `boolean` | `false` | always run the command even if `package.json` hasn't changed. |
|
||||
| `cwd` | `string` | `''` | - |
|
||||
| `packageManager` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) | `undefined` | - |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ Returns true if the workspace is using npm workspaces, yarn workspaces, or pnpm
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| :--------------- | :---------------------------------------------------------------------- | :-------------- | :------------------------------------------------------------------------------------------ |
|
||||
| `packageManager` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) | `undefined` | The package manager to use. If not provided, it will be detected based on the lock file. |
|
||||
| `root` | `string` | `workspaceRoot` | The directory the commands will be ran inside of. Defaults to the current workspace's root. |
|
||||
| Name | Type | Description |
|
||||
| :---------------- | :---------------------------------------------------------------------- | :------------------------------------------------------------------------------------------ |
|
||||
| `packageManager?` | [`PackageManager`](/reference/core-api/devkit/documents/PackageManager) | The package manager to use. If not provided, it will be detected based on the lock file. |
|
||||
| `root?` | `string` | The directory the commands will be ran inside of. Defaults to the current workspace's root. |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
- [\_delegate](/reference/core-api/devkit/documents/ngcli_adapter/NxScopedHost#_delegate): Host<any>
|
||||
- [\_root](/reference/core-api/devkit/documents/ngcli_adapter/NxScopedHost#_root): Path
|
||||
- [root](/reference/core-api/devkit/documents/ngcli_adapter/NxScopedHost#root): string
|
||||
- [root](/reference/core-api/devkit/documents/ngcli_adapter/NxScopedHost#root): any
|
||||
|
||||
### Accessors
|
||||
|
||||
@@ -84,7 +84,7 @@ virtualFs.ScopedHost.\_root
|
||||
|
||||
### root
|
||||
|
||||
• `Private` **root**: `string`
|
||||
• `Private` **root**: `any`
|
||||
|
||||
## Accessors
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ This will **remove** `react` and `jest` from the dependencies and devDependencie
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| :----------------- | :-------------------------------------------------- | :-------------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | - |
|
||||
| `dependencies` | `string`[] | Dependencies to be removed from the dependencies section of package.json |
|
||||
| `devDependencies` | `string`[] | Dependencies to be removed from the devDependencies section of package.json |
|
||||
| `packageJsonPath?` | `string` | - |
|
||||
| Name | Type | Default value | Description |
|
||||
| :---------------- | :-------------------------------------------------- | :--------------- | :-------------------------------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | `undefined` | - |
|
||||
| `dependencies` | `string`[] | `undefined` | Dependencies to be removed from the dependencies section of package.json |
|
||||
| `devDependencies` | `string`[] | `undefined` | Dependencies to be removed from the devDependencies section of package.json |
|
||||
| `packageJsonPath` | `string` | `'package.json'` | - |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# Function: visitNotIgnoredFiles
|
||||
|
||||
▸ **visitNotIgnoredFiles**(`tree`, `dirPath`, `visitor`): `void`
|
||||
▸ **visitNotIgnoredFiles**(`tree`, `dirPath?`, `visitor`): `void`
|
||||
|
||||
Utility to act on all files in a tree that are not ignored by git.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type |
|
||||
| :-------- | :-------------------------------------------------- |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) |
|
||||
| `dirPath` | `string` |
|
||||
| `visitor` | (`path`: `string`) => `void` |
|
||||
| Name | Type | Default value |
|
||||
| :-------- | :-------------------------------------------------- | :------------ |
|
||||
| `tree` | [`Tree`](/reference/core-api/devkit/documents/Tree) | `undefined` |
|
||||
| `dirPath` | `string` | `tree.root` |
|
||||
| `visitor` | (`path`: `string`) => `void` | `undefined` |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ It only uses language primitives and immutable objects
|
||||
- [MigrationsJson](/reference/core-api/devkit/documents/MigrationsJson)
|
||||
- [NxAffectedConfig](/reference/core-api/devkit/documents/NxAffectedConfig)
|
||||
- [NxJsonConfiguration](/reference/core-api/devkit/documents/NxJsonConfiguration)
|
||||
- [PackageManagerCommands](/reference/core-api/devkit/documents/PackageManagerCommands)
|
||||
- [ProjectConfiguration](/reference/core-api/devkit/documents/ProjectConfiguration)
|
||||
- [ProjectFileMap](/reference/core-api/devkit/documents/ProjectFileMap)
|
||||
- [ProjectGraph](/reference/core-api/devkit/documents/ProjectGraph)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "@nx/e2e-angular",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"nx": "workspace:*",
|
||||
"@nx/devkit": "workspace:*",
|
||||
"@nx/e2e-utils": "workspace:*",
|
||||
"@nx/workspace": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
runCLI,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('angular.json v1 config', () => {
|
||||
const app1 = uniq('app1');
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
removeFile,
|
||||
checkFilesExist,
|
||||
updateJson,
|
||||
} from '../../utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { names } from '@nx/devkit';
|
||||
import { join } from 'path';
|
||||
|
||||
|
||||
@@ -6,9 +6,8 @@ import {
|
||||
runCLI,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { classify } from '@nx/devkit/src/utils/string-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('Move Angular Project', () => {
|
||||
let proj: string;
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('Angular Module Federation', () => {
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('Angular Module Federation', () => {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
runNgNew,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { PackageManager } from 'nx/src/utils/package-manager';
|
||||
|
||||
describe('convert Angular CLI workspace to an Nx workspace', () => {
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
runCLI,
|
||||
runCLIAsync,
|
||||
uniq,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Angular Package', () => {
|
||||
describe('ngrx', () => {
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { angularCliVersion } from '@nx/workspace/src/utils/versions';
|
||||
import { ensureDirSync } from 'fs-extra';
|
||||
import { execSync } from 'node:child_process';
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join, normalize } from 'path';
|
||||
|
||||
describe('Angular Projects', () => {
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('Tailwind support', () => {
|
||||
|
||||
@@ -6,6 +6,18 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../../packages/workspace"
|
||||
},
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/devkit"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/nx"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-cypress",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
runCLI,
|
||||
runE2ETests,
|
||||
uniq,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
const TEN_MINS_MS = 600_000;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
runE2ETests,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
const TEN_MINS_MS = 600_000;
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-detox",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
uniq,
|
||||
killPorts,
|
||||
cleanupProject,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('@nx/detox (legacy)', () => {
|
||||
const appName = uniq('myapp');
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
uniq,
|
||||
readJson,
|
||||
updateJson,
|
||||
} from 'e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('@nx/detox', () => {
|
||||
let project: string;
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-esbuild",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('EsBuild Plugin', () => {
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-eslint",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
runCreateWorkspace,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Linter (legacy)', () => {
|
||||
describe('Integrated (eslintrc config)', () => {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import * as ts from 'typescript';
|
||||
|
||||
describe('Linter', () => {
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-expo",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { ChildProcess } from 'child_process';
|
||||
import { join } from 'path';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
killPorts,
|
||||
createFile,
|
||||
removeFile,
|
||||
} from 'e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('@nx/expo', () => {
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-gradle",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
readJson,
|
||||
runCommand,
|
||||
createFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { mkdirSync, rmdirSync, writeFileSync } from 'fs';
|
||||
import { execSync } from 'node:child_process';
|
||||
import { join } from 'path';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { basename, dirname, join } from 'path';
|
||||
|
||||
import { createGradleProject } from './utils/create-gradle-project';
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
import { createGradleProject } from './utils/create-gradle-project';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
isWindows,
|
||||
runCommand,
|
||||
tmpProjPath,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { execSync } from 'child_process';
|
||||
import { readFileSync } from 'fs';
|
||||
import { createFileSync, writeFileSync } from 'fs-extra';
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
@@ -14,6 +14,7 @@
|
||||
"**/*.test.js",
|
||||
"**/*.spec.jsx",
|
||||
"**/*.test.jsx",
|
||||
"src/**/*.ts",
|
||||
"**/*.d.ts",
|
||||
"jest.config.ts"
|
||||
]
|
||||
|
||||
@@ -2,5 +2,8 @@ const preset = require('../jest.preset');
|
||||
|
||||
// The root preset sets up the environment for unit tests.
|
||||
delete preset.setupFiles;
|
||||
delete preset.moduleNameMapper;
|
||||
|
||||
module.exports = preset;
|
||||
module.exports = {
|
||||
...preset,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-jest",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
updateFile,
|
||||
expectJestTestsToPass,
|
||||
cleanupProject,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Jest', () => {
|
||||
beforeAll(() => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { newProject, runCLI, runCLIAsync, uniq } from '@nx/e2e/utils';
|
||||
import { newProject, runCLI, runCLIAsync, uniq } from '@nx/e2e-utils';
|
||||
|
||||
describe('Jest root projects', () => {
|
||||
const myapp = uniq('myapp');
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Jest', () => {
|
||||
beforeAll(() => {
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-js",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -2,14 +2,12 @@ import {
|
||||
checkFilesExist,
|
||||
cleanupProject,
|
||||
newProject,
|
||||
readFile,
|
||||
readJson,
|
||||
runCLI,
|
||||
uniq,
|
||||
updateJson,
|
||||
updateFile,
|
||||
runCommand,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('@nx/js:copy-workspace-modules', () => {
|
||||
let scope: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('js:node executor', () => {
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
updateJson,
|
||||
runCommand,
|
||||
tmpProjPath,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('js:prune-lockfile executor', () => {
|
||||
describe.each([
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '../../utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('js:swc executor', () => {
|
||||
let scope: string;
|
||||
|
||||
@@ -19,11 +19,11 @@ import {
|
||||
updateFile,
|
||||
updateJson,
|
||||
waitUntil,
|
||||
} from '../../utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('js:tsc executor', () => {
|
||||
let scope;
|
||||
beforeAll(() => (scope = newProject()));
|
||||
beforeAll(() => (scope = newProject({ packages: ['@nx/js'] })));
|
||||
afterAll(() => cleanupProject());
|
||||
|
||||
it('should create libs with js executors (--compiler=tsc)', async () => {
|
||||
@@ -288,4 +288,4 @@ export function ${lib}Wildcard() {
|
||||
`;
|
||||
});
|
||||
}, 240_000);
|
||||
});
|
||||
});
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '../../utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('js e2e', () => {
|
||||
let scope: string;
|
||||
@@ -57,8 +57,9 @@ describe('js e2e', () => {
|
||||
// Lint
|
||||
const result = runCLI(`lint ${dirName}-${libName}`);
|
||||
|
||||
expect(result).toContain(`Linting "${dirName}-${libName}"...`);
|
||||
expect(result).toContain('All files pass linting');
|
||||
expect(result).toContain(
|
||||
`Successfully ran target lint for project ${dirName}-${libName}`
|
||||
);
|
||||
|
||||
// Test
|
||||
const testResult = await runCLIAsync(`test ${dirName}-${libName}`);
|
||||
@@ -122,7 +123,10 @@ describe('js e2e', () => {
|
||||
updateJson('nx.json', (json) => {
|
||||
json.targetDefaults.build = {
|
||||
...json.targetDefaults.build,
|
||||
dependsOn: [...json.targetDefaults.build.dependsOn, '^my-custom-build'],
|
||||
dependsOn: [
|
||||
...(json.targetDefaults.build?.dependsOn || []),
|
||||
'^my-custom-build',
|
||||
],
|
||||
};
|
||||
return json;
|
||||
});
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
runCLI,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { execSync } from 'child_process';
|
||||
|
||||
describe('inlining', () => {
|
||||
|
||||
@@ -10,8 +10,7 @@ import {
|
||||
getPackageManagerCommand,
|
||||
readJson,
|
||||
updateFile,
|
||||
renameFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('packaging libs', () => {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('JS - TS solution setup', () => {
|
||||
beforeAll(() => {
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-lerna-smoke-tests",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
runLernaCLI,
|
||||
tmpProjPath,
|
||||
updateJson,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
expect.addSnapshotSerializer({
|
||||
serialize(str: string) {
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"include": [],
|
||||
"files": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "../utils"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node"]
|
||||
"types": ["jest", "node"],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.test.ts",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@nx/e2e-next",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@nx/e2e-utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
runE2ETests,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Next.js App Router', () => {
|
||||
let proj: string;
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
runE2ETests,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('NextJs Component Testing', () => {
|
||||
beforeAll(() => {
|
||||
|
||||
@@ -4,9 +4,7 @@ import {
|
||||
newProject,
|
||||
runCLI,
|
||||
uniq,
|
||||
updateFile,
|
||||
readFile,
|
||||
} from 'e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Next.js Jest Configuration', () => {
|
||||
let proj: string;
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
uniq,
|
||||
updateFile,
|
||||
updateJson,
|
||||
} from 'e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { mkdirSync, removeSync } from 'fs-extra';
|
||||
import { join } from 'path';
|
||||
import { checkApp } from './utils';
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
runCLI,
|
||||
runCreateWorkspace,
|
||||
uniq,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
// This test exists as coverage for a previous regression
|
||||
describe('nextjs standalone playwright linting', () => {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
newProject,
|
||||
uniq,
|
||||
updateFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Next Playwright e2e tests', () => {
|
||||
let projectName;
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
newProject,
|
||||
runCLI,
|
||||
uniq,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
|
||||
describe('Next.js Storybook', () => {
|
||||
const appName = uniq('app');
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
runCLI,
|
||||
uniq,
|
||||
readFile,
|
||||
} from '@nx/e2e/utils';
|
||||
} from '@nx/e2e-utils';
|
||||
import { checkApp } from './utils';
|
||||
|
||||
describe('Next.js Styles', () => {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user