@ngrx/schematics
Advanced tools
Comparing version 9.1.2 to 9.2.0
@@ -46,2 +46,9 @@ { | ||
"ngrx-push-migration": { | ||
"aliases": ["ngrxpush"], | ||
"factory": "./src/ngrx-push-migration", | ||
"schema": "./src/ngrx-push-migration/schema.json", | ||
"description": "Migration to replace the `async` pipe with `ngrxPush`" | ||
}, | ||
"reducer": { | ||
@@ -48,0 +55,0 @@ "aliases": ["r"], |
{ | ||
"name": "@ngrx/schematics", | ||
"version": "9.1.2", | ||
"version": "9.2.0", | ||
"description": "NgRx Schematics for Angular", | ||
@@ -32,2 +32,3 @@ "repository": { | ||
"@ngrx/component", | ||
"@ngrx/component-store", | ||
"@ngrx/schematics", | ||
@@ -34,0 +35,0 @@ "@ngrx/store-devtools" |
@@ -26,2 +26,2 @@ /// <amd-module name="@ngrx/schematics/schematics-core" /> | ||
export { platformVersion } from './utility/libs-version'; | ||
export { visitTSSourceFiles, visitNgModuleImports } from './utility/visitors'; | ||
export { visitTSSourceFiles, visitNgModuleImports, visitNgModuleExports, visitComponents, visitDecorator, visitNgModules, visitTemplates, } from './utility/visitors'; |
@@ -78,3 +78,8 @@ (function (factory) { | ||
exports.visitNgModuleImports = visitors_1.visitNgModuleImports; | ||
exports.visitNgModuleExports = visitors_1.visitNgModuleExports; | ||
exports.visitComponents = visitors_1.visitComponents; | ||
exports.visitDecorator = visitors_1.visitDecorator; | ||
exports.visitNgModules = visitors_1.visitNgModules; | ||
exports.visitTemplates = visitors_1.visitTemplates; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc2NoZW1hdGljcy1jb3JlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0lBQUEsOEVBVTJCO0lBRTNCLHd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91dGlsaXR5L3BhY2thZ2UnO1xuXG5leHBvcnQgeyBwbGF0Zm9ybVZlcnNpb24gfSBmcm9tICcuL3V0aWxpdHkvbGlicy12ZXJzaW9uJztcblxuZXhwb3J0IHtcbiAgdmlzaXRUU1NvdXJjZUZpbGVzLFxuICB2aXNpdE5nTW9kdWxlSW1wb3J0cyxcbiAgdmlzaXROZ01vZHVsZUV4cG9ydHMsXG4gIHZpc2l0Q29tcG9uZW50cyxcbiAgdmlzaXREZWNvcmF0b3IsXG4gIHZpc2l0TmdNb2R1bGVzLFxuICB2aXNpdFRlbXBsYXRlcyxcbn0gZnJvbSAnLi91dGlsaXR5L3Zpc2l0b3JzJztcbiJdfQ== |
@@ -5,2 +5,12 @@ /// <amd-module name="@ngrx/schematics/schematics-core/utility/visitors" /> | ||
export declare function visitTSSourceFiles<Result = void>(tree: Tree, visitor: (sourceFile: ts.SourceFile, tree: Tree, result?: Result) => Result | undefined): Result | undefined; | ||
export declare function visitTemplates(tree: Tree, visitor: (template: { | ||
fileName: string; | ||
content: string; | ||
inline: boolean; | ||
start: number; | ||
}, tree: Tree) => void): void; | ||
export declare function visitNgModuleImports(sourceFile: ts.SourceFile, callback: (importNode: ts.PropertyAssignment, elementExpressions: ts.NodeArray<ts.Expression>) => void): void; | ||
export declare function visitNgModuleExports(sourceFile: ts.SourceFile, callback: (exportNode: ts.PropertyAssignment, elementExpressions: ts.NodeArray<ts.Expression>) => void): void; | ||
export declare function visitComponents(sourceFile: ts.SourceFile, callback: (classDeclarationNode: ts.ClassDeclaration, decoratorExpressionNode: ts.ObjectLiteralExpression) => void): void; | ||
export declare function visitNgModules(sourceFile: ts.SourceFile, callback: (classDeclarationNode: ts.ClassDeclaration, decoratorExpressionNode: ts.ObjectLiteralExpression) => void): void; | ||
export declare function visitDecorator(sourceFile: ts.SourceFile, decoratorName: string, callback: (classDeclarationNode: ts.ClassDeclaration, decoratorExpressionNode: ts.ObjectLiteralExpression) => void): void; |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define("@ngrx/schematics/schematics-core/utility/visitors", ["require", "exports", "typescript"], factory); | ||
define("@ngrx/schematics/schematics-core/utility/visitors", ["require", "exports", "typescript", "@angular-devkit/core"], factory); | ||
} | ||
@@ -14,2 +14,3 @@ })(function (require, exports) { | ||
const ts = require("typescript"); | ||
const core_1 = require("@angular-devkit/core"); | ||
function visitTSSourceFiles(tree, visitor) { | ||
@@ -23,2 +24,108 @@ let result = undefined; | ||
exports.visitTSSourceFiles = visitTSSourceFiles; | ||
function visitTemplates(tree, visitor) { | ||
visitTSSourceFiles(tree, source => { | ||
visitComponents(source, (_, decoratorExpressionNode) => { | ||
ts.forEachChild(decoratorExpressionNode, function findTemplates(n) { | ||
if (ts.isPropertyAssignment(n) && ts.isIdentifier(n.name)) { | ||
if (n.name.text === 'template' && | ||
ts.isStringLiteralLike(n.initializer)) { | ||
// Need to add an offset of one to the start because the template quotes are | ||
// not part of the template content. | ||
const templateStartIdx = n.initializer.getStart() + 1; | ||
visitor({ | ||
fileName: source.fileName, | ||
content: n.initializer.text, | ||
inline: true, | ||
start: templateStartIdx, | ||
}, tree); | ||
return; | ||
} | ||
else if (n.name.text === 'templateUrl' && | ||
ts.isStringLiteralLike(n.initializer)) { | ||
const parts = core_1.normalize(source.fileName) | ||
.split('/') | ||
.slice(0, -1); | ||
const templatePath = core_1.resolve(core_1.normalize(parts.join('/')), core_1.normalize(n.initializer.text)); | ||
if (!tree.exists(templatePath)) { | ||
return; | ||
} | ||
const fileContent = tree.read(templatePath); | ||
if (!fileContent) { | ||
return; | ||
} | ||
visitor({ | ||
fileName: templatePath, | ||
content: fileContent.toString(), | ||
inline: false, | ||
start: 0, | ||
}, tree); | ||
return; | ||
} | ||
} | ||
ts.forEachChild(n, findTemplates); | ||
}); | ||
}); | ||
}); | ||
} | ||
exports.visitTemplates = visitTemplates; | ||
function visitNgModuleImports(sourceFile, callback) { | ||
visitNgModuleProperty(sourceFile, callback, 'imports'); | ||
} | ||
exports.visitNgModuleImports = visitNgModuleImports; | ||
function visitNgModuleExports(sourceFile, callback) { | ||
visitNgModuleProperty(sourceFile, callback, 'exports'); | ||
} | ||
exports.visitNgModuleExports = visitNgModuleExports; | ||
function visitNgModuleProperty(sourceFile, callback, property) { | ||
visitNgModules(sourceFile, (_, decoratorExpressionNode) => { | ||
ts.forEachChild(decoratorExpressionNode, function findTemplates(n) { | ||
if (ts.isPropertyAssignment(n) && | ||
ts.isIdentifier(n.name) && | ||
n.name.text === property && | ||
ts.isArrayLiteralExpression(n.initializer)) { | ||
callback(n, n.initializer.elements); | ||
return; | ||
} | ||
ts.forEachChild(n, findTemplates); | ||
}); | ||
}); | ||
} | ||
function visitComponents(sourceFile, callback) { | ||
visitDecorator(sourceFile, 'Component', callback); | ||
} | ||
exports.visitComponents = visitComponents; | ||
function visitNgModules(sourceFile, callback) { | ||
visitDecorator(sourceFile, 'NgModule', callback); | ||
} | ||
exports.visitNgModules = visitNgModules; | ||
function visitDecorator(sourceFile, decoratorName, callback) { | ||
ts.forEachChild(sourceFile, function findClassDeclaration(node) { | ||
if (!ts.isClassDeclaration(node)) { | ||
ts.forEachChild(node, findClassDeclaration); | ||
} | ||
const classDeclarationNode = node; | ||
if (!classDeclarationNode.decorators || | ||
!classDeclarationNode.decorators.length) { | ||
return; | ||
} | ||
const componentDecorator = classDeclarationNode.decorators.find(d => { | ||
return (ts.isCallExpression(d.expression) && | ||
ts.isIdentifier(d.expression.expression) && | ||
d.expression.expression.text === decoratorName); | ||
}); | ||
if (!componentDecorator) { | ||
return; | ||
} | ||
const { expression } = componentDecorator; | ||
if (!ts.isCallExpression(expression)) { | ||
return; | ||
} | ||
const [arg] = expression.arguments; | ||
if (!ts.isObjectLiteralExpression(arg)) { | ||
return; | ||
} | ||
callback(classDeclarationNode, arg); | ||
}); | ||
} | ||
exports.visitDecorator = visitDecorator; | ||
function* visit(directory) { | ||
@@ -42,21 +149,3 @@ for (const path of directory.subfiles) { | ||
} | ||
function visitNgModuleImports(sourceFile, callback) { | ||
ts.forEachChild(sourceFile, function findDecorator(node) { | ||
if (!ts.isDecorator(node)) { | ||
ts.forEachChild(node, findDecorator); | ||
return; | ||
} | ||
ts.forEachChild(node, function findImportsNode(n) { | ||
if (ts.isPropertyAssignment(n) && | ||
ts.isArrayLiteralExpression(n.initializer) && | ||
ts.isIdentifier(n.name) && | ||
n.name.text === 'imports') { | ||
callback(n, n.initializer.elements); | ||
} | ||
ts.forEachChild(n, findImportsNode); | ||
}); | ||
}); | ||
} | ||
exports.visitNgModuleImports = visitNgModuleImports; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlzaXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc2NoZW1hdGljcy1jb3JlL3V0aWxpdHkvdmlzaXRvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUFBQSxpQ0FBaUM7SUFHakMsU0FBZ0Isa0JBQWtCLENBQ2hDLElBQVUsRUFDVixPQUl1QjtRQUV2QixJQUFJLE1BQU0sR0FBdUIsU0FBUyxDQUFDO1FBQzNDLEtBQUssTUFBTSxVQUFVLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBRTtZQUN6QyxNQUFNLEdBQUcsT0FBTyxDQUFDLFVBQVUsRUFBRSxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7U0FDNUM7UUFFRCxPQUFPLE1BQU0sQ0FBQztJQUNoQixDQUFDO0lBZEQsZ0RBY0M7SUFFRCxRQUFRLENBQUMsQ0FBQyxLQUFLLENBQUMsU0FBbUI7UUFDakMsS0FBSyxNQUFNLElBQUksSUFBSSxTQUFTLENBQUMsUUFBUSxFQUFFO1lBQ3JDLElBQUksSUFBSSxDQUFDL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VJbXBvcnRzKFxuICBzb3VyY2VGaWxlOiB0cy5Tb3VyY2VGaWxlLFxuICBjYWxsYmFjazogKFxuICAgIGltcG9ydE5vZGU6IHRzLlByb3BlcnR5QXNzaWdubWVudCxcbiAgICBlbGVtZW50RXhwcmVzc2lvbnM6IHRzLk5vZGVBcnJheTx0cy5FeHByZXNzaW9uPlxuICApID0+IHZvaWRcbikge1xuICB0cy5mb3JFYWNoQ2hpbGQoc291cmNlRmlsZSwgZnVuY3Rpb24gZmluZERlY29yYXRvcihub2RlKSB7XG4gICAgaWYgKCF0cy5pc0RlY29yYXRvcihub2RlKSkge1xuICAgICAgdHMuZm9yRWFjaENoaWxkKG5vZGUsIGZpbmREZWNvcmF0b3IpO1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRzLmZvckVhY2hDaGlsZChub2RlLCBmdW5jdGlvbiBmaW5kSW1wb3J0c05vZGUobikge1xuICAgICAgaWYgKFxuICAgICAgICB0cy5pc1Byb3BlcnR5QXNzaWdubWVudChuKSAmJlxuICAgICAgICB0cy5pc0FycmF5TGl0ZXJhbEV4cHJlc3Npb24obi5pbml0aWFsaXplcikgJiZcbiAgICAgICAgdHMuaXNJZGVudGlmaWVyKG4ubmFtZSkgJiZcbiAgICAgICAgbi5uYW1lLnRleHQgPT09ICdpbXBvcnRzJ1xuICAgICAgKSB7XG4gICAgICAgIGNhbGxiYWNrKG4sIG4uaW5pdGlhbGl6ZXIuZWxlbWVudHMpO1xuICAgICAgfVxuXG4gICAgICB0cy5mb3JFYWNoQ2hpbGQobiwgZmluZEltcG9ydHNOb2RlKTtcbiAgICB9KTtcbiAgfSk7XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlzaXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc2NoZW1hdGljcy1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50aWZpZXIobi5uYW1lKSkge1xuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIG4ubmFtZS50ZXh0ID09PSAndGVtcGxhdGUnICYmXG4gICAgICAgICAgICB0cy5pc1N0cmluZ0xpdGVyYWxMaWtlKG4uaW5pdGlhbGl6ZXIpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICAvLyBOZWVkIHRvIGFkZCBhbiBvZmZzZXQgb2Ygb25lIHRvIHRoZSBzdGFydCBiZWNhdXNlIHRoZSB0ZW1wbGF0ZSBxdW90ZXMgYXJlXG4gICAgICAgICAgICAvLyBub3QgcGFydCBvZiB0aGUgdGVtcGxhdGUgY29udGVudC5cbiAgICAgICAgICAgIGNvbnN0IHRlbXBsYXRlU3RhcnRJZHggPSBuLmluaXRpYWxpemVyLmdldFN0YXJ0KCkgKyAxO1xuICAgICAgICAgICAgdmlzaXRvcihcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGZpbGVOYW1lOiBzb3VyY2UuZmlsZU5hbWUsXG4gICAgICAgICAgICAgICAgY29udGVudDogbi5pbml0aWFsaXplci50ZXh0LFxuICAgICAgICAgICAgICAgIGlubGluZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICBzdGFydDogdGVtcGxhdGVTdGFydElkeCxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgdHJlZVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9IGVsc2UgaWYgKFxuICAgICAgICAgICAgbi5uYW1lLnRleHQgPT09ICd0ZW1wbGF0ZVVybCcgJiZcbiAgICAgICAgICAgIHRzLmlzU3RyaW5nTGl0ZXJhbExpa2Uobi5pbml0aWFsaXplcilcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIGNvbnN0IHBhcnRzID0gbm9ybWFsaXplKHNvdXJjZS5maWxlTmFtZSlcbiAgICAgICAgICAgICAgLnNwbGl0KCcvJylcbiAgICAgICAgICAgICAgLnNsaWNlKDAsIC0xKTtcbiAgICAgICAgICAgIGNvbnN0IHRlbXBsYXRlUGF0aCA9IHJlc29sdmUoXG4gICAgICAgICAgICAgIG5vcm1hbGl6ZShwYXJ0cy5qb2luKCcvJykpLFxuICAgICAgICAgICAgICBub3JtYWxpemUobi5pbml0aWFsaXplci50ZXh0KVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGlmICghdHJlZS5leGlzdHModGVtcGxhdGVQYXRoKSkge1xuICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnN0IGZpbGVDb250ZW50ID0gdHJlZS5yZWFkKHRlbXBsYXRlUGF0aCk7XG4gICAgICAgICAgICBpZiAoIWZpbGVDb250ZW50KSB7XG4gICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdmlzaXRvcihcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGZpbGVOYW1lOiB0ZW1wbGF0ZVBhdGgsXG4gICAgICAgICAgICAgICAgY29udGVudDogZmlsZUNvbnRlbnQudG9TdHJpbmcoKSxcbiAgICAgICAgICAgICAgICBpbmxpbmU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIHN0YXJ0OiAwLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB0cmVlXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRzLmZvckVhY2hDaGlsZChuLCBmaW5kVGVtcGxhdGVzKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9KTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHZpc2l0TmdNb2R1bGVJbXBvcnRzKFxuICBzb3VyY2VGaWxlOiB0cy5Tb3VyY2VGaWxlLFxuICBjYWxsYmFjazogKFxuICAgIGltcG9ydE5vZGU6IHRzLlByb3BlcnR5QXNzaWdubWVudCxcbiAgICBl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XG4gICAgfVxuICB9XG5cbiAgZm9yIChjb25zdCBwYXRoIG9mIGRpcmVjdG9yeS5zdWJkaXJzKSB7XG4gICAgaWYgKHBhdGggPT09ICdub2RlX21vZHVsZXMnKSB7XG4gICAgICBjb250aW51ZTtcbiAgICB9XG5cbiAgICB5aWVsZCogdmlzaXQoZGlyZWN0b3J5LmRpcihwYXRoKSk7XG4gIH1cbn1cbiJdfQ== |
@@ -17,2 +17,5 @@ (function (factory) { | ||
options.path = schematics_core_1.getProjectPath(host, options); | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
const parsedPath = schematics_core_1.parseName(options.path, options.name); | ||
@@ -33,2 +36,2 @@ options.name = parsedPath.name; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL2FjdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQUFBLDJEQWVvQztJQUVwQyxzRUFJMEM7SUFFMUMsbUJBQXdCLE9BQXNCO1FBQzVDLE9BQU8sQ0FBQyxJQUFVLEVBQUUsT0FBeUIsRUFBRSxFQUFFO1lBQy9DLE9BQU8sQ0FBQyxJQUFJLEdBQUcsZ0NBQWMsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUM7WUFFN0MsTUFBTSxVQUFVLEdBQUcsMkJBQVMsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUN6RCxPQUFPLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUM7WUFDL0IsT0FBTyxDQUFDLElBQUksR0FBRyxVQUFVLENBQUMsSUFBSSxDQUFD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cbiJdfQ== |
@@ -17,3 +17,8 @@ /// <amd-module name="@ngrx/schematics/src/action/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
@@ -20,0 +25,0 @@ /** |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9hY3Rpb24vc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFNjaGVtYSB7XG4gIC8qKlxuICAgKiBUaGUgbmFtZSBvZiB0aGUgY29tcG9uZW50LlxuICAgKi9cbiAgbmFtZTogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgcGF0aCB0byBjcmVhdGUgdGhlIGNvbXBvbmVudC5cbiAgICovXG4gIHBhdGg/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFRoZSBuYW1lIG9mIHRoZSBwcm9qZWN0LlxuICAgKi9cbiAgcHJvamVjdD86IHN0cmluZztcblxuICAvKipcbiAgICogV2hlbiB0cnVlLCBkb2VzIG5vdCBjcmVhdGUgdGVzdCBmaWxlcy5cbiAgICovXG4gIHNraXBUZXN0cz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEZsYWcgdG8gaW5kaWNhdGUgaWYgYSBkaXIgaXMgY3JlYXRlZC5cbiAgICovXG5cbiAgZmxhdD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEdyb3VwIGFjdGlvbnMgZmlsZSB3aXRoaW4gJ2FjdGlvbnMnIGZvbGRlclxuICAgKi9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vb2xlYW47XG4gIC8qKlxuICAgKiBXaGVuIHRydWUsIGRvZXMgbm90IGNyZWF0ZSB0ZXN0IGZpbGVzLlxuICAgKi9cbiAgc2tpcFRlc3RzPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogRmxhZyB0byBpbmRpY2F0ZSBpZiBhIGRpciBpcyBjcmVhdGVkLlxuICAgKi9cblxuICBmbGF0PzogYm9vbGVhbjtcblxuICAvKipcbiAgICogR3JvdXAgYWN0aW9ucyBmaWxlIHdpdGhpbiAnYWN0aW9ucycgZm9sZGVyXG4gICAqL1xuICBncm91cD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiBhcGkgc3VjY2VzcyBhbmQgZmFpbHVyZSBhY3Rpb25zXG4gICAqIHNob3VsZCBiZSBnZW5lcmF0ZWQuXG4gICAqL1xuICBhcGk/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgd2hldGhlciB0byB1c2UgY3JlYXRvciBmdW5jdGlvbnMgZm9yXG4gICAqIGhhbmRsaW5nIGFjdGlvbnMgYW5kIHJlZHVjZXJzLlxuICAgKi9cbiAgY3JlYXRvcnM/OiBib29sZWFuO1xufVxuIl19 |
@@ -30,4 +30,10 @@ { | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"default": false | ||
}, | ||
"flat": { | ||
@@ -34,0 +40,0 @@ "type": "boolean", |
@@ -46,9 +46,5 @@ (function (factory) { | ||
const { pos } = cmpCtr; | ||
const stateType = options.state | ||
? `fromStore.${options.stateInterface}` | ||
: 'any'; | ||
const constructorText = cmpCtr.getText(); | ||
const [start, end] = constructorText.split('()'); | ||
const storeText = `private store: Store<${stateType}>`; | ||
const storeConstructor = [start, `(${storeText})`, end].join(''); | ||
const storeConstructor = [start, `(private store: Store)`, end].join(''); | ||
const constructorUpdate = new schematics_core_1.ReplaceChange(componentPath, pos, ` ${constructorText}\n\n`, `\n\n ${storeConstructor}`); | ||
@@ -73,2 +69,5 @@ const changes = [storeImport, stateImport, constructorUpdate]; | ||
options.path = schematics_core_1.getProjectPath(host, options); | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
const parsedPath = schematics_core_1.parseName(options.path, options.name); | ||
@@ -81,3 +80,3 @@ options.name = parsedPath.name; | ||
const templateSource = schematics_1.apply(schematics_1.url(options.testDepth === 'unit' ? './files' : './integration-files'), [ | ||
options.skipTest | ||
options.skipTests | ||
? schematics_1.filter(path => !path.endsWith('.spec.ts.template')) | ||
@@ -99,2 +98,2 @@ : schematics_1.noop(), | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL2NvbnRhaW5lci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQUFBLDJEQWdCb0M7SUFDcEMsaUNBQWlDO0lBQ2pDLHNFQVUwQztJQUcxQyxTQUFTLG1CQUFtQixDQUFDLE9BQWtDO1FBQzdELE9BQU8sQ0FBQyxJQUFVLEVBQUUsRUFBRTtZQUNwQixJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssSUFBSSxDQUFDLE9BQU8sQ0FBQyxjQUFjLEVBQUU7Z0JBQzdDLE9BQU8sSUFBSSxDQUFDO2FBQ2I7WUFFRCxNQUFNLFNBQVMsR0FBRyxJQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLEtBQUssRUFBRSxDQUFDO1lBRXRELElBQUksT0FBTyxDQUFDLEtBQUssRUFBRTtnQkFDakIsSUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQ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tYXRpYyBkZWZhdWx0cyAoaW4gYW5ndWxhci5qc29uIG9yIHRoZSBBbmd1bGFyIHNjaGVtYSlcbiAgICAoT2JqZWN0LmtleXMob3B0cykgYXMgKGtleW9mIENvbnRhaW5lck9wdGlvbnMpW10pLmZvckVhY2goXG4gICAgICBrZXkgPT4gKG9wdHNba2V5XSA9PT0gdW5kZWZpbmVkID8gZGVsZXRlIG9wdHNba2V5XSA6IHt9KVxuICAgICk7XG5cbiAgICByZXR1cm4gY2hhaW4oW1xuICAgICAgZXh0ZXJuYWxTY2hlbWF0aWMoJ0BzY2hlbWF0aWNzL2FuZ3VsYXInLCAnY29tcG9uZW50Jywge1xuICAgICAgICAuLi5vcHRzLFxuICAgICAgICBza2lwVGVzdHM6IHRydWUsXG4gICAgICB9KSxcbiAgICAgIGFkZFN0YXRlVG9Db21wb25lbnQob3B0aW9ucyksXG4gICAgICBtZXJnZVdpdGgodGVtcGxhdGVTb3VyY2UpLFxuICAgIF0pKGhvc3QsIGNvbnRleHQpO1xuICB9O1xufVxuIl19 |
@@ -41,5 +41,10 @@ /// <amd-module name="@ngrx/schematics/src/container/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Flag to indicate if a dir is created. | ||
@@ -46,0 +51,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9jb250YWluZXIvc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFNjaG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GUgZXhwb3J0c1xuICAgKi9cbiAgc3RhdGU/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyB0aGUgaW50ZXJmYWNlIGZvciB0aGUgc3RhdGVcbiAgICovXG4gIHN0YXRlSW50ZXJmYWNlPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgd2hldGhlciB0byBjcmVhdGUgYSB1bml0IHRlc3Qgb3IgYW4gaW50ZWdyYXRpb24gdGVzdC5cbiAgICovXG4gIHRlc3REZXB0aD86IHN0cmluZztcbn1cbiJdfQ== |
@@ -62,2 +62,8 @@ { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"description": "When true, does not create test files." | ||
@@ -64,0 +70,0 @@ }, |
@@ -17,2 +17,5 @@ (function (factory) { | ||
options.path = schematics_core_1.getProjectPath(host, options); | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
const parsedPath = schematics_core_1.parseName(options.path, options.name); | ||
@@ -22,3 +25,3 @@ options.name = parsedPath.name; | ||
const templateSource = schematics_1.apply(schematics_1.url('./files'), [ | ||
options.skipTest | ||
options.skipTests | ||
? schematics_1.filter(path => !path.endsWith('.spec.ts.template')) | ||
@@ -34,2 +37,2 @@ : schematics_1.noop(), | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL2RhdGEvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUFBQSwyREFhb0M7SUFDcEMsc0VBSTBDO0lBRzFDLG1CQUF3QixPQUFvQjtRQUMxQ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2lwVGVzdDtcbiAgICB9XG5cbiAgICBjb25zdCBwYXJzZWRQYXRoID0gcGFyc2VOYW1lKG9wdGlvbnMucGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICBvcHRpb25zLm5hbWUgPSBwYXJzZWRQYXRoLm5hbWU7XG4gICAgb3B0aW9ucy5wYXRoID0gcGFyc2VkUGF0aC5wYXRoO1xuXG4gICAgY29uc3QgdGVtcGxhdGVTb3VyY2UgPSBhcHBseSh1cmwoJy4vZmlsZXMnKSwgW1xuICAgICAgb3B0aW9ucy5za2lwVGVzdHNcbiAgICAgICAgPyBmaWx0ZXIocGF0aCA9PiAhcGF0aC5lbmRzV2l0aCgnLnNwZWMudHMudGVtcGxhdGUnKSlcbiAgICAgICAgOiBub29wKCksXG4gICAgICBhcHBseVRlbXBsYXRlcyh7XG4gICAgICAgIC4uLnN0cmluZ1V0aWxzLFxuICAgICAgICAnaWYtZmxhdCc6IChzOiBzdHJpbmcpID0+XG4gICAgICAgICAgc3RyaW5nVXRpbHMuZ3JvdXAob3B0aW9ucy5mbGF0ID8gJycgOiBzLCBvcHRpb25zLmdyb3VwID8gJ2RhdGEnIDogJycpLFxuICAgICAgICAuLi5vcHRpb25zLFxuICAgICAgfSksXG4gICAgICBtb3ZlKHBhcnNlZFBhdGgucGF0aCksXG4gICAgXSk7XG5cbiAgICByZXR1cm4gY2hhaW4oW2JyYW5jaEFuZE1lcmdlKGNoYWluKFttZXJnZVdpdGgodGVtcGxhdGVTb3VyY2UpXSkpXSkoXG4gICAgICBob3N0LFxuICAgICAgY29udGV4dFxuICAgICk7XG4gIH07XG59XG4iXX0= |
@@ -17,5 +17,10 @@ /// <amd-module name="@ngrx/schematics/src/data/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Flag to indicate if a dir is created. | ||
@@ -22,0 +27,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9kYXRhL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTY2hlbWEge1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIGNvbXBvbmVudC5cbiAgICovXG4gIG5hbWU6IHN0cmluZztcblxuICAvKipcbiAgICogVGhlIHBhdGggdG8gY3JlYXRlIHRoZSBjb21wb25lbnQuXG4gICAqL1xuICBwYXRoPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgbmFtZSBvZiB0aGUgcHJvamVjdC5cbiAgICovXG4gIHByb2plY3Q/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFdoZW4gdHJ1ZSwgZG9lcyBub3QgY3JlYXRlIHRlc3QgZmlsZXMuXG4gICAqL1xuICBza2lwVGVzdD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEZsYWcgdG8gaW5kaWNhdGUgaWYgYSBkaXIgaXMgY3JlYXRlZC5cbiAgICovXG5cbiAgZmxhdD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEdyb3VwIGVudGl0eSBtZXRhZGF0YSBmaWxlcyB3aXRoaW4gJ2RhdGEnIGZvbGRlclxuICAgKi9cbiAgZ3JvdXA/OiBib29sZWFuO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9kYXRhL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTY2hlbWEge1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIGNvbXBvbmVudC5cbiAgICovXG4gIG5hbWU6IHN0cmluZztcblxuICAvKipcbiAgICogVGhlIHBhdGggdG8gY3JlYXRlIHRoZSBjb21wb25lbnQuXG4gICAqL1xuICBwYXRoPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgbmFtZSBvZiB0aGUgcHJvamVjdC5cbiAgICovXG4gIHByb2plY3Q/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFdoZW4gdHJ1ZSwgZG9lcyBub3QgY3JlYXRlIHRlc3QgZmlsZXMuXG4gICAqIEBkZXByZWNhdGVkIHVzZSBza2lwVGVzdHMgaW5zdGVhZFxuICAgKi9cbiAgc2tpcFRlc3Q/OiBib29sZWFuO1xuICAvKipcbiAgICogV2hlbiB0cnVlLCBkb2VzIG5vdCBjcmVhdGUgdGVzdCBmaWxlcy5cbiAgICovXG4gIHNraXBUZXN0cz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEZsYWcgdG8gaW5kaWNhdGUgaWYgYSBkaXIgaXMgY3JlYXRlZC5cbiAgICovXG5cbiAgZmxhdD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEdyb3VwIGVudGl0eSBtZXRhZGF0YSBmaWxlcyB3aXRoaW4gJ2RhdGEnIGZvbGRlclxuICAgKi9cbiAgZ3JvdXA/OiBib29sZWFuO1xufVxuIl19 |
@@ -29,4 +29,10 @@ { | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"default": false | ||
}, | ||
"flat": { | ||
@@ -33,0 +39,0 @@ "type": "boolean", |
@@ -71,2 +71,5 @@ (function (factory) { | ||
options.path = schematics_core_1.getProjectPath(host, options); | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
if (options.module) { | ||
@@ -79,3 +82,3 @@ options.module = schematics_core_1.findModuleFromOptions(host, options); | ||
const templateSource = schematics_1.apply(schematics_1.url('./files'), [ | ||
options.skipTest | ||
options.skipTests | ||
? schematics_1.filter(path => !path.endsWith('.spec.ts.template')) | ||
@@ -94,2 +97,2 @@ : schematics_1.noop(), | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL2VmZmVjdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQUFBLDJEQWNvQztJQUNwQyxzRUFTMEM7SUFDMUMsaUNBQWlDO0lBR2pDLFNBQVMsbUJBQW1CLENBQUMsT0FBc0I7UUFDakQsT0FBTyxDQUFDLElBQVUsRUFBRSxFQUFFO1lBQ3BCLE1BQU0sVUFBVSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUM7WUFFbEMsSUFBSSxDQUFDLFVBQVUsRUFBRTtnQkFDZixPQUFPLElBQUksQ0FBQzthQUNiO1lBRUQsSUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLEVBQUU7Z0JBQzVCLE1BQU0sSUFBSSxLQUFLLENBQUMseUJBQXlCLFVBQVUsaUJBQWlCLENBQUMsQ0FBQzthQUN2RTtZQUVELE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUM7WUFDbkMsSUFBSSxJQUFJLEtBQUssSUFBSSxFQUFFO2dCQUNqQixNQUFN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ZWN0RW5kOiBnZXRFZmZlY3RFbmQob3B0aW9ucy5jcmVhdG9ycyksXG4gICAgICAgIC4uLihvcHRpb25zIGFzIG9iamVjdCksXG4gICAgICB9IGFzIGFueSksXG4gICAgICBtb3ZlKHBhcnNlZFBhdGgucGF0aCksXG4gICAgXSk7XG5cbiAgICByZXR1cm4gY2hhaW4oW1xuICAgICAgYnJhbmNoQW5kTWVyZ2UoXG4gICAgICAgIGNoYWluKFthZGRJbXBvcnRUb05nTW9kdWxlKG9wdGlvbnMpLCBtZXJnZVdpdGgodGVtcGxhdGVTb3VyY2UpXSlcbiAgICAgICksXG4gICAgXSkoaG9zdCwgY29udGV4dCk7XG4gIH07XG59XG4iXX0= |
@@ -21,5 +21,10 @@ /// <amd-module name="@ngrx/schematics/src/effect/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Allows specification of the declaring module. | ||
@@ -26,0 +31,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9lZmZlY3Qvc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFNjaGVtYSB7XG4gIC8qKlxuICAgKiBUaGUgbmFtZSBvZiB0aGUgY29tcG9uZW50LlxuICAgKi9cbiAgbmFtZTogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgcGF0aCB0byBjcmVhdGUgdGhlIGVmZmVjdC5cbiAgICovXG4gIHBhdGg/OiBzdHJpbmc7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iAgICovXG4gIHNraXBUZXN0cz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEFsbG93cyBzcGVjaWZpY2F0aW9uIG9mIHRoZSBkZWNsYXJpbmcgbW9kdWxlLlxuICAgKi9cbiAgbW9kdWxlPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgaWYgdGhpcyBpcyBhIHJvb3QtbGV2ZWwgZWZmZWN0XG4gICAqL1xuICByb290PzogYm9vbGVhbjtcblxuICAvKipcbiAgICogU3BlY2lmaWVzIGlmIHRoaXMgaXMgZ3JvdXBlZCB3aXRoaW4gYSBmZWF0dXJlXG4gICAqL1xuICBmZWF0dXJlPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogU3BlY2lmaWVzIGlmIHRoaXMgaXMgZ3JvdXBlZCB3aXRoaW4gYW4gJ2VmZmVjdHMnIGZvbGRlclxuICAgKi9cbiAgZ3JvdXA/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgaWYgZWZmZWN0IGhhcyBhcGkgc3VjY2VzcyBhbmQgZmFpbHVyZSBhY3Rpb25zIHdpcmVkIHVwXG4gICAqL1xuICBhcGk/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgd2hldGhlciB0byB1c2UgY3JlYXRvciBmdW5jdGlvbnMgZm9yXG4gICAqIGhhbmRsaW5nIGFjdGlvbnMsIHJlZHVjZXJzLCBhbmQgZWZmZWN0cy5cbiAgICovXG4gIGNyZWF0b3JzPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogU2V0dXAgcm9vdCBlZmZlY3RzIG1vZHVsZSB3aXRob3V0IHJlZ2lzdGVyaW5nIGluaXRpYWwgZWZmZWN0cy5cbiAgICovXG4gIG1pbmltYWw/OiBib29sZWFuO1xufVxuIl19 |
@@ -34,2 +34,8 @@ { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"default": false, | ||
@@ -36,0 +42,0 @@ "description": "When true, does not create test files." |
@@ -20,2 +20,5 @@ (function (factory) { | ||
options.path = parsedPath.path; | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
if (options.module) { | ||
@@ -26,3 +29,3 @@ options.module = schematics_core_1.findModuleFromOptions(host, options); | ||
const commonTemplates = schematics_1.apply(schematics_1.url('./common-files'), [ | ||
options.skipTest | ||
options.skipTests | ||
? schematics_1.filter(path => !path.endsWith('.spec.ts.template')) | ||
@@ -43,2 +46,2 @@ : schematics_1.noop(), | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL2VudGl0eS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztJQUFBLDJEQWVvQztJQUNwQyxzRUFRMEM7SUFHMUMsbUJBQXdCLE9BQXNCO1FBQzVDLE9BQU8sQ0FBQyxJQUFVLEVBQUUsT0FBeUIsRUFBRSxFQUFFO1lBQy9DLE9BQU8sQ0FBQyxJQUFJLEdBQUcsZ0NBQWMsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUM7WUFFN0MsTUFBTSxVQUFVLEdBQUcsMkJBQVMsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUN6RCxPQUFPLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUM7WUFDL0IsT0FBTyxDQUFDLElBQUksR0FBRyxVQUFVLENBQUMsSUFBSSxDQUFDO1lBRS9CLElBQUksT0FBTyxDQUFDLE1BQU0sRUFBRTtnQ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cyBvYmplY3QpLFxuICAgIH07XG5cbiAgICBjb25zdCBjb21tb25UZW1wbGF0ZXMgPSBhcHBseSh1cmwoJy4vY29tbW9uLWZpbGVzJyksIFtcbiAgICAgIG9wdGlvbnMuc2tpcFRlc3RzXG4gICAgICAgID8gZmlsdGVyKHBhdGggPT4gIXBhdGguZW5kc1dpdGgoJy5zcGVjLnRzLnRlbXBsYXRlJykpXG4gICAgICAgIDogbm9vcCgpLFxuICAgICAgYXBwbHlUZW1wbGF0ZXModGVtcGxhdGVPcHRpb25zKSxcbiAgICAgIG1vdmUocGFyc2VkUGF0aC5wYXRoKSxcbiAgICBdKTtcblxuICAgIGNvbnN0IHRlbXBsYXRlU291cmNlID0gYXBwbHkoXG4gICAgICB1cmwob3B0aW9ucy5jcmVhdG9ycyA/ICcuL2NyZWF0b3ItZmlsZXMnIDogJy4vZmlsZXMnKSxcbiAgICAgIFthcHBseVRlbXBsYXRlcyh0ZW1wbGF0ZU9wdGlvbnMpLCBtb3ZlKHBhcnNlZFBhdGgucGF0aCldXG4gICAgKTtcblxuICAgIHJldHVybiBjaGFpbihbXG4gICAgICBhZGRSZWR1Y2VyVG9TdGF0ZSh7IC4uLm9wdGlvbnMsIHBsdXJhbDogdHJ1ZSB9KSxcbiAgICAgIGFkZFJlZHVjZXJJbXBvcnRUb05nTW9kdWxlKHsgLi4ub3B0aW9ucywgcGx1cmFsOiB0cnVlIH0pLFxuICAgICAgYnJhbmNoQW5kTWVyZ2UoXG4gICAgICAgIGNoYWluKFttZXJnZVdpdGgoY29tbW9uVGVtcGxhdGVzKSwgbWVyZ2VXaXRoKHRlbXBsYXRlU291cmNlKV0pXG4gICAgICApLFxuICAgIF0pKGhvc3QsIGNvbnRleHQpO1xuICB9O1xufVxuIl19 |
@@ -21,5 +21,10 @@ /// <amd-module name="@ngrx/schematics/src/entity/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Allows specification of the declaring module. | ||
@@ -26,0 +31,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9lbnRpdHkvc2NoZW1hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFNjaGVtYSB7XG4gIC8qKlxuICAgKiBUaGUgbmFtZSBvZiB0aGUgY29tcG9uZW50LlxuICAgKi9cblxuICBuYW1lOiBzdHJpbmc7XG4gIC8qKlxuICAgKiBUaGUgcGF0aCB0byBjcmVhdGUgdGhlIGVmZmVjdC5cbiAgICovXG5cbiAgcGF0aD86IHN0cmluZztcbiAgLyoqXG4gICAqIFRoZSBuYW1lIG9mIHRoZSBwcm9qZWN0LlxuICAgKi9cbiAgcHJvamVjdD86IHN0cmluZztcbiAgLyoqXG4gICAqIEZsYWcgdG8gaW5kaWNhdGUgaWYgYSBkaXIgaXMgY3JlYXRlZC5cbiAgICovXG4gIGZsYXQ/OiBib29sZWFuO1xuICAvKipcbiAgICogV2hlbiB0cnVlLCBkb2VzIG5vdCBjcmVhdGUgdGVzdCBmaWxlcy5cbiAgICovXG4gIHNraXBUZXN0PzogYm9vbGVhbjtcbiAgLyoqXG4gICAqIEFsbG93cyBzcGVjaWZpY2F0aW9uIG9mIHRoZSBkZWNsYXJpbmcgbW9kdWxlLlxuICAgKi9cblxuICBtb2R1bGU/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBBbGxvd3Mgc3BlY2lmaWNhdGlvbiBvZiB0aGUgZGVjbGFyaW5nIHJlZHVjZXJzLlxuICAgKi9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ZWQgVXNlIHNraXBUZXN0cyBpbnN0ZWFkXG4gICAqL1xuICBza2lwVGVzdD86IGJvb2xlYW47XG4gIC8qKlxuICAgKiBXaGVuIHRydWUsIGRvZXMgbm90IGNyZWF0ZSB0ZXN0IGZpbGVzLlxuICAgKi9cbiAgc2tpcFRlc3RzPzogYm9vbGVhbjtcbiAgLyoqXG4gICAqIEFsbG93cyBzcGVjaWZpY2F0aW9uIG9mIHRoZSBkZWNsYXJpbmcgbW9kdWxlLlxuICAgKi9cblxuICBtb2R1bGU/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBBbGxvd3Mgc3BlY2lmaWNhdGlvbiBvZiB0aGUgZGVjbGFyaW5nIHJlZHVjZXJzLlxuICAgKi9cblxuICByZWR1Y2Vycz86IHN0cmluZztcbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiB0aGlzIGlzIGdyb3VwZWQgd2l0aGluIHN1YiBmb2xkZXJzXG4gICAqL1xuXG4gIGdyb3VwPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogU3BlY2lmaWVzIHdoZXRoZXIgdG8gdXNlIGNyZWF0b3IgZnVuY3Rpb25zIGZvclxuICAgKiBoYW5kbGluZyBhY3Rpb25zIGFuZCByZWR1Y2Vycy5cbiAgICovXG4gIGNyZWF0b3JzPzogYm9vbGVhbjtcbn1cbiJdfQ== |
@@ -30,4 +30,10 @@ { | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"default": false | ||
}, | ||
"reducers": { | ||
@@ -34,0 +40,0 @@ "type": "string", |
@@ -14,2 +14,5 @@ (function (factory) { | ||
function default_1(options) { | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
return (host, context) => { | ||
@@ -23,3 +26,3 @@ return schematics_1.chain([ | ||
project: options.project, | ||
skipTest: true, | ||
skipTests: options.skipTests, | ||
api: options.api, | ||
@@ -35,3 +38,3 @@ creators: options.creators, | ||
project: options.project, | ||
skipTest: options.skipTest, | ||
skipTests: options.skipTests, | ||
reducers: options.reducers, | ||
@@ -49,3 +52,3 @@ feature: true, | ||
project: options.project, | ||
skipTest: options.skipTest, | ||
skipTests: options.skipTests, | ||
feature: true, | ||
@@ -61,3 +64,3 @@ api: options.api, | ||
project: options.project, | ||
skipTest: options.skipTest, | ||
skipTests: options.skipTests, | ||
feature: true, | ||
@@ -70,2 +73,2 @@ }), | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL2ZlYXR1cmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUFBQSwyREFNb0M7SUFHcEMsbUJBQXdCLE9BQXVCO1FBQzdDLE9BQU8sQ0FBQyxJQUFVLEVBQUUsT0FBeUIsRUFBRSxFQUFFO1lBQy9DLE9BQU8sa0JBQUssQ0FBQztnQkFDWCxzQkFBUyxDQUFDLFFBQVEsRUFBRTtvQkFDbEIsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJO29CQUNsQixLQUFLLEVBQUUsT0FBTyxDQUFDLEtBQUs7b0JBQ3BCLElBQUksRUFBRSxPQUFPLENBQUMsSUFBSTtvQkFDbEIsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJO29CQUNsQixPQUFPLEVBQUUsT0FBTyxDQUFDLE9BQU87b0JBQ3hCLFFBQVEsRUFBRSxJQUFJO29CQUNkLEdBQUcsRUFBRSxPQUFPLENBQUMsR0FBRztvQkFDaEIsUUFBUSxFQUFFLE9BQU8sQ0FBQyxRQUFRO2lCQUMzQixDQUFDO2dCQUNGLHNCQUFTLENBQUMsU0FBU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hbWUsXG4gICAgICAgIHBhdGg6IG9wdGlvbnMucGF0aCxcbiAgICAgICAgcHJvamVjdDogb3B0aW9ucy5wcm9qZWN0LFxuICAgICAgICBza2lwVGVzdHM6IG9wdGlvbnMuc2tpcFRlc3RzLFxuICAgICAgICBmZWF0dXJlOiB0cnVlLFxuICAgICAgICBhcGk6IG9wdGlvbnMuYXBpLFxuICAgICAgICBjcmVhdG9yczogb3B0aW9ucy5jcmVhdG9ycyxcbiAgICAgIH0pLFxuICAgICAgc2NoZW1hdGljKCdzZWxlY3RvcicsIHtcbiAgICAgICAgZmxhdDogb3B0aW9ucy5mbGF0LFxuICAgICAgICBncm91cDogb3B0aW9ucy5ncm91cCxcbiAgICAgICAgbmFtZTogb3B0aW9ucy5uYW1lLFxuICAgICAgICBwYXRoOiBvcHRpb25zLnBhdGgsXG4gICAgICAgIHByb2plY3Q6IG9wdGlvbnMucHJvamVjdCxcbiAgICAgICAgc2tpcFRlc3RzOiBvcHRpb25zLnNraXBUZXN0cyxcbiAgICAgICAgZmVhdHVyZTogdHJ1ZSxcbiAgICAgIH0pLFxuICAgIF0pKGhvc3QsIGNvbnRleHQpO1xuICB9O1xufVxuIl19 |
@@ -21,5 +21,10 @@ /// <amd-module name="@ngrx/schematics/src/feature/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Allows specification of the declaring module. | ||
@@ -26,0 +31,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9mZWF0dXJlL3NjaGVtYS50cyJdLCJuYW1lcyI6W10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iB0cnVlLCBkb2VzIG5vdCBjcmVhdGUgdGVzdCBmaWxlcy5cbiAgICovXG4gIHNraXBUZXN0cz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIEFsbG93cyBzcGVjaWZpY2F0aW9uIG9mIHRoZSBkZWNsYXJpbmcgbW9kdWxlLlxuICAgKi9cbiAgbW9kdWxlPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBBbGxvd3Mgc3BlY2lmaWNhdGlvbiBvZiB0aGUgZGVjbGFyaW5nIHJlZHVjZXJzLlxuICAgKi9cbiAgcmVkdWNlcnM/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiB0aGlzIGlzIGdyb3VwZWQgd2l0aGluIHN1YiBmb2xkZXJzXG4gICAqL1xuICBncm91cD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiBhcGkgc3VjY2VzcyBhbmQgZmFpbHVyZSBhY3Rpb25zLCByZWR1Y2VyLCBhbmQgZWZmZWN0c1xuICAgKiBzaG91bGQgYmUgZ2VuZXJhdGVkIGFzIHBhcnQgb2YgdGhpcyBmZWF0dXJlLlxuICAgKi9cbiAgYXBpPzogYm9vbGVhbjtcblxuICAvKipcbiAgICogU3BlY2lmaWVzIHdoZXRoZXIgdG8gdXNlIGNyZWF0b3IgZnVuY3Rpb25zIGZvciBhY3Rpb25zLCByZWR1Y2VycywgYW5kIGVmZmVjdHMuXG4gICAqL1xuICBjcmVhdG9ycz86IGJvb2xlYW47XG59XG4iXX0= |
@@ -39,2 +39,8 @@ { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"default": false, | ||
@@ -41,0 +47,0 @@ "description": "When true, does not create test files." |
@@ -20,2 +20,5 @@ (function (factory) { | ||
} | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
const parsedPath = schematics_core_1.parseName(options.path, options.name); | ||
@@ -26,3 +29,3 @@ options.name = parsedPath.name; | ||
const commonTemplate = schematics_1.apply(schematics_1.url('./common-files'), [ | ||
options.skipTest | ||
options.skipTests | ||
? schematics_1.filter(path => !path.endsWith('.spec.ts.template')) | ||
@@ -46,2 +49,2 @@ : schematics_1.noop(), | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL3JlZHVjZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7SUFBQSwyREFlb0M7SUFFcEMsc0VBUTBDO0lBRzFDLG1CQUF3QixPQUF1QjtRQUM3QyxPQUFPLENBQUMsSUFBVSxFQUFFLE9BQXlCLEVBQUUsRUFBRTtZQUMvQyxPQUFPLENBQUMsSUFBSSxHQUFHLGdDQUFjLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO1lBRTdDLElBQUksT0FBTyxDQUFDLE1BQU0sRUFBRTtnQkFDbEIsT0FBTyxDQUFDLE1BQU0sR0FBRyx1Q0FBcUIsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUM7YUFDdkQ7WUFFRCxNQUFNLFVBQVUsR0FBRywyQkFBUyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQ3pELE9BQU8sQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQztZQUMvQixPQUFPLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUM7WUFFL0IsTUFBTSxlQUFlLGlEQUNoQiw2QkFBVyxLQUNkLFNBQVMsRUFBR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0b3JzID8gJy4vY3JlYXRvci1maWxlcycgOiAnLi9maWxlcycpLFxuICAgICAgW2FwcGx5VGVtcGxhdGVzKHRlbXBsYXRlT3B0aW9ucyksIG1vdmUocGFyc2VkUGF0aC5wYXRoKV1cbiAgICApO1xuXG4gICAgcmV0dXJuIGNoYWluKFtcbiAgICAgIGJyYW5jaEFuZE1lcmdlKGNoYWluKFthZGRSZWR1Y2VyVG9TdGF0ZShvcHRpb25zKV0pKSxcbiAgICAgIGJyYW5jaEFuZE1lcmdlKFxuICAgICAgICBjaGFpbihbXG4gICAgICAgICAgYWRkUmVkdWNlckltcG9ydFRvTmdNb2R1bGUob3B0aW9ucyksXG4gICAgICAgICAgbWVyZ2VXaXRoKGNvbW1vblRlbXBsYXRlKSxcbiAgICAgICAgICBtZXJnZVdpdGgodGVtcGxhdGVTb3VyY2UpLFxuICAgICAgICBdKVxuICAgICAgKSxcbiAgICBdKShob3N0LCBjb250ZXh0KTtcbiAgfTtcbn1cbiJdfQ== |
@@ -21,5 +21,10 @@ /// <amd-module name="@ngrx/schematics/src/reducer/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Allows specification of the declaring module. | ||
@@ -26,0 +31,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9yZWR1Y2VyL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTY2hlbWEge1xuICAvKipcbiAgICogVGhlIG5hb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RlIHRlc3QgZmlsZXMuXG4gICAqL1xuICBza2lwVGVzdHM/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBBbGxvd3Mgc3BlY2lmaWNhdGlvbiBvZiB0aGUgZGVjbGFyaW5nIG1vZHVsZS5cbiAgICovXG4gIG1vZHVsZT86IHN0cmluZztcblxuICAvKipcbiAgICogQWxsb3dzIHNwZWNpZmljYXRpb24gb2YgdGhlIGRlY2xhcmluZyByZWR1Y2Vycy5cbiAgICovXG4gIHJlZHVjZXJzPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgaWYgdGhpcyBpcyBncm91cGVkIHdpdGhpbiBzdWIgZm9sZGVyc1xuICAgKi9cbiAgZ3JvdXA/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgaWYgdGhpcyBpcyBncm91cGVkIHdpdGhpbiBhIGZlYXR1cmVcbiAgICovXG4gIGZlYXR1cmU/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgaWYgYXBpIHN1Y2Nlc3MgYW5kIGZhaWx1cmUgYWN0aW9uc1xuICAgKiBzaG91bGQgYmUgYWRkZWQgdG8gdGhlIHJlZHVjZXIuXG4gICAqL1xuICBhcGk/OiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgd2hldGhlciB0byB1c2UgY3JlYXRvciBmdW5jdGlvbnMgZm9yXG4gICAqIGhhbmRsaW5nIGFjdGlvbnMgYW5kIHJlZHVjZXJzLlxuICAgKi9cbiAgY3JlYXRvcnM/OiBib29sZWFuO1xufVxuIl19 |
@@ -30,4 +30,10 @@ { | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"default": false | ||
}, | ||
"module": { | ||
@@ -34,0 +40,0 @@ "type": "string", |
@@ -17,2 +17,5 @@ (function (factory) { | ||
options.path = schematics_core_1.getProjectPath(host, options); | ||
if (!options.skipTests && options.skipTest) { | ||
options.skipTests = options.skipTest; | ||
} | ||
const parsedPath = schematics_core_1.parseName(options.path, options.name || ''); | ||
@@ -22,3 +25,3 @@ options.name = parsedPath.name; | ||
const templateSource = schematics_1.apply(schematics_1.url('./files'), [ | ||
options.skipTest | ||
options.skipTests | ||
? schematics_1.filter(path => !path.endsWith('.spec.ts.template')) | ||
@@ -40,2 +43,2 @@ : schematics_1.noop(), | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL3NjaGVtYXRpY3Mvc3JjL3NlbGVjdG9yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0lBQUEsMkRBYW9DO0lBQ3BDLHNFQUkwQztJQUcxQyxtQkFBd0IsT0FBd0I7UUFDOUMsT0FBTyxDQUFDLElBQVUsRUFBRSxPQUF5QixFQUFFLEVBQUU7WUFDL0MsT0FBTyxDQUFDLElBQUksR0FBRyxnQ0FBYyxDQUFDLElBQUksRUFBRSxPQUFPLENBQUMsQ0FBQztZQUU3QyxNQUFNLFVBQVUsR0FBRywyQkFBUyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUksSUFBSSxFQUFFLENBQUMsQ0FBQztZQUMvRCxPQUFPLENBQUMsSUFBSSxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUM7WUFDL0IsT0FBTyxDQUFDLElBQUksR0FBRyxVQUFVLENBQUMsSUFBSSxDQUFDO1lBRS9CLE1BQU0sY0FBYyxHQUFHLGtCQUFLLENBQUMsZ0JBQUcsQ0FBQyxTQUFTLENBQUMsRUFBRTtnQkFDM0MsT0FBTyxDQUFDLFFBQVE7b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Gl2ZVBhdGgob3B0aW9uczogU2VsZWN0b3JPcHRpb25zKSB7XG4gIGlmIChvcHRpb25zLmZlYXR1cmUpIHtcbiAgICByZXR1cm4gc3RyaW5nVXRpbHMuZmVhdHVyZVBhdGgoXG4gICAgICBvcHRpb25zLmdyb3VwLFxuICAgICAgb3B0aW9ucy5mbGF0LFxuICAgICAgJ3JlZHVjZXJzJyxcbiAgICAgIHN0cmluZ1V0aWxzLmRhc2hlcml6ZShvcHRpb25zLm5hbWUpXG4gICAgKTtcbiAgfVxuXG4gIHJldHVybiAnJztcbn1cbiJdfQ== |
@@ -21,5 +21,10 @@ /// <amd-module name="@ngrx/schematics/src/selector/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Specifies if this is grouped within a feature | ||
@@ -26,0 +31,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9zY2hlbWF0aWNzL3NyYy9zZWxlY3Rvci9zY2hlbWEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgU2NoZW1hIHtcbiAgLyoqXG4gICAqIFRoZSBuYW1lIG9mIHRoZSBzZWxlY3Rvci5cbiAgICovXG4gIG5hbWU6IHN0cmluZztcblxuICAvKipcbiAgICogVGhlIHBhdGggdG8gY3JlYXRlIHRoZSBzZWxlY3Rvci5cbiAgICovXG4gIHBhdGg/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFRoZSBuYW1lIG9mIHRoZSBwcm9qZWN0LlxuICAgKi9c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0byBpbmRpY2F0ZSBpZiBhIGRpciBpcyBjcmVhdGVkLlxuICAgKi9cbiAgZmxhdD86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFdoZW4gdHJ1ZSwgZG9lcyBub3QgY3JlYXRlIHRlc3QgZmlsZXMuXG4gICAqIEBkZXByZWNhdGVkIFVzZSBza2lwVGVzdHMgaW5zdGVhZFxuICAgKi9cbiAgc2tpcFRlc3Q/OiBib29sZWFuO1xuICAvKipcbiAgICogV2hlbiB0cnVlLCBkb2VzIG5vdCBjcmVhdGUgdGVzdCBmaWxlcy5cbiAgICovXG4gIHNraXBUZXN0cz86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiB0aGlzIGlzIGdyb3VwZWQgd2l0aGluIGEgZmVhdHVyZVxuICAgKi9cbiAgZmVhdHVyZT86IGJvb2xlYW47XG5cbiAgLyoqXG4gICAqIFNwZWNpZmllcyBpZiB0aGlzIGlzIGdyb3VwZWQgd2l0aGluIGFuICdzZWxlY3RvcnMnIGZvbGRlclxuICAgKi9cbiAgZ3JvdXA/OiBib29sZWFuO1xufVxuIl19 |
@@ -29,4 +29,10 @@ { | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"default": false | ||
}, | ||
"flat": { | ||
@@ -33,0 +39,0 @@ "type": "boolean", |
@@ -21,5 +21,10 @@ /// <amd-module name="@ngrx/schematics/src/store/schema" /> | ||
* When true, does not create test files. | ||
* @deprecated Use skipTests instead | ||
*/ | ||
skipTest?: boolean; | ||
/** | ||
* When true, does not create test files. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Allows specification of the declaring module. | ||
@@ -26,0 +31,0 @@ */ |
@@ -13,2 +13,2 @@ (function (factory) { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZ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gZG9lcyBub3QgY3JlYXRlIHRlc3QgZmlsZXMuXG4gICAqL1xuICBza2lwVGVzdHM/OiBib29sZWFuO1xuICAvKipcbiAgICogQWxsb3dzIHNwZWNpZmljYXRpb24gb2YgdGhlIGRlY2xhcmluZyBtb2R1bGUuXG4gICAqL1xuICBtb2R1bGU/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgdGhlIGRpciBmb3IgdGhlIHN0YXRlIGZvbGRlclxuICAgKi9cblxuICBzdGF0ZVBhdGg/OiBzdHJpbmc7XG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgd2hldGhlciB0aGlzIGlzIHRoZSByb290IHN0YXRlIG9yIGZlYXR1cmUgc3RhdGVcbiAgICovXG5cbiAgcm9vdD86IGJvb2xlYW47XG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgdGhlIGludGVyZmFjZSBmb3IgdGhlIHN0YXRlXG4gICAqL1xuICBzdGF0ZUludGVyZmFjZT86IHN0cmluZztcbiAgLyoqXG4gICAqIFNldHVwIHN0YXRlIG1hbmFnZW1lbnQgd2l0aG91dCByZWdpc3RlcmluZyBpbml0aWFsIHJlZHVjZXJzLlxuICAgKi9cbiAgbWluaW1hbD86IGJvb2xlYW47XG59XG4iXX0= |
@@ -34,2 +34,8 @@ { | ||
"type": "boolean", | ||
"description": "When true, does not create test files.", | ||
"x-deprecated": "Use skipTests instead.", | ||
"default": false | ||
}, | ||
"skipTests": { | ||
"type": "boolean", | ||
"default": false, | ||
@@ -36,0 +42,0 @@ "description": "When true, does not create test files." |
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
439379
119
4285