ngssm-schematics 14.0.0

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.
Files changed (96) hide show
  1. package/README.md +111 -0
  2. package/esm2020/lib/ngssm-schematics.module.mjs +16 -0
  3. package/esm2020/ngssm-schematics.mjs +5 -0
  4. package/esm2020/public-api.mjs +5 -0
  5. package/fesm2015/ngssm-schematics.mjs +27 -0
  6. package/fesm2015/ngssm-schematics.mjs.map +1 -0
  7. package/fesm2020/ngssm-schematics.mjs +27 -0
  8. package/fesm2020/ngssm-schematics.mjs.map +1 -0
  9. package/index.d.ts +5 -0
  10. package/lib/ngssm-schematics.module.d.ts +6 -0
  11. package/package.json +43 -0
  12. package/public-api.d.ts +1 -0
  13. package/schematics/action/files/__name@dasherize__.action.ts.template +5 -0
  14. package/schematics/action/index.d.ts +3 -0
  15. package/schematics/action/index.js +20 -0
  16. package/schematics/action/index.js.map +1 -0
  17. package/schematics/action/schema.json +28 -0
  18. package/schematics/add-eslint/index.d.ts +2 -0
  19. package/schematics/add-eslint/index.js +69 -0
  20. package/schematics/add-eslint/index.js.map +1 -0
  21. package/schematics/add-eslint/schema.json +11 -0
  22. package/schematics/add-fontawesome/index.d.ts +3 -0
  23. package/schematics/add-fontawesome/index.js +59 -0
  24. package/schematics/add-fontawesome/index.js.map +1 -0
  25. package/schematics/add-fontawesome/schema.json +11 -0
  26. package/schematics/add-material/index.d.ts +2 -0
  27. package/schematics/add-material/index.js +30 -0
  28. package/schematics/add-material/index.js.map +1 -0
  29. package/schematics/add-material/schema.json +11 -0
  30. package/schematics/collection.json +62 -0
  31. package/schematics/component/component-options.d.ts +19 -0
  32. package/schematics/component/component-options.js +3 -0
  33. package/schematics/component/component-options.js.map +1 -0
  34. package/schematics/component/files/__name@dasherize__.component.ts.template +27 -0
  35. package/schematics/component/index.d.ts +3 -0
  36. package/schematics/component/index.js +68 -0
  37. package/schematics/component/index.js.map +1 -0
  38. package/schematics/component/schema.json +135 -0
  39. package/schematics/effect/files/__name@dasherize__.effect.ts.template +16 -0
  40. package/schematics/effect/index.d.ts +3 -0
  41. package/schematics/effect/index.js +41 -0
  42. package/schematics/effect/index.js.map +1 -0
  43. package/schematics/effect/schema.json +41 -0
  44. package/schematics/exec-lint/index.d.ts +2 -0
  45. package/schematics/exec-lint/index.js +12 -0
  46. package/schematics/exec-lint/index.js.map +1 -0
  47. package/schematics/exec-lint/schema.json +11 -0
  48. package/schematics/feature-state/files/__name@dasherize__.state.ts.template +22 -0
  49. package/schematics/feature-state/index.d.ts +3 -0
  50. package/schematics/feature-state/index.js +21 -0
  51. package/schematics/feature-state/index.js.map +1 -0
  52. package/schematics/feature-state/schema.json +28 -0
  53. package/schematics/module/files/__name@dasherize__-routing.module.ts.template +10 -0
  54. package/schematics/module/files/__name@dasherize__.module.ts.template +10 -0
  55. package/schematics/module/files/actions/__name@dasherize__-action-type.ts.template +1 -0
  56. package/schematics/module/files/actions/index.ts.template +1 -0
  57. package/schematics/module/files/components/.gitkeep +0 -0
  58. package/schematics/module/files/effects/.gitkeep +0 -0
  59. package/schematics/module/files/guards/.gitkeep +0 -0
  60. package/schematics/module/files/model/.gitkeep +0 -0
  61. package/schematics/module/files/public-api.ts.template +1 -0
  62. package/schematics/module/files/reducers/.gitkeep +0 -0
  63. package/schematics/module/files/services/.gitkeep +0 -0
  64. package/schematics/module/files/state/__name@dasherize__.state.ts.template +22 -0
  65. package/schematics/module/files/state/index.ts.template +1 -0
  66. package/schematics/module/index.d.ts +3 -0
  67. package/schematics/module/index.js +30 -0
  68. package/schematics/module/index.js.map +1 -0
  69. package/schematics/module/module-options.d.ts +4 -0
  70. package/schematics/module/module-options.js +3 -0
  71. package/schematics/module/module-options.js.map +1 -0
  72. package/schematics/module/schema.json +30 -0
  73. package/schematics/ng-add/index.d.ts +3 -0
  74. package/schematics/ng-add/index.js +42 -0
  75. package/schematics/ng-add/index.js.map +1 -0
  76. package/schematics/ng-add/schema.d.ts +8 -0
  77. package/schematics/ng-add/schema.js +3 -0
  78. package/schematics/ng-add/schema.js.map +1 -0
  79. package/schematics/ng-add/schema.json +29 -0
  80. package/schematics/reducer/files/__name@dasherize__.reducer.ts.template +18 -0
  81. package/schematics/reducer/index.d.ts +3 -0
  82. package/schematics/reducer/index.js +41 -0
  83. package/schematics/reducer/index.js.map +1 -0
  84. package/schematics/reducer/schema.json +41 -0
  85. package/schematics/utilities/base-options.d.ts +4 -0
  86. package/schematics/utilities/base-options.js +3 -0
  87. package/schematics/utilities/base-options.js.map +1 -0
  88. package/schematics/utilities/helpers.d.ts +5 -0
  89. package/schematics/utilities/helpers.js +39 -0
  90. package/schematics/utilities/helpers.js.map +1 -0
  91. package/schematics/utilities/index.d.ts +2 -0
  92. package/schematics/utilities/index.js +19 -0
  93. package/schematics/utilities/index.js.map +1 -0
  94. package/schematics/utilities/with-provider-options.d.ts +6 -0
  95. package/schematics/utilities/with-provider-options.js +3 -0
  96. package/schematics/utilities/with-provider-options.js.map +1 -0
