1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../modules/schematics/src/feature/index.ts"],"names":[],"mappings":";;AAAA,yDAMoC;AAIpC,mBAAyB,OAAuB;IAC9C,OAAO,UAAC,IAAU,EAAE,OAAyB;QAC3C,OAAO,IAAA,kBAAK,EACV,CAAC,OAAO,CAAC,MAAM;YACb,CAAC,CAAC;gBACE,IAAA,sBAAS,EAAC,QAAQ,EAAE;oBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,OAAO,EAAE,OAAO,CAAC,OAAO;oBACxB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,OAAO,EAAE,IAAI;iBACd,CAAC;aACH;YACH,CAAC,CAAC;gBACE,IAAA,sBAAS,EAAC,QAAQ,EAAE;oBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,OAAO,EAAE,OAAO,CAAC,OAAO;oBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,GAAG,EAAE,OAAO,CAAC,GAAG;oBAChB,MAAM,EAAE,OAAO,CAAC,MAAM;iBACvB,CAAC;gBACF,IAAA,sBAAS,EAAC,SAAS,EAAE;oBACnB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,OAAO,EAAE,OAAO,CAAC,OAAO;oBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,OAAO,EAAE,IAAI;oBACb,GAAG,EAAE,OAAO,CAAC,GAAG;oBAChB,MAAM,EAAE,OAAO,CAAC,MAAM;iBACvB,CAAC;gBACF,IAAA,sBAAS,EAAC,UAAU,EAAE;oBACpB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,OAAO,EAAE,OAAO,CAAC,OAAO;oBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,OAAO,EAAE,IAAI;iBACd,CAAC;aACH,CACJ,CAAC,MAAM,CAAC;YACP,IAAA,sBAAS,EAAC,QAAQ,EAAE;gBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,OAAO,EAAE,IAAI;gBACb,GAAG,EAAE,OAAO,CAAC,GAAG;gBAChB,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB,CAAC;SACH,CAAC,CACH,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC;AAnED,4BAmEC","sourcesContent":["import {\n chain,\n Rule,\n schematic,\n SchematicContext,\n Tree,\n} from '@angular-devkit/schematics';\n\nimport { Schema as FeatureOptions } from './schema';\n\nexport default function (options: FeatureOptions): Rule {\n return (host: Tree, context: SchematicContext) => {\n return chain(\n (options.entity\n ? [\n schematic('entity', {\n name: options.name,\n path: options.path,\n project: options.project,\n flat: options.flat,\n skipTests: options.skipTests,\n module: options.module,\n reducers: options.reducers,\n group: options.group,\n feature: true,\n }),\n ]\n : [\n schematic('action', {\n flat: options.flat,\n group: options.group,\n name: options.name,\n path: options.path,\n project: options.project,\n skipTests: options.skipTests,\n api: options.api,\n prefix: options.prefix,\n }),\n schematic('reducer', {\n flat: options.flat,\n group: options.group,\n module: options.module,\n name: options.name,\n path: options.path,\n project: options.project,\n skipTests: options.skipTests,\n reducers: options.reducers,\n feature: true,\n api: options.api,\n prefix: options.prefix,\n }),\n schematic('selector', {\n flat: options.flat,\n group: options.group,\n name: options.name,\n path: options.path,\n project: options.project,\n skipTests: options.skipTests,\n feature: true,\n }),\n ]\n ).concat([\n schematic('effect', {\n flat: options.flat,\n group: options.group,\n module: options.module,\n name: options.name,\n path: options.path,\n project: options.project,\n skipTests: options.skipTests,\n feature: true,\n api: options.api,\n prefix: options.prefix,\n }),\n ])\n )(host, context);\n };\n}\n"]} |