@ama-terasu/schematics 0.0.44 → 8.0.0-alpha.10
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/LICENSE +26 -0
- package/collection.json +2 -2
- package/package.json +107 -19
- package/{dist → src}/create-module/index.d.ts +8 -8
- package/src/create-module/index.d.ts.map +1 -0
- package/src/create-module/index.js +29 -0
- package/src/create-module/index.js.map +1 -0
- package/{dist → src}/create-module/schema.d.ts +7 -7
- package/src/create-module/schema.d.ts.map +1 -0
- package/{dist → src}/create-module/schema.js +2 -2
- package/{dist → src}/create-module/schema.js.map +1 -1
- package/src/index.spec.d.ts +1 -0
- package/src/index.spec.d.ts.map +1 -0
- package/src/index.spec.js +6 -0
- package/src/index.spec.js.map +1 -0
- package/src/public_api.d.ts +2 -0
- package/src/public_api.d.ts.map +1 -0
- package/src/public_api.js +4 -0
- package/src/public_api.js.map +1 -0
- package/dist/create-module/index.d.ts.map +0 -1
- package/dist/create-module/index.js +0 -52
- package/dist/create-module/index.js.map +0 -1
- package/dist/create-module/schema.d.ts.map +0 -1
- package/dist/create-module/schema.json +0 -26
- package/dist/create-module/templates/package.json.template +0 -28
- package/dist/create-module/templates/src/index.ts.template +0 -12
- package/dist/create-module/templates/tsconfig.json.template +0 -15
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Copyright Amadeus SAS
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
4
|
+
are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
7
|
+
list of conditions and the following disclaimer.
|
|
8
|
+
|
|
9
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
this list of conditions and the following disclaimer in the documentation and/or
|
|
11
|
+
other materials provided with the distribution.
|
|
12
|
+
|
|
13
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
14
|
+
may be used to endorse or promote products derived from this software without
|
|
15
|
+
specific prior written permission.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
18
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
19
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
21
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
22
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
23
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
24
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
25
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
26
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
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": "./
|
|
7
|
-
"schema": "./
|
|
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,120 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-terasu/schematics",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.0.44",
|
|
3
|
+
"version": "8.0.0-alpha.10",
|
|
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
|
-
"
|
|
6
|
+
"nx": "nx",
|
|
7
|
+
"ng": "yarn nx",
|
|
8
|
+
"build": "yarn nx build amaterasu-cli",
|
|
9
|
+
"postbuild": "patch-package-json-main",
|
|
10
|
+
"prepare:publish": "prepare-publish ./dist"
|
|
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": "
|
|
23
|
-
"@angular-devkit/core": "
|
|
24
|
-
"@angular-devkit/schematics": "
|
|
25
|
-
"
|
|
18
|
+
"@angular-devkit/architect": "~0.1501.3",
|
|
19
|
+
"@angular-devkit/core": "~15.1.3",
|
|
20
|
+
"@angular-devkit/schematics": "~15.1.3",
|
|
21
|
+
"@angular-eslint/utils": "15.1.0",
|
|
22
|
+
"@types/fs-extra": "9.0.13",
|
|
23
|
+
"@types/gulp": "4.0.10",
|
|
24
|
+
"@types/gulp-cached": "0.0.32",
|
|
25
|
+
"@types/request": "2.48.8",
|
|
26
|
+
"@types/request-promise-native": "1.0.18",
|
|
27
|
+
"@types/rimraf": "3.0.2",
|
|
28
|
+
"@types/semver": "7.3.13",
|
|
29
|
+
"@typescript-eslint/experimental-utils": "5.45.1",
|
|
30
|
+
"azure-devops-node-api": "11.2.0",
|
|
31
|
+
"comment-json": "4.2.3",
|
|
32
|
+
"gulp": "4.0.2",
|
|
33
|
+
"gulp-cached": "1.1.1",
|
|
34
|
+
"gulp-typescript": "6.0.0-alpha.1",
|
|
35
|
+
"jasmine-spec-reporter": "5.0.2",
|
|
36
|
+
"jest-junit": "14.0.1",
|
|
37
|
+
"request": "2.88.2",
|
|
38
|
+
"request-promise-native": "1.0.9",
|
|
39
|
+
"tslib": "^2.4.1"
|
|
26
40
|
},
|
|
27
41
|
"devDependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
42
|
+
"@angular-eslint/eslint-plugin": "~15.1.0",
|
|
43
|
+
"@nrwl/jest": "^15.6.3",
|
|
44
|
+
"@o3r/build-helpers": "^8.0.0-alpha.10",
|
|
45
|
+
"@o3r/dev-tools": "^8.0.0-alpha.10",
|
|
46
|
+
"@o3r/eslint-plugin": "^8.0.0-alpha.10",
|
|
47
|
+
"@types/jest": "~28.1.2",
|
|
48
|
+
"@types/node": "^17.0.45",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
50
|
+
"@typescript-eslint/parser": "^5.19.0",
|
|
51
|
+
"eslint": "^8.22.0",
|
|
52
|
+
"eslint-import-resolver-node": "^0.3.4",
|
|
53
|
+
"eslint-plugin-jest": "^26.1.4",
|
|
54
|
+
"eslint-plugin-jsdoc": "^39.3.6",
|
|
55
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
56
|
+
"jest": "~28.1.1",
|
|
57
|
+
"nx": "^15.6.3",
|
|
58
|
+
"ts-jest": "^28.0.5",
|
|
59
|
+
"typescript": "~4.9.4"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"@o3r/dev-tools": "8.0.0-alpha.10",
|
|
63
|
+
"@o3r/eslint-plugin": "8.0.0-alpha.10"
|
|
64
|
+
},
|
|
65
|
+
"main": "./src/public_api.js",
|
|
66
|
+
"types": "./src/public_api.d.ts",
|
|
67
|
+
"contributors": [
|
|
68
|
+
{
|
|
69
|
+
"name": "Yannick Adam",
|
|
70
|
+
"email": "yannickadam@users.noreply.github.com"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "Kilian Panot",
|
|
74
|
+
"email": "kpanot@users.noreply.github.com"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "Jeremy Bourgeois",
|
|
78
|
+
"email": "jbourgeois-1A@users.noreply.github.com"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "Pierre Henri Ginoux",
|
|
82
|
+
"email": "pginoux-1A@users.noreply.github.com"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "Mircea Vasile Rednic",
|
|
86
|
+
"email": "mrednic-1A@users.noreply.github.com"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "Stephane Dalle",
|
|
90
|
+
"email": "sdalle-1A@users.noreply.github.com"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "Nicolas Hoffmann",
|
|
94
|
+
"email": "nhoffmann-1A@users.noreply.github.com"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "Victor Scaiceanu",
|
|
98
|
+
"email": "vscaiceanu-1A@users.noreply.github.com"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "Florian Paul",
|
|
102
|
+
"email": "fpaul-1A@users.noreply.github.com"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "Corinne Paulve",
|
|
106
|
+
"email": "cpaulve-1A@users.noreply.github.com"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "Matthieu Crouzet",
|
|
110
|
+
"email": "matthieu-crouzet@users.noreply.github.com"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "Salome Do",
|
|
114
|
+
"email": "sdo-1A@users.noreply.github.com"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"bugs": "https://github.com/AmadeusITGroup/otter/issues",
|
|
118
|
+
"repository": "https://github.com/AmadeusITGroup/otter",
|
|
119
|
+
"license": "BSD-3-Clause"
|
|
120
|
+
}
|
|
@@ -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":["
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -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
package/dist/index.d.ts.map
DELETED
|
@@ -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"}
|