@nx-dotnet/core
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -0,1 +1,7 @@ | ||
# [1.1.0](https://github.com/nx-dotnet/nx-dotnet/compare/v1.0.2...v1.1.0) (2021-08-10) | ||
### Features | ||
- **core:** added support for test project name suffix ([#78](https://github.com/nx-dotnet/nx-dotnet/issues/78)) ([9f8f03c](https://github.com/nx-dotnet/nx-dotnet/commit/9f8f03cfb36c1a9becaafc602531baec9f51e0f0)), closes [#77](https://github.com/nx-dotnet/nx-dotnet/issues/77) | ||
## [1.0.2](https://github.com/nx-dotnet/nx-dotnet/compare/v1.0.1...v1.0.2) (2021-08-04) | ||
@@ -2,0 +8,0 @@ |
@@ -8,4 +8,4 @@ { | ||
"dependencies": { | ||
"@nx-dotnet/dotnet": "1.0.2", | ||
"@nx-dotnet/utils": "1.0.2", | ||
"@nx-dotnet/dotnet": "1.1.0", | ||
"@nx-dotnet/utils": "1.1.0", | ||
"glob": "^7.1.6", | ||
@@ -23,3 +23,3 @@ "rimraf": "^3.0.2", | ||
"license": "MIT", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"keywords": [ | ||
@@ -26,0 +26,0 @@ "Nx", |
@@ -15,3 +15,3 @@ "use strict"; | ||
console.log(project); | ||
const projectGeneratorOptions = Object.assign(Object.assign({}, options), { name, language: options.language, skipOutputPathManipulation: options.skipOutputPathManipulation, testTemplate: options.testTemplate, directory, tags: (_a = project.tags) === null || _a === void 0 ? void 0 : _a.join(','), template: '', standalone: options.standalone, projectType: (_b = project.projectType) !== null && _b !== void 0 ? _b : 'library' }); | ||
const projectGeneratorOptions = Object.assign(Object.assign({}, options), { testProjectNameSuffix: options.suffix, name, language: options.language, skipOutputPathManipulation: options.skipOutputPathManipulation, testTemplate: options.testTemplate, directory, tags: (_a = project.tags) === null || _a === void 0 ? void 0 : _a.join(','), template: '', standalone: options.standalone, projectType: (_b = project.projectType) !== null && _b !== void 0 ? _b : 'library' }); | ||
const normalizedOptions = generate_project_1.normalizeOptions(host, projectGeneratorOptions); | ||
@@ -18,0 +18,0 @@ return generate_test_project_1.GenerateTestProject(host, normalizedOptions, dotnetClient); |
@@ -43,2 +43,11 @@ { | ||
}, | ||
"suffix": { | ||
"type": "string", | ||
"description": "What suffix should be used for the tests project name?", | ||
"default": "test", | ||
"x-prompt": { | ||
"message": "What suffix should be used for the tests project name?", | ||
"type": "string" | ||
} | ||
}, | ||
"skipOutputPathManipulation": { | ||
@@ -45,0 +54,0 @@ "type": "boolean", |
@@ -14,4 +14,5 @@ "use strict"; | ||
} | ||
const testRoot = schema.projectRoot + '-test'; | ||
const testProjectName = schema.projectName + '-test'; | ||
const suffix = schema.testProjectNameSuffix || 'test'; | ||
const testRoot = schema.projectRoot + '-' + suffix; | ||
const testProjectName = schema.projectName + '-' + suffix; | ||
devkit_1.addProjectConfiguration(host, testProjectName, { | ||
@@ -35,7 +36,7 @@ root: testRoot, | ||
flag: 'name', | ||
value: schema.namespaceName + '.Test', | ||
value: schema.namespaceName + '.' + devkit_1.names(suffix).className, | ||
}, | ||
{ | ||
flag: 'output', | ||
value: schema.projectRoot + '-test', | ||
value: schema.projectRoot + '-' + suffix, | ||
}, | ||
@@ -42,0 +43,0 @@ ]; |
@@ -12,2 +12,3 @@ import { ProjectType } from '@nrwl/devkit'; | ||
testTemplate: 'nunit' | 'mstest' | 'xunit' | 'none'; | ||
testProjectNameSuffix?: string; | ||
skipOutputPathManipulation: boolean; | ||
@@ -14,0 +15,0 @@ standalone: boolean; |
@@ -5,4 +5,5 @@ export interface NxDotnetTestGeneratorSchema { | ||
language: string; | ||
suffix?: string; | ||
skipOutputPathManipulation: boolean; | ||
standalone: boolean; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126154
1839
+ Added@nx-dotnet/dotnet@1.1.0(transitive)
+ Added@nx-dotnet/utils@1.1.0(transitive)
- Removed@nx-dotnet/dotnet@1.0.2(transitive)
- Removed@nx-dotnet/utils@1.0.2(transitive)
Updated@nx-dotnet/dotnet@1.1.0
Updated@nx-dotnet/utils@1.1.0