ngx-essentials-schematics 0.0.4 → 0.0.5
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 +3 -1
- package/src/ngrx/store/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-essentials-schematics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A collection of Angular schematics for essential functionalities.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@angular-devkit/core": "^20.3.13",
|
|
26
26
|
"@angular-devkit/schematics": "^20.3.13",
|
|
27
|
+
"pluralize": "^8.0.0",
|
|
27
28
|
"typescript": "~5.9.2"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/jasmine": "~5.1.0",
|
|
31
32
|
"@types/node": "^20.17.19",
|
|
33
|
+
"@types/pluralize": "^0.0.33",
|
|
32
34
|
"copyfiles": "^2.4.1",
|
|
33
35
|
"jasmine": "^5.0.0"
|
|
34
36
|
}
|
package/src/ngrx/store/index.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.signalStore = signalStore;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const pluralize = require("pluralize");
|
|
6
7
|
/**
|
|
7
8
|
* Genera un Signal Store profesional para Angular 20
|
|
8
9
|
* @param {SchemaOptions} options - Opciones del esquema
|
|
@@ -24,7 +25,9 @@ function signalStore(options) {
|
|
|
24
25
|
tree.create(indexPath, exportLine);
|
|
25
26
|
}
|
|
26
27
|
const templateEntitySource = (0, schematics_1.apply)((0, schematics_1.url)("./files/entity"), [
|
|
27
|
-
(0, schematics_1.applyTemplates)(Object.assign(Object.assign({}, core_1.strings), options))
|
|
28
|
+
(0, schematics_1.applyTemplates)(Object.assign(Object.assign(Object.assign({}, core_1.strings), options), { pluralize: (word) => {
|
|
29
|
+
return pluralize(word);
|
|
30
|
+
} })),
|
|
28
31
|
(0, schematics_1.move)(defaultPath + "/common/entity"),
|
|
29
32
|
]);
|
|
30
33
|
const templateFormSource = (0, schematics_1.apply)((0, schematics_1.url)("./files/form"), [
|