UNPKG

@nx-dotnet/core

Version:

- Have an existing nx workspace. For creating this, see [nrwl's documentation](https://nx.dev/latest/angular/getting-started/nx-setup). - .NET SDK is installed, and `dotnet` is available on the path. For help on this, see [Microsoft's documentation](https

21 lines 736 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = default_1; const devkit_1 = require("@nx/devkit"); const dotnet_1 = require("@nx-dotnet/dotnet"); const generator_1 = require("../app/generator"); async function default_1(tree) { tree.write('apps/.gitkeep', ''); tree.write('libs/.gitkeep', ''); await (0, generator_1.default)(tree, { language: 'C#', template: 'webapi', name: 'api', testTemplate: 'xunit', pathScheme: 'nx', skipSwaggerLib: false, useOpenApiGenerator: true, }, new dotnet_1.DotNetClient((0, dotnet_1.dotnetFactory)())); await (0, devkit_1.formatFiles)(tree); } //# sourceMappingURL=generator.js.map