UNPKG

2.67 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var schematics_1 = require("@angular-devkit/schematics");
4function default_1(options) {
5 return function (host, context) {
6 return (0, schematics_1.chain)((options.entity
7 ? [
8 (0, schematics_1.schematic)('entity', {
9 name: options.name,
10 path: options.path,
11 project: options.project,
12 flat: options.flat,
13 skipTests: options.skipTests,
14 module: options.module,
15 reducers: options.reducers,
16 group: options.group,
17 feature: true,
18 }),
19 ]
20 : [
21 (0, schematics_1.schematic)('action', {
22 flat: options.flat,
23 group: options.group,
24 name: options.name,
25 path: options.path,
26 project: options.project,
27 skipTests: options.skipTests,
28 api: options.api,
29 prefix: options.prefix,
30 }),
31 (0, schematics_1.schematic)('reducer', {
32 flat: options.flat,
33 group: options.group,
34 module: options.module,
35 name: options.name,
36 path: options.path,
37 project: options.project,
38 skipTests: options.skipTests,
39 reducers: options.reducers,
40 feature: true,
41 api: options.api,
42 prefix: options.prefix,
43 }),
44 (0, schematics_1.schematic)('selector', {
45 flat: options.flat,
46 group: options.group,
47 name: options.name,
48 path: options.path,
49 project: options.project,
50 skipTests: options.skipTests,
51 feature: true,
52 }),
53 ]).concat([
54 (0, schematics_1.schematic)('effect', {
55 flat: options.flat,
56 group: options.group,
57 module: options.module,
58 name: options.name,
59 path: options.path,
60 project: options.project,
61 skipTests: options.skipTests,
62 feature: true,
63 api: options.api,
64 prefix: options.prefix,
65 }),
66 ]))(host, context);
67 };
68}
69exports.default = default_1;
70//# sourceMappingURL=index.js.map
\No newline at end of file