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/**/generators/**/files/**/*.html
nx-dev/nx-dev/.next/
docs/generated/
/.vscode
/.idea
/.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:
```typescript
mockSchematicsForTesting({
'mycollection:myschematic': (tree, params) => {
tree.write('README.md');
}
});
mockSchematicsForTesting({
'mycollection:myschematic': (tree, params) => {
tree.write('README.md');
},
});
```
#### Parameters
| Name | Type |
| :------ | :------ |
| Name | Type |
| :----------- | :------- |
| `schematics` | `Object` |
#### Returns
`void`
___
---
### overrideCollectionResolutionForTesting
@ -68,36 +67,38 @@ This function can can be used to override the resolution behaviour.
Example:
```typescript
overrideCollectionResolutionForTesting({
'@nrwl/workspace': path.join(__dirname, '../../../../workspace/generators.json'),
'@nrwl/angular': path.join(__dirname, '../../../../angular/generators.json'),
'@nrwl/linter': path.join(__dirname, '../../../../linter/generators.json')
});
overrideCollectionResolutionForTesting({
'@nrwl/workspace': path.join(
__dirname,
'../../../../workspace/generators.json'
),
'@nrwl/angular': path.join(__dirname, '../../../../angular/generators.json'),
'@nrwl/linter': path.join(__dirname, '../../../../linter/generators.json'),
});
```
#### Parameters
| Name | Type |
| :------ | :------ |
| Name | Type |
| :------------ | :------- |
| `collections` | `Object` |
#### Returns
`void`
___
---
### wrapAngularDevkitSchematic
**wrapAngularDevkitSchematic**(`collectionName`, `generatorName`): (`host`: [`Tree`](../../devkit/index#tree), `generatorOptions`: { [k: string]: `any`; }) => `Promise`<`any`\>
**wrapAngularDevkitSchematic**(`collectionName`, `generatorName`): (`host`: [`Tree`](../../devkit/index#tree), `generatorOptions`: { [k: string]: `any`; }) => `Promise`<`any`\>
#### Parameters
| Name | Type |
| :------ | :------ |
| Name | Type |
| :--------------- | :------- |
| `collectionName` | `string` |
| `generatorName` | `string` |
| `generatorName` | `string` |
#### Returns
@ -107,10 +108,10 @@ ___
##### Parameters
| Name | Type |
| :------ | :------ |
| `host` | [`Tree`](../../devkit/index#tree) |
| `generatorOptions` | `Object` |
| Name | Type |
| :----------------- | :-------------------------------- |
| `host` | [`Tree`](../../devkit/index#tree) |
| `generatorOptions` | `Object` |
##### Returns

File diff suppressed because one or more lines are too long

View File

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

View File

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