@angular-architects/ddd
Advanced tools
Comparing version 2.0.0-rc.1 to 2.0.0-rc.2
@@ -32,2 +32,7 @@ { | ||
}, | ||
"api": { | ||
"factory": "./src/generators/api/index", | ||
"schema": "./src/generators/api/schema.json", | ||
"description": "adds a API library to a domain or as a shared library" | ||
}, | ||
"util": { | ||
@@ -34,0 +39,0 @@ "factory": "./src/generators/util/index", |
{ | ||
"name": "@angular-architects/ddd", | ||
"version": "2.0.0-rc.1", | ||
"version": "2.0.0-rc.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Manfred Steyer", |
@@ -36,5 +36,7 @@ "use strict"; | ||
const libLibFolder = `${libFolderPath}/domain/src/lib`; | ||
if (options.ngrx && !options.addApp) { | ||
throw new Error(`The 'ngrx' option may only be used when the 'addApp' option is used.`); | ||
} | ||
// if (options.ngrx && !options.addApp) { | ||
// throw new Error( | ||
// `The 'ngrx' option may only be used when the 'addApp' option is used.` | ||
// ); | ||
// } | ||
yield (0, generators_1.libraryGenerator)(tree, { | ||
@@ -83,7 +85,7 @@ name: 'domain', | ||
addNgrxDependencies(tree); | ||
yield (0, devkit_1.formatFiles)(tree); | ||
return () => { | ||
(0, devkit_1.installPackagesTask)(tree); | ||
}; | ||
} | ||
yield (0, devkit_1.formatFiles)(tree); | ||
return () => { | ||
(0, devkit_1.installPackagesTask)(tree); | ||
}; | ||
}); | ||
@@ -90,0 +92,0 @@ } |
@@ -76,3 +76,3 @@ "use strict"; | ||
const requiredAppModulePath = `apps/${appDirectoryAndName}/src/app/app.module.ts`; | ||
if (!tree.exists(requiredAppModulePath)) { | ||
if (!options.noApp && !tree.exists(requiredAppModulePath)) { | ||
throw new Error(`Specified app ${options.app} does not exist: ${requiredAppModulePath} expected!`); | ||
@@ -100,3 +100,3 @@ } | ||
}); | ||
if (!options.lazy && tree.exists(appModulePath)) { | ||
if (!options.noApp && !options.lazy && tree.exists(appModulePath)) { | ||
(0, addToNgModule_1.addImportToNgModule)(tree, { | ||
@@ -103,0 +103,0 @@ filePath: appModulePath, |
@@ -28,2 +28,6 @@ /** | ||
/** | ||
* Don't connect this feature lib to an app | ||
*/ | ||
noApp?: boolean; | ||
/** | ||
* app name | ||
@@ -30,0 +34,0 @@ */ |
@@ -65,2 +65,7 @@ { | ||
"description": "Add ngrx for the domain (entity required)" | ||
}, | ||
"noApp": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "Don't connect the feature lib to an app" | ||
} | ||
@@ -67,0 +72,0 @@ }, |
@@ -1,1 +0,1 @@ | ||
export declare const NGRX_VERSION = "10.1.2"; | ||
export declare const NGRX_VERSION = "13.0.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NGRX_VERSION = void 0; | ||
exports.NGRX_VERSION = '10.1.2'; | ||
exports.NGRX_VERSION = '13.0.2'; | ||
//# sourceMappingURL=ngrx-version.js.map |
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
100334
107
1370