package/README.md ADDED
@@ -0,0 +1,111 @@
1
+ # ngssm-schematics
2
+
3
+ This library provides a list of useful schematics to simplify painful tasks.
4
+
5
+ ## ng-add
6
+
7
+ Executed when installing the package with the `ng add` command, this schematics will excute the following schematics:
8
+ - [add-eslint](#add-eslint)
9
+ - [add-fontawesome](#add-fontawesome)
10
+ - [add-material](#add-material)
11
+ - [add-leono](#add-leono)
12
+
13
+ At the end, this schematic executes `ng lint --fix` if *@angular-eslint* has been installed.
14
+
15
+ ## add-eslint
16
+
17
+ Used to install and configure eslint and prettier.
18
+
19
+ - [eslint](https://github.com/angular-eslint/angular-eslint):
20
+ ```
21
+ ng add @angular-eslint/schematics
22
+ ```
23
+ - [eslint-plugin-deprecation](https://github.com/gund/eslint-plugin-deprecation)
24
+ * install packages
25
+
26
+ ```
27
+ npm install eslint-plugin-deprecation --save-dev
28
+ ```
29
+ * update *.eslintrc.json* file
30
+
31
+ ```
32
+ ...
33
+ "plugins": [
34
+ "deprecation"
35
+ ],
36
+ ...
37
+ "rules": {
38
+ "deprecation/deprecation": "error",
39
+ ...
40
+ ```
41
+ - [prettier](https://prettier.io/docs/en/integrating-with-linters.html):
42
+ * install packages
43
+
44
+ ```
45
+ npm install prettier --save-dev
46
+ npm install prettier-eslint eslint-config-prettier eslint-plugin-prettier --save-dev
47
+ ```
48
+
49
+ * add *.prettierrc* file:
50
+
51
+ ```
52
+ {
53
+ "singleQuote": true,
54
+ "trailingComma": "none",
55
+ "endOfLine": "auto",
56
+ "tabWidth": 2,
57
+ "bracketSameLine": true,
58
+ "printWidth": 140
59
+ }
60
+ ```
61
+
62
+ * update *.eslintrc.json* file
63
+
64
+ ```
65
+ ...
66
+ "extends": [
67
+ ...
68
+ "plugin:prettier/recommended"
69
+ ],
70
+ ...
71
+ ```
72
+
73
+ ## add-fontawesome
74
+
75
+ Add *@fortawesome/fontawesome-free* to the project.
76
+
77
+ - install package
78
+ ```
79
+ npm install @fortawesome/fontawesome-free --save
80
+ ```
81
+ - Update *styles.scss* file
82
+ ```
83
+ ...
84
+ @import "@fortawesome/fontawesome-free/css/fontawesome.css";
85
+ @import "@fortawesome/fontawesome-free/css/all.css";
86
+ ...
87
+ ```
88
+
89
+ ## add-material
90
+
91
+ Add *@angular/material* and *@angular/flex-layout* to the project.
92
+
93
+ - [material](https://material.angular.io/)
94
+ ```
95
+ ng add @angular/material
96
+ ```
97
+ - [flex-layout](https://tburleson-layouts-demos.firebaseapp.com/#/docs)
98
+ ```
99
+ npm install @angular/flex-layout --save
100
+ ```
101
+
102
+ ## Schematics associated to the state management
103
+
104
+ | Schematic | Description |
105
+ |---|---|
106
+ | feature-state | Allow creating a state associated to a user feature |
107
+ | component | Creation of a component which derives from **NgSsmComponent** |
108
+ | action | Creation of an action which implements **Action** |
109
+ | reducer | Creation of a reducer which implements **Reducer** |
110
+ | effect | Creation of an effect which implements **Effect** |
111
+ | module | Create a module and all the folders for actions, components, reducers... |
@@ -0,0 +1,16 @@
1
+ import { NgModule } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class NgssmSchematicsModule {
4
+ }
5
+ NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6
+ NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule });
7
+ NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule });
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule, decorators: [{
9
+ type: NgModule,
10
+ args: [{
11
+ declarations: [],
12
+ imports: [],
13
+ exports: []
14
+ }]
15
+ }] });
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdzc20tc2NoZW1hdGljcy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3NzbS1zY2hlbWF0aWNzL3NyYy9saWIvbmdzc20tc2NoZW1hdGljcy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFPekMsTUFBTSxPQUFPLHFCQUFxQjs7a0hBQXJCLHFCQUFxQjttSEFBckIscUJBQXFCO21IQUFyQixxQkFBcUI7MkZBQXJCLHFCQUFxQjtrQkFMakMsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsRUFBRTtvQkFDaEIsT0FBTyxFQUFFLEVBQUU7b0JBQ1gsT0FBTyxFQUFFLEVBQUU7aUJBQ1oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtdLFxuICBpbXBvcnRzOiBbXSxcbiAgZXhwb3J0czogW11cbn0pXG5leHBvcnQgY2xhc3MgTmdzc21TY2hlbWF0aWNzTW9kdWxlIHt9XG4iXX0=
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdzc20tc2NoZW1hdGljcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25nc3NtLXNjaGVtYXRpY3Mvc3JjL25nc3NtLXNjaGVtYXRpY3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Public API Surface of ngssm-schematics
3
+ */
4
+ export * from './lib/ngssm-schematics.module';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25nc3NtLXNjaGVtYXRpY3Mvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3NzbS1zY2hlbWF0aWNzXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmdzc20tc2NoZW1hdGljcy5tb2R1bGUnO1xuIl19
@@ -0,0 +1,27 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NgModule } from '@angular/core';
3
+
4
+ class NgssmSchematicsModule {
5
+ }
6
+ NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule });
8
+ NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule, decorators: [{
10
+ type: NgModule,
11
+ args: [{
12
+ declarations: [],
13
+ imports: [],
14
+ exports: []
15
+ }]
16
+ }] });
17
+
18
+ /*
19
+ * Public API Surface of ngssm-schematics
20
+ */
21
+
22
+ /**
23
+ * Generated bundle index. Do not edit.
24
+ */
25
+
26
+ export { NgssmSchematicsModule };
27
+ //# sourceMappingURL=ngssm-schematics.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngssm-schematics.mjs","sources":["../../../projects/ngssm-schematics/src/lib/ngssm-schematics.module.ts","../../../projects/ngssm-schematics/src/public-api.ts","../../../projects/ngssm-schematics/src/ngssm-schematics.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: []\n})\nexport class NgssmSchematicsModule {}\n","/*\n * Public API Surface of ngssm-schematics\n */\n\nexport * from './lib/ngssm-schematics.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAOa,qBAAqB,CAAA;;kHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAArB,qBAAqB,EAAA,CAAA,CAAA;mHAArB,qBAAqB,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;iBACZ,CAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,27 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NgModule } from '@angular/core';
3
+
4
+ class NgssmSchematicsModule {
5
+ }
6
+ NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule });
8
+ NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: NgssmSchematicsModule, decorators: [{
10
+ type: NgModule,
11
+ args: [{
12
+ declarations: [],
13
+ imports: [],
14
+ exports: []
15
+ }]
16
+ }] });
17
+
18
+ /*
19
+ * Public API Surface of ngssm-schematics
20
+ */
21
+
22
+ /**
23
+ * Generated bundle index. Do not edit.
24
+ */
25
+
26
+ export { NgssmSchematicsModule };
27
+ //# sourceMappingURL=ngssm-schematics.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngssm-schematics.mjs","sources":["../../../projects/ngssm-schematics/src/lib/ngssm-schematics.module.ts","../../../projects/ngssm-schematics/src/public-api.ts","../../../projects/ngssm-schematics/src/ngssm-schematics.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: []\n})\nexport class NgssmSchematicsModule {}\n","/*\n * Public API Surface of ngssm-schematics\n */\n\nexport * from './lib/ngssm-schematics.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAOa,qBAAqB,CAAA;;kHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAArB,qBAAqB,EAAA,CAAA,CAAA;mHAArB,qBAAqB,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA,CAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngssm-schematics" />
5
+ export * from './public-api';
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NgssmSchematicsModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgssmSchematicsModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgssmSchematicsModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgssmSchematicsModule>;
6
+ }
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "ngssm-schematics",
3
+ "version": "14.0.0",
4
+ "description": "NgSsm - Some schematics to initialize application and for ngssm-store.",
5
+ "author": "Lion Marc",
6
+ "license": "MIT",
7
+ "peerDependencies": {
8
+ "@angular/common": "^14.2.0",
9
+ "@angular/core": "^14.2.0"
10
+ },
11
+ "dependencies": {
12
+ "tslib": "^2.3.0"
13
+ },
14
+ "schematics": "./schematics/collection.json",
15
+ "ng-add": {
16
+ "save": "devDependencies"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/LionMarc/ng-simple-state-management",
21
+ "directory": "projects/ngssm-schematics"
22
+ },
23
+ "module": "fesm2015/ngssm-schematics.mjs",
24
+ "es2020": "fesm2020/ngssm-schematics.mjs",
25
+ "esm2020": "esm2020/ngssm-schematics.mjs",
26
+ "fesm2020": "fesm2020/ngssm-schematics.mjs",
27
+ "fesm2015": "fesm2015/ngssm-schematics.mjs",
28
+ "typings": "index.d.ts",
29
+ "exports": {
30
+ "./package.json": {
31
+ "default": "./package.json"
32
+ },
33
+ ".": {
34
+ "types": "./index.d.ts",
35
+ "esm2020": "./esm2020/ngssm-schematics.mjs",
36
+ "es2020": "./fesm2020/ngssm-schematics.mjs",
37
+ "es2015": "./fesm2015/ngssm-schematics.mjs",
38
+ "node": "./fesm2015/ngssm-schematics.mjs",
39
+ "default": "./fesm2020/ngssm-schematics.mjs"
40
+ }
41
+ },
42
+ "sideEffects": false
43
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/ngssm-schematics.module';
@@ -0,0 +1,5 @@
1
+ import { Action } from 'ngssm-store';
2
+
3
+ export class <%= classify(name) %>Action implements Action {
4
+ public readonly type:string = '<%= name %>';
5
+ }
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { BaseOptions } from '../utilities';
3
+ export declare function action(options: BaseOptions): Rule;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.action = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const core_1 = require("@angular-devkit/core");
6
+ function action(options) {
7
+ return () => {
8
+ const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./files'), [
9
+ (0, schematics_1.applyTemplates)({
10
+ classify: core_1.strings.classify,
11
+ dasherize: core_1.strings.dasherize,
12
+ name: options.name
13
+ }),
14
+ (0, schematics_1.move)((0, core_1.normalize)(options.path))
15
+ ]);
16
+ return (0, schematics_1.chain)([(0, schematics_1.mergeWith)(templateSource)]);
17
+ };
18
+ }
19
+ exports.action = action;
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngssm-schematics/schematics/action/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsG;AACtG,+CAA0D;AAI1D,SAAgB,MAAM,CAAC,OAAoB;IACzC,OAAO,GAAG,EAAE;QACV,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;YAC3C,IAAA,2BAAc,EAAC;gBACb,QAAQ,EAAE,cAAO,CAAC,QAAQ;gBAC1B,SAAS,EAAE,cAAO,CAAC,SAAS;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;aACnB,CAAC;YACF,IAAA,iBAAI,EAAC,IAAA,gBAAS,EAAC,OAAO,CAAC,IAAc,CAAC,CAAC;SACxC,CAAC,CAAC;QAEH,OAAO,IAAA,kBAAK,EAAC,CAAC,IAAA,sBAAS,EAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC;AACJ,CAAC;AAbD,wBAaC"}
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsAction",
4
+ "title": "Store action schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "description": "The name of the action.",
9
+ "type": "string",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ }
14
+ },
15
+ "path": {
16
+ "type": "string",
17
+ "format": "path",
18
+ "description": "The path to create the simple schematic within.",
19
+ "visible": false,
20
+ "$default": {
21
+ "$source": "workingDirectory"
22
+ }
23
+ }
24
+ },
25
+ "required": [
26
+ "name"
27
+ ]
28
+ }
@@ -0,0 +1,2 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export default function (): Rule;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
5
+ function addPrettierDependencies() {
6
+ return (host, context) => {
7
+ const dependencies = [
8
+ { type: dependencies_1.NodeDependencyType.Dev, version: '^2.7.1', name: 'prettier' },
9
+ { type: dependencies_1.NodeDependencyType.Dev, version: '^15.0.1', name: 'prettier-eslint' },
10
+ { type: dependencies_1.NodeDependencyType.Dev, version: '^8.5.0', name: 'eslint-config-prettier' },
11
+ { type: dependencies_1.NodeDependencyType.Dev, version: '^4.2.1', name: 'eslint-plugin-prettier' },
12
+ { type: dependencies_1.NodeDependencyType.Dev, version: '^1.3.2', name: 'eslint-plugin-deprecation' }
13
+ ];
14
+ dependencies.forEach((dependency) => {
15
+ (0, dependencies_1.addPackageJsonDependency)(host, dependency);
16
+ context.logger.log('info', `"${dependency.name}" added into ${dependency.type}`);
17
+ });
18
+ return host;
19
+ };
20
+ }
21
+ function updateEslintRc() {
22
+ return (tree, context) => {
23
+ var _a;
24
+ const path = '.eslintrc.json';
25
+ context.logger.log('info', `Updating ${path}`);
26
+ if (tree.exists(path)) {
27
+ const content = tree.read(path);
28
+ const config = JSON.parse((_a = content === null || content === void 0 ? void 0 : content.toString()) !== null && _a !== void 0 ? _a : '{}');
29
+ context.logger.log('info', `Updating ${path}`, config);
30
+ config.plugins = ['deprecation'];
31
+ config.overrides[0].rules['deprecation/deprecation'] = 'error';
32
+ config.overrides[0].extends.push('plugin:prettier/recommended');
33
+ tree.overwrite(path, JSON.stringify(config, null, 2));
34
+ }
35
+ return tree;
36
+ };
37
+ }
38
+ function createPrettierRc() {
39
+ return (tree, context) => {
40
+ const path = '.prettierrc';
41
+ context.logger.log('info', `Creating ${path}`);
42
+ if (!tree.exists(path)) {
43
+ const config = {
44
+ singleQuote: true,
45
+ trailingComma: 'none',
46
+ endOfLine: 'auto',
47
+ tabWidth: 2,
48
+ bracketSameLine: true,
49
+ printWidth: 140
50
+ };
51
+ tree.create(path, JSON.stringify(config, null, 2));
52
+ }
53
+ return tree;
54
+ };
55
+ }
56
+ function default_1() {
57
+ return (_, context) => {
58
+ context.logger.info('Starting installation and configuration of eslint and prettier');
59
+ return (0, schematics_1.chain)([
60
+ (0, schematics_1.externalSchematic)('@angular-eslint/schematics', 'ng-add', {}),
61
+ addPrettierDependencies(),
62
+ updateEslintRc(),
63
+ createPrettierRc(),
64
+ (__, ___) => context.logger.info('✔️ Eslint and prettier installed and configured')
65
+ ]);
66
+ };
67
+ }
68
+ exports.default = default_1;
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngssm-schematics/schematics/add-eslint/index.ts"],"names":[],"mappings":";;AAAA,2DAAoG;AACpG,2EAAwH;AAExH,SAAS,uBAAuB;IAC9B,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,YAAY,GAAqB;YACrC,EAAE,IAAI,EAAE,iCAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE;YACrE,EAAE,IAAI,EAAE,iCAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE;YAC7E,EAAE,IAAI,EAAE,iCAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACnF,EAAE,IAAI,EAAE,iCAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EA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,0 +1,11 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsAddEslint",
4
+ "title": "Eslint and prettier installation",
5
+ "type": "object",
6
+ "description": "Install and configure eslint and prettier",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ },
10
+ "required": []
11
+ }
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export declare function installDependencies(): Rule;
3
+ export default function (): Rule;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.installDependencies = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
6
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
7
+ function addDependencies() {
8
+ return (host, context) => {
9
+ const dependencies = [{ type: dependencies_1.NodeDependencyType.Default, version: '^6.1.2', name: '@fortawesome/fontawesome-free' }];
10
+ dependencies.forEach((dependency) => {
11
+ (0, dependencies_1.addPackageJsonDependency)(host, dependency);
12
+ context.logger.log('info', `"${dependency.name}" added into ${dependency.type}`);
13
+ });
14
+ return host;
15
+ };
16
+ }
17
+ function installDependencies() {
18
+ return (tree, context) => {
19
+ context.addTask(new tasks_1.NodePackageInstallTask());
20
+ return tree;
21
+ };
22
+ }
23
+ exports.installDependencies = installDependencies;
24
+ function updateStyles() {
25
+ return (tree, context) => {
26
+ var _a, _b;
27
+ const path = 'src/styles.scss';
28
+ context.logger.info(`Updating ${path}`);
29
+ if (tree.exists(path)) {
30
+ const content = (_b = (_a = tree.read(path)) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '';
31
+ const insertion = `@import "@fortawesome/fontawesome-free/css/fontawesome.css";
32
+ @import "@fortawesome/fontawesome-free/css/all.css";`;
33
+ if (content.includes(insertion)) {
34
+ return tree;
35
+ }
36
+ const recorder = tree.beginUpdate(path);
37
+ recorder.insertLeft(content.length, insertion);
38
+ tree.commitUpdate(recorder);
39
+ context.logger.info(`✔️ File ${path} updated`);
40
+ }
41
+ else {
42
+ context.logger.warn(`❌ File '${path}' not found.`);
43
+ }
44
+ return tree;
45
+ };
46
+ }
47
+ function default_1() {
48
+ return (_, context) => {
49
+ context.logger.info('Starting installation and configuration of @fortawesome/fontawesome-free');
50
+ return (0, schematics_1.chain)([
51
+ addDependencies(),
52
+ installDependencies(),
53
+ updateStyles(),
54
+ (__, ___) => context.logger.info('✔️ @fortawesome/fontawesome-free installed and configured')
55
+ ]);
56
+ };
57
+ }
58
+ exports.default = default_1;
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngssm-schematics/schematics/add-fontawesome/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,2EAAwH;AACxH,4DAA0E;AAE1E,SAAS,eAAe;IACtB,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,YAAY,GAAqB,CAAC,EAAE,IAAI,EAAE,iCAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CAAC;QAExI,YAAY,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YAClC,IAAA,uCAAwB,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YAC3C,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,UAAU,CAAC,IAAI,gBAAgB,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,mBAAmB;IACjC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ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AAC;AACJ,CAAC;AAXD,4BAWC"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsAddFontawesome",
4
+ "title": "@fortawesome/fontawesome-free installation",
5
+ "type": "object",
6
+ "description": "Install and configure @fortawesome/fontawesome-free",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ },
10
+ "required": []
11
+ }
@@ -0,0 +1,2 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export default function (): Rule;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ const dependencies_1 = require("@schematics/angular/utility/dependencies");
5
+ function addFlexLayoutDependency() {
6
+ return (host, context) => {
7
+ const dependencies = [{ type: dependencies_1.NodeDependencyType.Default, version: '>=14.0.0-beta', name: '@angular/flex-layout' }];
8
+ dependencies.forEach((dependency) => {
9
+ (0, dependencies_1.addPackageJsonDependency)(host, dependency);
10
+ context.logger.log('info', `"${dependency.name}" added into ${dependency.type}`);
11
+ });
12
+ return host;
13
+ };
14
+ }
15
+ function default_1() {
16
+ return (_, context) => {
17
+ context.logger.info('Starting installation and configuration of @angular/material and @angular/flex-layout');
18
+ return (0, schematics_1.chain)([
19
+ (0, schematics_1.externalSchematic)('@angular/material', 'ng-add', {
20
+ animations: 'enabled',
21
+ theme: 'custom',
22
+ typography: false
23
+ }),
24
+ addFlexLayoutDependency(),
25
+ (__, ___) => context.logger.info('✔️ @angular/material and @angular/flex-layout installed and configured')
26
+ ]);
27
+ };
28
+ }
29
+ exports.default = default_1;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngssm-schematics/schematics/add-material/index.ts"],"names":[],"mappings":";;AAAA,2DAAoG;AACpG,2EAAwH;AAExH,SAAS,uBAAuB;IAC9B,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,YAAY,GAAqB,CAAC,EAAE,IAAI,EAAE,iCAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC;QAEtI,YAAY,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YAClC,IAAA,uCAAwB,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YAC3C,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,UAAU,CAAC,IAAI,gBAAgB,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED;IACE,OAAO,CAAC,CAAO,EAAE,OAAyB,EAAE,EAAE;QAC5C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,uFAAuF,CAAC,CAAC;QAE7G,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,8BAAiB,EAAC,mBAAmB,EAAE,QAAQ,EAAE;gBAC/C,UAAU,EAAE,SAAS;gBACrB,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE,KAAK;aAClB,CAAC;YACF,uBAAuB,EAAE;YACzB,CAAC,EAAQ,EAAE,GAAqB,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,wEAAwE,CAAC;SACnI,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAdD,4BAcC"}
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsAddMaterial",
4
+ "title": "Material and flex-layout installation",
5
+ "type": "object",
6
+ "description": "Install and configure material and flex-layout",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ },
10
+ "required": []
11
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Used to initialize a new workspace with all the required dependencies.",
6
+ "factory": "./ng-add/index",
7
+ "schema": "./ng-add/schema.json",
8
+ "hidden": true
9
+ },
10
+ "add-eslint": {
11
+ "description": "Used to initialize a new workspace with all the required dependencies.",
12
+ "factory": "./add-eslint/index",
13
+ "schema": "./add-eslint/schema.json"
14
+ },
15
+ "add-material": {
16
+ "description": "Add @angular/material and @angular/flex-layout to the project",
17
+ "factory": "./add-material/index",
18
+ "schema": "./add-material/schema.json"
19
+ },
20
+ "add-fontawesome": {
21
+ "description": "Add @fortawesome/fontawesome-free to the project",
22
+ "factory": "./add-fontawesome/index",
23
+ "schema": "./add-fontawesome/schema.json"
24
+ },
25
+ "exec-lint": {
26
+ "description": "Execute lint when the installation is done",
27
+ "factory": "./exec-lint/index",
28
+ "schema": "./exec-lint/schema.json",
29
+ "hidden": true
30
+ },
31
+ "feature-state": {
32
+ "description": "Generate a feature state.",
33
+ "factory": "./feature-state/index#featureState",
34
+ "schema": "./feature-state/schema.json"
35
+ },
36
+ "component": {
37
+ "description": "Generate a component.",
38
+ "factory": "./component/index#component",
39
+ "schema": "./component/schema.json"
40
+ },
41
+ "reducer": {
42
+ "description": "Generate a reducer.",
43
+ "factory": "./reducer/index#reducer",
44
+ "schema": "./reducer/schema.json"
45
+ },
46
+ "effect": {
47
+ "description": "Generate an effect.",
48
+ "factory": "./effect/index#effect",
49
+ "schema": "./effect/schema.json"
50
+ },
51
+ "action": {
52
+ "description": "Generate an action.",
53
+ "factory": "./action/index#action",
54
+ "schema": "./action/schema.json"
55
+ },
56
+ "module": {
57
+ "description": "Generate a module.",
58
+ "factory": "./module/index",
59
+ "schema": "./module/schema.json"
60
+ }
61
+ }
62
+ }