chore(repo): fix issues building nx-dev
This commit is contained in:
parent
33154c344f
commit
55c20b81c0
@ -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
@ -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,36 +67,38 @@ 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(
|
||||||
'@nrwl/angular': path.join(__dirname, '../../../../angular/generators.json'),
|
__dirname,
|
||||||
'@nrwl/linter': path.join(__dirname, '../../../../linter/generators.json')
|
'../../../../workspace/generators.json'
|
||||||
});
|
),
|
||||||
|
'@nrwl/angular': path.join(__dirname, '../../../../angular/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
|
||||||
|
|
||||||
▸ **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
|
#### Parameters
|
||||||
|
|
||||||
| Name | Type |
|
| Name | Type |
|
||||||
| :------ | :------ |
|
| :--------------- | :------- |
|
||||||
| `collectionName` | `string` |
|
| `collectionName` | `string` |
|
||||||
| `generatorName` | `string` |
|
| `generatorName` | `string` |
|
||||||
|
|
||||||
#### Returns
|
#### Returns
|
||||||
|
|
||||||
@ -107,10 +108,10 @@ ___
|
|||||||
|
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
| Name | Type |
|
| Name | Type |
|
||||||
| :------ | :------ |
|
| :----------------- | :-------------------------------- |
|
||||||
| `host` | [`Tree`](../../devkit/index#tree) |
|
| `host` | [`Tree`](../../devkit/index#tree) |
|
||||||
| `generatorOptions` | `Object` |
|
| `generatorOptions` | `Object` |
|
||||||
|
|
||||||
##### Returns
|
##### Returns
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
4
nx.json
4
nx.json
@ -24,6 +24,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"workspaceLayout": {
|
||||||
|
"libsDir": "",
|
||||||
|
"appsDir": ""
|
||||||
|
},
|
||||||
"namedInputs": {
|
"namedInputs": {
|
||||||
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
||||||
"production": [
|
"production": [
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user