@ama-terasu/schematics 8.0.0-alpha.0 → 8.0.0-alpha.6
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": "@ama-terasu/schematics",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.6",
|
|
4
4
|
"description": "Schematics for Ama-terasu",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"nx": "nx",
|
|
@@ -21,10 +21,23 @@
|
|
|
21
21
|
"tslib": "^2.4.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
24
|
+
"@angular-eslint/eslint-plugin": "~15.1.0",
|
|
25
|
+
"@nrwl/jest": "^15.3.3",
|
|
26
|
+
"@o3r/build-helpers": "^8.0.0-alpha.6",
|
|
27
|
+
"@o3r/dev-tools": "^8.0.0-alpha.6",
|
|
28
|
+
"@o3r/eslint-plugin": "^8.0.0-alpha.6",
|
|
29
|
+
"@types/jest": "~28.1.2",
|
|
26
30
|
"@types/node": "^17.0.23",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
32
|
+
"@typescript-eslint/parser": "^5.19.0",
|
|
33
|
+
"eslint": "^8.22.0",
|
|
34
|
+
"eslint-import-resolver-node": "^0.3.4",
|
|
35
|
+
"eslint-plugin-jest": "^26.1.4",
|
|
36
|
+
"eslint-plugin-jsdoc": "^39.3.6",
|
|
37
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
38
|
+
"jest": "~28.1.1",
|
|
27
39
|
"nx": "^15.3.3",
|
|
40
|
+
"ts-jest": "^28.0.5",
|
|
28
41
|
"typescript": "~4.8.4"
|
|
29
42
|
},
|
|
30
43
|
"main": "./src/public_api.js",
|
|
@@ -32,34 +45,22 @@
|
|
|
32
45
|
"peerDependencies": {
|
|
33
46
|
"@types/request-promise-native": "1.0.18",
|
|
34
47
|
"azure-devops-node-api": "11.2.0",
|
|
35
|
-
"chalk": "4.1.2",
|
|
36
|
-
"commander": "9.4.1",
|
|
37
48
|
"comment-json": "4.2.3",
|
|
38
|
-
"form-data": "4.0.0",
|
|
39
|
-
"fs-extra": "7.0.1",
|
|
40
49
|
"jasmine-spec-reporter": "5.0.2",
|
|
41
|
-
"minimatch": "5.1.2",
|
|
42
50
|
"request": "2.88.2",
|
|
43
51
|
"request-promise-native": "1.0.9",
|
|
44
|
-
"winston": "3.8.2",
|
|
45
|
-
"@o3r/eslint-plugin": "8.0.0-alpha.0",
|
|
46
52
|
"@typescript-eslint/experimental-utils": "5.45.1",
|
|
47
53
|
"@angular-eslint/utils": "15.1.0",
|
|
48
54
|
"jest-junit": "14.0.1",
|
|
49
55
|
"@types/fs-extra": "9.0.13",
|
|
50
|
-
"@types/glob": "7.2.0",
|
|
51
56
|
"@types/gulp": "4.0.10",
|
|
52
57
|
"@types/gulp-cached": "0.0.32",
|
|
53
|
-
"@types/jasmine": "3.10.7",
|
|
54
58
|
"@types/request": "2.48.8",
|
|
55
59
|
"@types/rimraf": "3.0.2",
|
|
56
60
|
"@types/semver": "7.3.13",
|
|
57
61
|
"gulp": "4.0.2",
|
|
58
62
|
"gulp-cached": "1.1.1",
|
|
59
|
-
"gulp-typescript": "6.0.0-alpha.1"
|
|
60
|
-
"node-fetch": "2.6.7",
|
|
61
|
-
"type-fest": "2.19.0",
|
|
62
|
-
"util": "0.10.3"
|
|
63
|
+
"gulp-typescript": "6.0.0-alpha.1"
|
|
63
64
|
},
|
|
64
65
|
"contributors": [
|
|
65
66
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { CreateModuleSchematicsSchema } from './schema';
|
|
3
|
-
/**
|
|
4
|
-
* Generate a new Amaterasu module
|
|
5
|
-
*
|
|
6
|
-
* @param options
|
|
7
|
-
*/
|
|
8
|
-
export declare function generateAmaterasuModule(options: CreateModuleSchematicsSchema): Rule;
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { CreateModuleSchematicsSchema } from './schema';
|
|
3
|
+
/**
|
|
4
|
+
* Generate a new Amaterasu module
|
|
5
|
+
*
|
|
6
|
+
* @param options
|
|
7
|
+
*/
|
|
8
|
+
export declare function generateAmaterasuModule(options: CreateModuleSchematicsSchema): Rule;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateAmaterasuModule = void 0;
|
|
4
|
-
const core_1 = require("@angular-devkit/core");
|
|
5
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const path = require("node:path");
|
|
7
|
-
/**
|
|
8
|
-
* Generate a new Amaterasu module
|
|
9
|
-
*
|
|
10
|
-
* @param options
|
|
11
|
-
*/
|
|
12
|
-
function generateAmaterasuModule(options) {
|
|
13
|
-
const { version } = require(path.resolve(__dirname, '..', '..', 'package.json'));
|
|
14
|
-
return (tree, context) => {
|
|
15
|
-
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./templates'), [
|
|
16
|
-
(0, schematics_1.template)({
|
|
17
|
-
...core_1.strings,
|
|
18
|
-
...options,
|
|
19
|
-
version
|
|
20
|
-
}),
|
|
21
|
-
(0, schematics_1.renameTemplateFiles)(),
|
|
22
|
-
(0, schematics_1.move)(path.join(options.basePath, options.name))
|
|
23
|
-
]);
|
|
24
|
-
const rule = (0, schematics_1.mergeWith)(templateSource, schematics_1.MergeStrategy.Overwrite);
|
|
25
|
-
return rule(tree, context);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
exports.generateAmaterasuModule = generateAmaterasuModule;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateAmaterasuModule = void 0;
|
|
4
|
+
const core_1 = require("@angular-devkit/core");
|
|
5
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const path = require("node:path");
|
|
7
|
+
/**
|
|
8
|
+
* Generate a new Amaterasu module
|
|
9
|
+
*
|
|
10
|
+
* @param options
|
|
11
|
+
*/
|
|
12
|
+
function generateAmaterasuModule(options) {
|
|
13
|
+
const { version } = require(path.resolve(__dirname, '..', '..', 'package.json'));
|
|
14
|
+
return (tree, context) => {
|
|
15
|
+
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./templates'), [
|
|
16
|
+
(0, schematics_1.template)({
|
|
17
|
+
...core_1.strings,
|
|
18
|
+
...options,
|
|
19
|
+
version
|
|
20
|
+
}),
|
|
21
|
+
(0, schematics_1.renameTemplateFiles)(),
|
|
22
|
+
(0, schematics_1.move)(path.join(options.basePath, options.name))
|
|
23
|
+
]);
|
|
24
|
+
const rule = (0, schematics_1.mergeWith)(templateSource, schematics_1.MergeStrategy.Overwrite);
|
|
25
|
+
return rule(tree, context);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.generateAmaterasuModule = generateAmaterasuModule;
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { JsonObject } from '@angular-devkit/core';
|
|
2
|
-
export interface CreateModuleSchematicsSchema extends JsonObject {
|
|
3
|
-
/** Project name */
|
|
4
|
-
name: string;
|
|
5
|
-
/** Path where generate the repository */
|
|
6
|
-
basePath: string;
|
|
7
|
-
}
|
|
1
|
+
import type { JsonObject } from '@angular-devkit/core';
|
|
2
|
+
export interface CreateModuleSchematicsSchema extends JsonObject {
|
|
3
|
+
/** Project name */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Path where generate the repository */
|
|
6
|
+
basePath: string;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=schema.js.map
|
package/src/index.spec.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// TODO be removed as soon as we have one test in this package
|
|
3
|
-
it('should be removed as soon as we have one test in this package', () => {
|
|
4
|
-
return expect(true).toBe(true);
|
|
5
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
// TODO be removed as soon as we have one test in this package
|
|
3
|
+
it('should be removed as soon as we have one test in this package', () => {
|
|
4
|
+
return expect(true).toBe(true);
|
|
5
|
+
});
|
|
6
6
|
//# sourceMappingURL=index.spec.js.map
|
package/src/public_api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './create-module/index';
|
|
1
|
+
export * from './create-module/index';
|
|
2
2
|
//# sourceMappingURL=public_api.d.ts.map
|
package/src/public_api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
__exportStar(require("./create-module/index"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
__exportStar(require("./create-module/index"), exports);
|
|
4
4
|
//# sourceMappingURL=public_api.js.map
|