chore(repo): fix issues building nx-dev

This commit is contained in:
Jason Jean 2022-11-18 19:03:50 -05:00
parent 33154c344f
commit 55c20b81c0
6 changed files with 543 additions and 521 deletions

View File

@ -15,7 +15,6 @@ packages/jest/src/schematics/**/files/**/*.json
packages/**/schematics/**/files/**/*.html packages/**/schematics/**/files/**/*.html
packages/**/generators/**/files/**/*.html packages/**/generators/**/files/**/*.html
nx-dev/nx-dev/.next/ nx-dev/nx-dev/.next/
docs/generated/
/.vscode /.vscode
/.idea /.idea
/.github /.github

File diff suppressed because it is too large Load Diff

View File

@ -35,25 +35,24 @@ In this case, you can mock it up.
Example: Example:
```typescript ```typescript
mockSchematicsForTesting({ mockSchematicsForTesting({
'mycollection:myschematic': (tree, params) => { 'mycollection:myschematic': (tree, params) => {
tree.write('README.md'); tree.write('README.md');
} },
}); });
``` ```
#### Parameters #### Parameters
| Name | Type | | Name | Type |
| :------ | :------ | | :----------- | :------- |
| `schematics` | `Object` | | `schematics` | `Object` |
#### Returns #### Returns
`void` `void`
___ ---
### overrideCollectionResolutionForTesting ### overrideCollectionResolutionForTesting
@ -68,25 +67,27 @@ This function can can be used to override the resolution behaviour.
Example: Example:
```typescript ```typescript
overrideCollectionResolutionForTesting({ overrideCollectionResolutionForTesting({
'@nrwl/workspace': path.join(__dirname, '../../../../workspace/generators.json'), '@nrwl/workspace': path.join(
__dirname,
'../../../../workspace/generators.json'
),
'@nrwl/angular': path.join(__dirname, '../../../../angular/generators.json'), '@nrwl/angular': path.join(__dirname, '../../../../angular/generators.json'),
'@nrwl/linter': path.join(__dirname, '../../../../linter/generators.json') '@nrwl/linter': path.join(__dirname, '../../../../linter/generators.json'),
}); });
``` ```
#### Parameters #### Parameters
| Name | Type | | Name | Type |
| :------ | :------ | | :------------ | :------- |
| `collections` | `Object` | | `collections` | `Object` |
#### Returns #### Returns
`void` `void`
___ ---
### wrapAngularDevkitSchematic ### wrapAngularDevkitSchematic
@ -95,7 +96,7 @@ ___
#### Parameters #### Parameters
| Name | Type | | Name | Type |
| :------ | :------ | | :--------------- | :------- |
| `collectionName` | `string` | | `collectionName` | `string` |
| `generatorName` | `string` | | `generatorName` | `string` |
@ -108,7 +109,7 @@ ___
##### Parameters ##### Parameters
| Name | Type | | Name | Type |
| :------ | :------ | | :----------------- | :-------------------------------- |
| `host` | [`Tree`](../../devkit/index#tree) | | `host` | [`Tree`](../../devkit/index#tree) |
| `generatorOptions` | `Object` | | `generatorOptions` | `Object` |

File diff suppressed because one or more lines are too long

View File

@ -24,6 +24,10 @@
} }
} }
}, },
"workspaceLayout": {
"libsDir": "",
"appsDir": ""
},
"namedInputs": { "namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"], "default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [ "production": [

View File

@ -311,6 +311,7 @@
"nx": { "nx": {
"includedScripts": [ "includedScripts": [
"echo", "echo",
"check-commit",
"check-format", "check-format",
"check-imports", "check-imports",
"check-lock-files", "check-lock-files",