@nx-dotnet/core
Advanced tools
Comparing version 0.0.6-dev.62 to 0.0.6-dev.63
@@ -24,5 +24,7 @@ { | ||
"schema": "./src/generators/init/schema.json", | ||
"description": "init generator" | ||
"description": "init generator", | ||
"alias": ["ng-add"], | ||
"hidden": true | ||
} | ||
} | ||
} |
{ | ||
"name": "@nx-dotnet/core", | ||
"version": "0.0.6-dev.62", | ||
"version": "0.0.6-dev.63", | ||
"main": "src/index.js", | ||
@@ -9,6 +9,6 @@ "generators": "./generators.json", | ||
"dependencies": { | ||
"@nx-dotnet/dotnet": "0.0.6-dev.62", | ||
"@nx-dotnet/utils": "0.0.6-dev.62", | ||
"@nx-dotnet/dotnet": "0.0.6-dev.63", | ||
"@nx-dotnet/utils": "0.0.6-dev.63", | ||
"chokidar": "^3.5.1" | ||
} | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
const utils_1 = require("@nx-dotnet/utils"); | ||
const generator_1 = require("../init/generator"); | ||
function normalizeOptions(host, options) { | ||
@@ -26,2 +27,3 @@ const name = devkit_1.names(options.name).fileName; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
generator_1.default(host); | ||
const normalizedOptions = normalizeOptions(host, options); | ||
@@ -28,0 +30,0 @@ devkit_1.addProjectConfiguration(host, normalizedOptions.projectName, { |
import { Tree } from '@nrwl/devkit'; | ||
import { InitGeneratorSchema } from './schema'; | ||
export default function (host: Tree, options: InitGeneratorSchema): Promise<void>; | ||
export default function (host: Tree): Promise<void>; |
@@ -5,4 +5,13 @@ "use strict"; | ||
const devkit_1 = require("@nrwl/devkit"); | ||
function default_1(host, options) { | ||
function default_1(host) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const initialized = host.isFile('nx-dotnet.config.ts'); | ||
if (initialized) { | ||
return; | ||
} | ||
host.write('nx-dotnet.config.js', ` | ||
module.exports = { | ||
} | ||
`); | ||
updateGitIgnore(host); | ||
@@ -16,2 +25,3 @@ yield devkit_1.formatFiles(host); | ||
console.warn('Not updating gitignore because it is not present!'); | ||
return; | ||
} | ||
@@ -18,0 +28,0 @@ let lines = host.read('.gitignore').toString(); |
@@ -7,2 +7,3 @@ "use strict"; | ||
const utils_1 = require("@nx-dotnet/utils"); | ||
const generator_1 = require("../init/generator"); | ||
function normalizeOptions(host, options) { | ||
@@ -26,2 +27,3 @@ const name = devkit_1.names(options.name).fileName; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
generator_1.default(host); | ||
const normalizedOptions = normalizeOptions(host, options); | ||
@@ -28,0 +30,0 @@ devkit_1.addProjectConfiguration(host, normalizedOptions.projectName, { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41256
865
+ Added@nx-dotnet/dotnet@0.0.6-dev.63(transitive)
+ Added@nx-dotnet/utils@0.0.6-dev.63(transitive)
- Removed@nx-dotnet/dotnet@0.0.6-dev.62(transitive)
- Removed@nx-dotnet/utils@0.0.6-dev.62(transitive)