@mckit/schematics 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mckit/schematics",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "A blank schematics",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -55,22 +55,22 @@ function install(_options) {
55
55
  // Replace App Component
56
56
  tree.overwrite('src/app/app.ts', (_a = (0, get_content_by_file_1.getContentByFile)(__dirname, 'app.ts.template')) !== null && _a !== void 0 ? _a : '');
57
57
  // Create Footer Layout
58
- tree.overwrite('src/app/shared/components/footer-layout/footer-layout.component.scss', '');
59
- tree.overwrite('src/app/shared/components/footer-layout/footer-layout.component.html', (_b = (0, get_content_by_file_1.getContentByFile)(__dirname, 'footer-layout.component.html.template')) !== null && _b !== void 0 ? _b : '');
60
- tree.overwrite('src/app/shared/components/footer-layout/footer-layout.component.ts', (_c = (0, get_content_by_file_1.getContentByFile)(__dirname, 'footer-layout.component.ts.template')) !== null && _c !== void 0 ? _c : '');
58
+ tree.create('src/app/shared/components/footer-layout/footer-layout.component.scss', '');
59
+ tree.create('src/app/shared/components/footer-layout/footer-layout.component.html', (_b = (0, get_content_by_file_1.getContentByFile)(__dirname, 'footer-layout.component.html.template')) !== null && _b !== void 0 ? _b : '');
60
+ tree.create('src/app/shared/components/footer-layout/footer-layout.component.ts', (_c = (0, get_content_by_file_1.getContentByFile)(__dirname, 'footer-layout.component.ts.template')) !== null && _c !== void 0 ? _c : '');
61
61
  // Create Tenant form modal
62
- tree.overwrite('src/app/features/tenant/modals/tenant-create-form.service.ts', (_d = (0, get_content_by_file_1.getContentByFile)(__dirname, 'tenant-create-form.service.ts.template')) !== null && _d !== void 0 ? _d : '');
62
+ tree.create('src/app/features/tenant/modals/tenant-create-form.service.ts', (_d = (0, get_content_by_file_1.getContentByFile)(__dirname, 'tenant-create-form.service.ts.template')) !== null && _d !== void 0 ? _d : '');
63
63
  // Create No tenant page
64
- tree.overwrite('src/app/features/tenant/pages/no-tenant-page/no-tenant-page.component.html', (_e = (0, get_content_by_file_1.getContentByFile)(__dirname, 'no-tenant-page.component.html.template')) !== null && _e !== void 0 ? _e : '');
65
- tree.overwrite('src/app/features/tenant/pages/no-tenant-page/no-tenant-page.component.ts', (_f = (0, get_content_by_file_1.getContentByFile)(__dirname, 'no-tenant-page.component.ts.template')) !== null && _f !== void 0 ? _f : '');
64
+ tree.create('src/app/features/tenant/pages/no-tenant-page/no-tenant-page.component.html', (_e = (0, get_content_by_file_1.getContentByFile)(__dirname, 'no-tenant-page.component.html.template')) !== null && _e !== void 0 ? _e : '');
65
+ tree.create('src/app/features/tenant/pages/no-tenant-page/no-tenant-page.component.ts', (_f = (0, get_content_by_file_1.getContentByFile)(__dirname, 'no-tenant-page.component.ts.template')) !== null && _f !== void 0 ? _f : '');
66
66
  // Create Login page
67
- tree.overwrite('src/app/features/auth/pages/sign-in-page/sign-in-page.component.scss', '');
68
- tree.overwrite('src/app/features/auth/pages/sign-in-page/sign-in-page.component.html', (_g = (0, get_content_by_file_1.getContentByFile)(__dirname, 'sign-in-page.component.html.template')) !== null && _g !== void 0 ? _g : '');
69
- tree.overwrite('src/app/features/auth/pages/sign-in-page/sign-in-page.component.ts', (_h = (0, get_content_by_file_1.getContentByFile)(__dirname, 'sign-in-page.component.ts.template')) !== null && _h !== void 0 ? _h : '');
67
+ tree.create('src/app/features/auth/pages/sign-in-page/sign-in-page.component.scss', '');
68
+ tree.create('src/app/features/auth/pages/sign-in-page/sign-in-page.component.html', (_g = (0, get_content_by_file_1.getContentByFile)(__dirname, 'sign-in-page.component.html.template')) !== null && _g !== void 0 ? _g : '');
69
+ tree.create('src/app/features/auth/pages/sign-in-page/sign-in-page.component.ts', (_h = (0, get_content_by_file_1.getContentByFile)(__dirname, 'sign-in-page.component.ts.template')) !== null && _h !== void 0 ? _h : '');
70
70
  // Create Register page
71
- tree.overwrite('src/app/features/auth/pages/sign-up-page/sign-up-page.component.scss', '');
72
- tree.overwrite('src/app/features/auth/pages/sign-up-page/sign-up-page.component.html', (_j = (0, get_content_by_file_1.getContentByFile)(__dirname, 'register-page.component.html.template')) !== null && _j !== void 0 ? _j : '');
73
- tree.overwrite('src/app/features/auth/pages/sign-up-page/sign-up-page.component.ts', (_k = (0, get_content_by_file_1.getContentByFile)(__dirname, 'register-page.component.ts.template')) !== null && _k !== void 0 ? _k : '');
71
+ tree.create('src/app/features/auth/pages/sign-up-page/sign-up-page.component.scss', '');
72
+ tree.create('src/app/features/auth/pages/sign-up-page/sign-up-page.component.html', (_j = (0, get_content_by_file_1.getContentByFile)(__dirname, 'register-page.component.html.template')) !== null && _j !== void 0 ? _j : '');
73
+ tree.create('src/app/features/auth/pages/sign-up-page/sign-up-page.component.ts', (_k = (0, get_content_by_file_1.getContentByFile)(__dirname, 'register-page.component.ts.template')) !== null && _k !== void 0 ? _k : '');
74
74
  // Add Route
75
75
  (0, add_route_1.addRoute)(`{
76
76
  path: 'login',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AA8CA,0BAoEC;AAjHD,qDAAiD;AACjD,iDAA6C;AAC7C,qEAA+D;AAC/D,uEAAiE;AACjE,+DAA0D;AAE1D,SAAS,gBAAgB,CAAC,IAAU,EAAE,QAA0B;IAC9D,MAAM,QAAQ,GAAG,uBAAuB,CAAC;IAEzC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvC,IAAI,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEtD,qCAAqC;IACrC,MAAM,cAAc,GAA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