@ama-terasu/schematics 0.0.44 → 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/collection.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "schematics": {
4
4
  "create-module": {
5
5
  "description": "Create a module for Ama-terasu.",
6
- "factory": "./dist/create-module/index#generateAmaterasuModule",
7
- "schema": "./dist/create-module/schema.json"
6
+ "factory": "./src/create-module/index#generateAmaterasuModule",
7
+ "schema": "./src/create-module/schema.json"
8
8
  }
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,32 +1,118 @@
1
1
  {
2
2
  "name": "@ama-terasu/schematics",
3
- "types": "dist/index.d.ts",
4
- "version": "0.0.44",
3
+ "version": "8.0.0-alpha.6",
5
4
  "description": "Schematics for Ama-terasu",
6
- "main": "dist/index.js",
7
- "license": "MIT",
8
- "packageManager": "yarn@3.0.1",
9
5
  "scripts": {
10
- "build": "tsc && copyfiles src/create-module/schema.json ./dist --up 1 && copyfiles 'src/create-module/templates/**' ./dist --up 1"
6
+ "nx": "nx",
7
+ "ng": "yarn nx",
8
+ "build": "yarn nx build amaterasu-cli",
9
+ "postbuild": "patch-package-json-main",
10
+ "prepare:publish": "dispatch-package-json-fields ./dist/package.json"
11
11
  },
12
12
  "schematics": "./collection.json",
13
- "files": [
14
- "dist/",
15
- "collection.json"
16
- ],
17
13
  "engines": {
18
14
  "node": ">=14.0.0",
19
15
  "vscode": "^1.22.0"
20
16
  },
21
17
  "dependencies": {
22
- "@angular-devkit/architect": "^0.1202.6",
23
- "@angular-devkit/core": "^12.2.6",
24
- "@angular-devkit/schematics": "^12.2.6",
25
- "tslib": "^2.3.1"
18
+ "@angular-devkit/architect": "~0.1500.4",
19
+ "@angular-devkit/core": "~15.0.4",
20
+ "@angular-devkit/schematics": "~15.0.4",
21
+ "tslib": "^2.4.1"
26
22
  },
27
23
  "devDependencies": {
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",
28
30
  "@types/node": "^17.0.23",
29
- "copyfiles": "^2.4.1",
30
- "typescript": "^4.6.3"
31
- }
32
- }
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",
39
+ "nx": "^15.3.3",
40
+ "ts-jest": "^28.0.5",
41
+ "typescript": "~4.8.4"
42
+ },
43
+ "main": "./src/public_api.js",
44
+ "types": "./src/public_api.d.ts",
45
+ "peerDependencies": {
46
+ "@types/request-promise-native": "1.0.18",
47
+ "azure-devops-node-api": "11.2.0",
48
+ "comment-json": "4.2.3",
49
+ "jasmine-spec-reporter": "5.0.2",
50
+ "request": "2.88.2",
51
+ "request-promise-native": "1.0.9",
52
+ "@typescript-eslint/experimental-utils": "5.45.1",
53
+ "@angular-eslint/utils": "15.1.0",
54
+ "jest-junit": "14.0.1",
55
+ "@types/fs-extra": "9.0.13",
56
+ "@types/gulp": "4.0.10",
57
+ "@types/gulp-cached": "0.0.32",
58
+ "@types/request": "2.48.8",
59
+ "@types/rimraf": "3.0.2",
60
+ "@types/semver": "7.3.13",
61
+ "gulp": "4.0.2",
62
+ "gulp-cached": "1.1.1",
63
+ "gulp-typescript": "6.0.0-alpha.1"
64
+ },
65
+ "contributors": [
66
+ {
67
+ "name": "Yannick Adam",
68
+ "email": "yannickadam@users.noreply.github.com"
69
+ },
70
+ {
71
+ "name": "Kilian Panot",
72
+ "email": "kpanot@users.noreply.github.com"
73
+ },
74
+ {
75
+ "name": "Jeremy Bourgeois",
76
+ "email": "jbourgeois-1A@users.noreply.github.com"
77
+ },
78
+ {
79
+ "name": "Pierre Henri Ginoux",
80
+ "email": "pginoux-1A@users.noreply.github.com"
81
+ },
82
+ {
83
+ "name": "Mircea Vasile Rednic",
84
+ "email": "mrednic-1A@users.noreply.github.com"
85
+ },
86
+ {
87
+ "name": "Stephane Dalle",
88
+ "email": "sdalle-1A@users.noreply.github.com"
89
+ },
90
+ {
91
+ "name": "Nicolas Hoffmann",
92
+ "email": "nhoffmann-1A@users.noreply.github.com"
93
+ },
94
+ {
95
+ "name": "Victor Scaiceanu",
96
+ "email": "vscaiceanu-1A@users.noreply.github.com"
97
+ },
98
+ {
99
+ "name": "Florian Paul",
100
+ "email": "fpaul-1A@users.noreply.github.com"
101
+ },
102
+ {
103
+ "name": "Corinne Paulve",
104
+ "email": "cpaulve-1A@users.noreply.github.com"
105
+ },
106
+ {
107
+ "name": "Matthieu Crouzet",
108
+ "email": "matthieu-crouzet@users.noreply.github.com"
109
+ },
110
+ {
111
+ "name": "Salome Do",
112
+ "email": "sdo-1A@users.noreply.github.com"
113
+ }
114
+ ],
115
+ "bugs": "https://github.com/AmadeusITGroup/otter/issues",
116
+ "repository": "https://github.com/AmadeusITGroup/otter",
117
+ "license": "BSD-3-Clause"
118
+ }
@@ -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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/create-module/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA8D,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAErJ,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,4BAA4B,GAAG,IAAI,CAkBnF"}
@@ -0,0 +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;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/create-module/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAAqJ;AACrJ,kCAAkC;AAGlC;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,OAAqC;IAC3E,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IAEjF,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,aAAa,CAAC,EAAE;YAC/C,IAAA,qBAAQ,EAAC;gBACP,GAAG,cAAO;gBACV,GAAG,OAAO;gBACV,OAAO;aACR,CAAC;YACF,IAAA,gCAAmB,GAAE;YACrB,IAAA,iBAAI,EAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;SAChD,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,SAAS,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;AACJ,CAAC;AAlBD,0DAkBC"}
@@ -1,8 +1,8 @@
1
- import { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/create-module/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/create-module/schema.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/create-module/schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../src/index.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +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
+ });
6
+ //# sourceMappingURL=index.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/index.spec.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAE9D,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;IACvE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './create-module/index';
2
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ __exportStar(require("./create-module/index"), exports);
4
+ //# sourceMappingURL=public_api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":";;AAAA,wDAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/create-module/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA8D,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAErJ,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAE,OAAO,EAAE,4BAA4B,GAAG,IAAI,CAkBpF"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.generateAmaterasuModule = void 0;
27
- const core_1 = require("@angular-devkit/core");
28
- const schematics_1 = require("@angular-devkit/schematics");
29
- const path = __importStar(require("path"));
30
- /**
31
- * Generate a new Amaterasu module
32
- *
33
- * @param options
34
- */
35
- function generateAmaterasuModule(options) {
36
- const { version } = require(path.resolve(__dirname, '..', '..', 'package.json'));
37
- return (tree, context) => {
38
- const templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./templates'), [
39
- (0, schematics_1.template)({
40
- ...core_1.strings,
41
- ...options,
42
- version
43
- }),
44
- (0, schematics_1.renameTemplateFiles)(),
45
- (0, schematics_1.move)(path.join(options.basePath, options.name))
46
- ]);
47
- const rule = (0, schematics_1.mergeWith)(templateSource, schematics_1.MergeStrategy.Overwrite);
48
- return rule(tree, context);
49
- };
50
- }
51
- exports.generateAmaterasuModule = generateAmaterasuModule;
52
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/create-module/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,2DAAqJ;AACrJ,2CAA6B;AAG7B;;;;GAIG;AACH,SAAgB,uBAAuB,CAAE,OAAqC;IAC5E,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IAEjF,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,aAAa,CAAC,EAAE;YAC/C,IAAA,qBAAQ,EAAC;gBACP,GAAG,cAAO;gBACV,GAAG,OAAO;gBACV,OAAO;aACR,CAAC;YACF,IAAA,gCAAmB,GAAE;YACrB,IAAA,iBAAI,EAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;SAChD,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,SAAS,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;AACJ,CAAC;AAlBD,0DAkBC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/create-module/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,26 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SetupIvyPostInstallBuilderSchema",
4
- "title": "Setup Ivy PostInstall builder",
5
- "description": "Setup Ivy PostInstall builder options",
6
- "properties": {
7
- "name": {
8
- "type": "string",
9
- "description": "Project name",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "Name of the CLI module:"
15
- },
16
- "basePath": {
17
- "type": "string",
18
- "description": "Path where generate the repository",
19
- "default": "/"
20
- }
21
- },
22
- "additionalProperties": false,
23
- "required": [
24
- "name"
25
- ]
26
- }
@@ -1,28 +0,0 @@
1
- {
2
- "name": "<%= name %>",
3
- "version": "0.0.0",
4
- "description": "Ama-terasu module",
5
- "main": "dist/index.js",
6
- "license": "MIT",
7
- "scripts": {
8
- "build": "tsc"
9
- },
10
- "files": [
11
- "dist/"
12
- ],
13
- "devDependencies": {
14
- "@ama-terasu/core": "^<%= version %>",
15
- "@types/node": "^14.0.0",
16
- "typescript": "^4.3.5"
17
- },
18
- "dependencies": {
19
- "tslib": "^2.3.1",
20
- }
21
- "peerDependencies": {
22
- "@ama-terasu/core": "^<%= version %>"
23
- },
24
- "engines": {
25
- "node": ">=14.0.0",
26
- "vscode": "^1.22.0"
27
- }
28
- }
@@ -1,12 +0,0 @@
1
- import { AmaCliModule } from '@ama-terasu/core';
2
-
3
- const name = '<%= name %>';
4
-
5
- module.exports = {
6
- name,
7
- description: 'Commands relative to <%= name %> module',
8
- init: (yargs, _baseContext) => {
9
- // customize yargs commands:
10
- return yargs;
11
- }
12
- } as AmaCliModule;
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "module": "CommonJS",
5
- "declaration": true,
6
- "declarationMap": true,
7
- "sourceMap": true,
8
- "importHelpers": true,
9
- "outDir": "./dist",
10
- "strict": true,
11
- },
12
- "files": [
13
- "./src/index.ts"
14
- ]
15
- }
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './create-module/index';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
package/dist/index.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./create-module/index"), exports);
18
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}