@o3r/amaterasu-otter 0.0.43 → 8.0.0-alpha.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.
package/package.json CHANGED
@@ -1,31 +1,133 @@
1
1
  {
2
2
  "name": "@o3r/amaterasu-otter",
3
- "version": "0.0.43",
3
+ "version": "8.0.0-alpha.0",
4
+ "main": "./src/index.js",
5
+ "typings": "./src/index.d.ts",
4
6
  "description": "Command Line Interface to administrate a DES project",
5
- "main": "dist/index.js",
6
- "license": "MIT",
7
- "packageManager": "yarn@3.0.1",
8
7
  "scripts": {
9
- "build": "tsc"
8
+ "nx": "nx",
9
+ "ng": "yarn nx",
10
+ "build": "yarn nx build amaterasu-otter",
11
+ "postbuild": "patch-package-json-main",
12
+ "prepare:publish": "dispatch-package-json-fields ./dist/package.json"
10
13
  },
11
- "files": [
12
- "dist/"
14
+ "keywords": [
15
+ "amaterasu-module",
16
+ "otter",
17
+ "des"
13
18
  ],
14
19
  "dependencies": {
15
20
  "js-yaml": "^4.1.0",
16
- "tslib": "^2.3.1"
21
+ "tslib": "^2.4.1"
22
+ },
23
+ "peerDependenciesMeta": {
24
+ "@angular/cli": {
25
+ "optional": true
26
+ }
17
27
  },
18
28
  "devDependencies": {
19
- "@ama-terasu/core": "^0.0.43",
29
+ "@ama-terasu/core": "^8.0.0-alpha.0",
30
+ "@o3r/build-helpers": "^8.0.0-alpha.0",
31
+ "@o3r/dev-tools": "^8.0.0-alpha.0",
20
32
  "@types/js-yaml": "^4.0.5",
21
33
  "@types/node": "^17.0.23",
22
- "typescript": "^4.6.3"
34
+ "nx": "^15.3.3",
35
+ "typescript": "~4.8.4"
23
36
  },
24
37
  "peerDependencies": {
25
- "@ama-terasu/core": "^0.0.43"
38
+ "@ama-terasu/core": "^8.0.0-alpha.0",
39
+ "@angular/cli": "~15.0.0",
40
+ "@types/request-promise-native": "1.0.18",
41
+ "azure-devops-node-api": "11.2.0",
42
+ "chalk": "4.1.2",
43
+ "commander": "9.4.1",
44
+ "comment-json": "4.2.3",
45
+ "form-data": "4.0.0",
46
+ "fs-extra": "7.0.1",
47
+ "jasmine-spec-reporter": "5.0.2",
48
+ "minimatch": "5.1.2",
49
+ "request": "2.88.2",
50
+ "request-promise-native": "1.0.9",
51
+ "winston": "3.8.2",
52
+ "@o3r/eslint-plugin": "8.0.0-alpha.0",
53
+ "@typescript-eslint/experimental-utils": "5.45.1",
54
+ "@angular-eslint/utils": "15.1.0",
55
+ "jest-junit": "14.0.1",
56
+ "@types/fs-extra": "9.0.13",
57
+ "@types/glob": "7.2.0",
58
+ "@types/gulp": "4.0.10",
59
+ "@types/gulp-cached": "0.0.32",
60
+ "@types/jasmine": "3.10.7",
61
+ "@types/request": "2.48.8",
62
+ "@types/rimraf": "3.0.2",
63
+ "@types/semver": "7.3.13",
64
+ "gulp": "4.0.2",
65
+ "gulp-cached": "1.1.1",
66
+ "gulp-typescript": "6.0.0-alpha.1",
67
+ "node-fetch": "2.6.7",
68
+ "type-fest": "2.19.0",
69
+ "util": "0.10.3",
70
+ "@types/minimist": "1.2.2",
71
+ "@types/yargs": "17.0.16",
72
+ "loglevel": "1.8.1",
73
+ "yargs": "17.6.2"
26
74
  },
27
75
  "engines": {
28
76
  "node": ">=14.0.0",
29
77
  "vscode": "^1.22.0"
30
- }
31
- }
78
+ },
79
+ "types": "./src/index.d.ts",
80
+ "contributors": [
81
+ {
82
+ "name": "Yannick Adam",
83
+ "email": "yannickadam@users.noreply.github.com"
84
+ },
85
+ {
86
+ "name": "Kilian Panot",
87
+ "email": "kpanot@users.noreply.github.com"
88
+ },
89
+ {
90
+ "name": "Jeremy Bourgeois",
91
+ "email": "jbourgeois-1A@users.noreply.github.com"
92
+ },
93
+ {
94
+ "name": "Pierre Henri Ginoux",
95
+ "email": "pginoux-1A@users.noreply.github.com"
96
+ },
97
+ {
98
+ "name": "Mircea Vasile Rednic",
99
+ "email": "mrednic-1A@users.noreply.github.com"
100
+ },
101
+ {
102
+ "name": "Stephane Dalle",
103
+ "email": "sdalle-1A@users.noreply.github.com"
104
+ },
105
+ {
106
+ "name": "Nicolas Hoffmann",
107
+ "email": "nhoffmann-1A@users.noreply.github.com"
108
+ },
109
+ {
110
+ "name": "Victor Scaiceanu",
111
+ "email": "vscaiceanu-1A@users.noreply.github.com"
112
+ },
113
+ {
114
+ "name": "Florian Paul",
115
+ "email": "fpaul-1A@users.noreply.github.com"
116
+ },
117
+ {
118
+ "name": "Corinne Paulve",
119
+ "email": "cpaulve-1A@users.noreply.github.com"
120
+ },
121
+ {
122
+ "name": "Matthieu Crouzet",
123
+ "email": "matthieu-crouzet@users.noreply.github.com"
124
+ },
125
+ {
126
+ "name": "Salome Do",
127
+ "email": "sdo-1A@users.noreply.github.com"
128
+ }
129
+ ],
130
+ "bugs": "https://github.com/AmadeusITGroup/otter/issues",
131
+ "repository": "https://github.com/AmadeusITGroup/otter",
132
+ "license": "BSD-3-Clause"
133
+ }
@@ -11,8 +11,6 @@ export interface CreateApplicationOptions {
11
11
  * @default false
12
12
  */
13
13
  yes?: boolean;
14
- /** Registry Token */
15
- 'registry-token': string;
16
14
  /** Otter generator version to use */
17
15
  'otter-version': string;
18
16
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-application.command.d.ts","sourceRoot":"","sources":["../../src/create-application.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,kBAAkB,CAAC;AAMzD,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACvC,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,qCAAqC;IAErC,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,YAAmB,OAAO,WAAW,wBAAwB,kBAuD1F,CAAC"}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createApplication = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const core_1 = require("@ama-terasu/core");
6
- const fs_1 = require("fs");
7
- const path = tslib_1.__importStar(require("path"));
8
- const commands_helpers_1 = require("./commands.helpers");
5
+ const node_fs_1 = require("node:fs");
6
+ const path = require("node:path");
7
+ const { peerDependencies } = require(path.resolve(__dirname, '..', 'package.json'));
9
8
  /**
10
9
  * Create an Otter Application
11
10
  *
@@ -18,25 +17,29 @@ const createApplication = async (context, options) => {
18
17
  const directory = options.name.replace(/ /g, '-');
19
18
  const npmClient = options.yarn ? 'yarn' : 'npm';
20
19
  const npmRunner = options.yarn ? 'yarn' : 'npx';
21
- if (!(0, fs_1.existsSync)(cwd)) {
22
- await fs_1.promises.mkdir(cwd, { recursive: true });
20
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
21
+ const interactive = `${!options.yes}`;
22
+ const ngVersion = peerDependencies?.['@angular/cli'] || 'latest';
23
+ if (!(0, node_fs_1.existsSync)(cwd)) {
24
+ await node_fs_1.promises.mkdir(cwd, { recursive: true });
23
25
  }
24
- await context.getSpinner('Creating a new Angular application...').fromPromise((0, core_1.promiseSpawn)(`npx -p @angular/cli@12 ng new "${options.name}" --style=scss --interactive=${!options.yes} --directory=${directory} --package-manager=${options.yarn ? 'yarn' : 'npm'} --routing`, { cwd, logger, stderrLogger: logger.debug }), `Application created (in ${path.resolve(cwd, directory)})`);
26
+ await context.getSpinner('Creating a new Angular application...').fromPromise(
27
+ // eslint-disable-next-line max-len
28
+ (0, core_1.promiseSpawn)(`npx -p @angular/cli@${ngVersion} ng new "${options.name}" --style=scss --interactive=${interactive} --directory=${directory} --package-manager=${options.yarn ? 'yarn' : 'npm'} --routing`, { cwd, logger, stderrLogger: logger.debug }), `Application created (in ${path.resolve(cwd, directory)})`);
25
29
  cwd = path.resolve(cwd, directory);
26
- await context.getSpinner('Adding Otter registry...').fromPromise(fs_1.promises.writeFile(path.resolve(cwd, '.npmrc'), (0, commands_helpers_1.generateBasicNpmrc)(options['registry-token'])), 'Registry file created');
27
30
  await context.getSpinner('Installing NPM dependencies...').fromPromise((0, core_1.promiseSpawn)(`${npmClient} install`, { cwd, logger, stderrLogger: logger.debug }), `NPM dependencies installed (with ${npmClient})`);
28
- await context.getSpinner('Adding Otter dependencies...').fromPromise((0, core_1.promiseSpawn)(`${npmRunner} ng add @otter/ng-tools@${options['otter-version']} --interactive=${!options.yes} --skip-confirmation`, { cwd, logger, stderrLogger: logger.debug }), 'Otter dependencies registered');
31
+ await context.getSpinner('Adding Otter dependencies...').fromPromise((0, core_1.promiseSpawn)(`${npmRunner} ng add @o3r/core@${options['otter-version']} --interactive=${interactive} --skip-confirmation`, { cwd, logger, stderrLogger: logger.debug }), 'Otter dependencies registered');
29
32
  if (options.material) {
30
- await context.getSpinner('Adding Material Dependency...').fromPromise((0, core_1.promiseSpawn)(`${npmRunner} ng add @angular/material --interactive=${!options.yes} --skip-confirmation`, { cwd, logger, stderrLogger: logger.debug }), 'Material Design library registered');
33
+ await context.getSpinner('Adding Material Dependency...').fromPromise((0, core_1.promiseSpawn)(`${npmRunner} ng add @angular/material --interactive=${interactive} --skip-confirmation`, { cwd, logger, stderrLogger: logger.debug }), 'Material Design library registered');
31
34
  const updateStyleTask = context.getSpinner('Updating styles...');
32
35
  updateStyleTask.start();
33
36
  const stylingFile = path.resolve(cwd, 'src/styles.scss');
34
- if ((0, fs_1.existsSync)(stylingFile)) {
35
- const style = (await fs_1.promises.readFile(stylingFile, { encoding: 'utf-8' }))
37
+ if ((0, node_fs_1.existsSync)(stylingFile)) {
38
+ const style = (await node_fs_1.promises.readFile(stylingFile, { encoding: 'utf-8' }))
36
39
  .replace('// @include mat-core', '@include mat-core')
37
40
  .replace('// @include angular-material-typography', '@include angular-material-typography')
38
41
  .replace('// @include angular-material-theme', '@include angular-material-theme');
39
- await fs_1.promises.writeFile(stylingFile, style);
42
+ await node_fs_1.promises.writeFile(stylingFile, style);
40
43
  }
41
44
  else {
42
45
  context.logger.error(`File ${stylingFile} not found`);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-application.command.js","sourceRoot":"","sources":["../../src/create-application.command.ts"],"names":[],"mappings":";;;AAAA,2CAAyD;AACzD,qCAAqD;AACrD,kCAAkC;AAElC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;AA+BpF;;;;;GAKG;AACI,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAgB,EAAE,OAAiC,EAAE,EAAE;IAC7F,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE3B,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IAChD,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IAChD,4EAA4E;IAC5E,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IAEtC,MAAM,SAAS,GAAW,gBAAgB,EAAE,CAAC,cAAc,CAAC,IAAI,QAAQ,CAAC;IAEzE,IAAI,CAAC,IAAA,oBAAU,EAAC,GAAG,CAAC,EAAE;QACpB,MAAM,kBAAE,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS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AE,CAAC,EACnJ,oCAAoC,CACrC,CAAC;QAEF,MAAM,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;QACjE,eAAe,CAAC,KAAK,EAAE,CAAC;QACxB,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;QACzD,IAAI,IAAA,oBAAU,EAAC,WAAW,CAAC,EAAE;YAC3B,MAAM,KAAK,GAAG,CAAC,MAAM,kBAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;iBAClE,OAAO,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;iBACpD,OAAO,CAAC,yCAAyC,EAAE,sCAAsC,CAAC;iBAC1F,OAAO,CAAC,oCAAoC,EAAE,iCAAiC,CAAC,CAAC;YACpF,MAAM,kBAAE,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SACxC;aAAM;YACL,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,WAAW,YAAY,CAAC,CAAC;SACvD;QACD,eAAe,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;KAC1C;IAED,MAAM,CAAC,IAAI,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC;AAvDW,QAAA,iBAAiB,qBAuD5B"}
@@ -11,8 +11,6 @@ export interface CreateCustomAppOptions {
11
11
  * @default false
12
12
  */
13
13
  yes?: boolean;
14
- /** Registry Token */
15
- 'registry-token': string;
16
14
  /** Otter generator version to use */
17
15
  'otter-version': string;
18
16
  /** RefX Flavour */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-custom-application.command.d.ts","sourceRoot":"","sources":["../../src/create-custom-application.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,kBAAkB,CAAC;AAIzD,4CAA4C;AAC5C,MAAM,WAAW,sBAAsB;IACrC,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,qCAAqC;IAErC,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YAAmB,OAAO,WAAW,sBAAsB,kBAY9F,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCustomApplication = void 0;
4
+ const core_1 = require("@ama-terasu/core");
5
+ const node_path_1 = require("node:path");
6
+ /**
7
+ * Create a custom application
8
+ *
9
+ * @param context Context of the command
10
+ * @param options Options
11
+ */
12
+ const createCustomApplication = async (context, options) => {
13
+ const { logger } = context;
14
+ const cwd = (0, node_path_1.resolve)(process.cwd(), options.path);
15
+ await context.getSpinner('Generating a new custom application...').fromPromise(
16
+ // eslint-disable-next-line max-len
17
+ (0, core_1.promiseSpawn)(`npx -p @o3r/customization@${options['otter-version']} -p @angular-devkit/schematics-cli schematics @o3r/customization:generate --airlineCode ${options.airline} --checkoutTag ${options.tag} --refxFlavour ${options.flavour}`, { cwd, stderrLogger: logger.debug, logger }), `Application generated (in ${cwd})`);
18
+ logger.info(`Application created in ${(0, node_path_1.resolve)(cwd, `${options.airline}-${options.flavour}`)}`);
19
+ };
20
+ exports.createCustomApplication = createCustomApplication;
21
+ //# sourceMappingURL=create-custom-application.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-custom-application.command.js","sourceRoot":"","sources":["../../src/create-custom-application.command.ts"],"names":[],"mappings":";;;AAAA,2CAAyD;AACzD,yCAAoC;AAwBpC;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,KAAK,EAAE,OAAgB,EAAE,OAA+B,EAAE,EAAE;IACjG,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE3B,MAAM,GAAG,GAAG,IAAA,mBAAO,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjD,MAAM,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC,CAAC,WAAW;IAC5E,mCAAmC;IACnC,IAAA,mBAAY,EAAC,6BAA6B,OAAO,CAAC,eAAe,CAAC,2FAA2F,OAAO,CAAC,OAAO,kBAAkB,OAAO,CAAC,GAAG,kBAAkB,OAAO,CAAC,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC1R,6BAA6B,GAAG,GAAG,CACpC,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,0BAA0B,IAAA,mBAAO,EAAC,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACjG,CAAC,CAAC;AAZW,QAAA,uBAAuB,2BAYlC"}
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
@@ -15,7 +15,7 @@ module.exports = {
15
15
  type: 'boolean'
16
16
  })
17
17
  .demandCommand()
18
- .command('create', 'Generate a new Otter based project', (yargs) => yargs
18
+ .command('create', 'Generate a new Otter based project', (yargsInstance) => yargsInstance
19
19
  .usage(baseContext.generateUsageMessage(name, 'create <command>'))
20
20
  .demandCommand()
21
21
  .option(core_1.EXTRA_COMMON_OPTIONS.path, {
@@ -23,12 +23,6 @@ module.exports = {
23
23
  type: 'string',
24
24
  default: '.',
25
25
  description: 'Path to the generated application'
26
- })
27
- .option(core_1.EXTRA_COMMON_OPTIONS.registryToken, {
28
- ...core_1.MODULE_OPTIONS.registryToken,
29
- type: 'string',
30
- description: 'Token used for Amadeus NPM registries',
31
- demandOption: 'Amadeus NPM registries token is mandatory'
32
26
  })
33
27
  .option('otter-version', {
34
28
  alias: ['O'],
@@ -37,7 +31,7 @@ module.exports = {
37
31
  description: 'Version of the Otter generators to use',
38
32
  demandOption: 'Amadeus NPM registries token is mandatory'
39
33
  })
40
- .command('application <name>', 'Generate a new Otter based application', (yargs) => yargs
34
+ .command('application <name>', 'Generate a new Otter based application', (yargsInstanceApp) => yargsInstanceApp
41
35
  .positional('name', {
42
36
  type: 'string',
43
37
  description: 'Application name',
@@ -48,7 +42,7 @@ module.exports = {
48
42
  default: true,
49
43
  description: 'Add material dependency'
50
44
  }), (options) => (0, create_application_command_1.createApplication)(baseContext.getContext(options), options))
51
- .command('custom-application <airline>', 'Generate Otter custom application', (yargs) => yargs
45
+ .command('custom-application <airline>', 'Generate Otter custom application', (yargsInstanceCustomApp) => yargsInstanceCustomApp
52
46
  .positional('airline', {
53
47
  type: 'string',
54
48
  description: 'Airline code for the application',
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,2CAAsF;AACtF,6EAAiE;AACjE,2FAA8E;AAE9E,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB,MAAM,CAAC,OAAO,GAAG;IACf,IAAI;IACJ,WAAW,EAAE,sCAAsC;IACnD,IAAI,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE;QAC3B,OAAO,KAAK;aACT,MAAM,CAAC,2BAAoB,CAAC,IAAI,EAAE;YACjC,GAAG,qBAAc,CAAC,IAAI;YACtB,IAAI,EAAE,SAAS;SAChB,CAAC;aACD,aAAa,EAAE;aACf,OAAO,CAAC,QAAQ,EAAE,oCAAoC,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa;aACtF,KAAK,CAAC,WAAW,CAAC,oBAAoB,CA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;aACD,MAAM,CAAC,KAAK,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,OAAO;YAChB,WAAW,EAAE,0DAA0D;SACxE,CAAC,EACJ,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,2DAAuB,EAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAC7E,CACF,CAAC;IACN,CAAC;CACc,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Generate an NpmRc minimal to use Otter package
3
- *
4
- * @param token Digital For Airlines registry token
5
- * @returns Content of the .npmrc file
6
- */
7
- export declare const generateBasicNpmrc: (token: string) => string;
8
- //# sourceMappingURL=commands.helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.helpers.d.ts","sourceRoot":"","sources":["../src/commands.helpers.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAS/C,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateBasicNpmrc = void 0;
4
- const os_1 = require("os");
5
- /**
6
- * Generate an NpmRc minimal to use Otter package
7
- *
8
- * @param token Digital For Airlines registry token
9
- * @returns Content of the .npmrc file
10
- */
11
- const generateBasicNpmrc = (token) => {
12
- return [
13
- '@otter:registry=https://digitalforairlines.jfrog.io/digitalforairlines/api/npm/npm-otter/',
14
- '@dapi:registry=https://digitalforairlines.jfrog.io/digitalforairlines/api/npm/npm-otter/',
15
- '@compo3r:registry=https://digitalforairlines.jfrog.io/digitalforairlines/api/npm/npm-otter/',
16
- `//digitalforairlines.jfrog.io/digitalforairlines/api/npm/npm-otter/:_authToken=${token}`,
17
- '//digitalforairlines.jfrog.io/digitalforairlines/api/npm/npm-otter/:email=noreply@amadeus.com',
18
- '//digitalforairlines.jfrog.io/digitalforairlines/api/npm/npm-otter/:always-auth=true',
19
- 'always-auth=true'
20
- ].join(os_1.EOL);
21
- };
22
- exports.generateBasicNpmrc = generateBasicNpmrc;
23
- //# sourceMappingURL=commands.helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.helpers.js","sourceRoot":"","sources":["../src/commands.helpers.ts"],"names":[],"mappings":";;;AAAA,2BAAyB;AAEzB;;;;;GAKG;AACI,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAE,EAAE;IAClD,OAAO;QACL,2FAA2F;QAC3F,0FAA0F;QAC1F,6FAA6F;QAC7F,kFAAkF,KAAK,EAAE;QACzF,+FAA+F;QAC/F,sFAAsF;QACtF,kBAAkB;KAAC,CAAC,IAAI,CAAC,QAAG,CAAC,CAAC;AAClC,CAAC,CAAC;AATW,QAAA,kBAAkB,sBAS7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-application.command.d.ts","sourceRoot":"","sources":["../src/create-application.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,kBAAkB,CAAC;AAKzD,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACvC,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,qBAAqB;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,YAAmB,OAAO,WAAW,wBAAwB,kBAuD1F,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-application.command.js","sourceRoot":"","sources":["../src/create-application.command.ts"],"names":[],"mappings":";;;;AAAA,2CAAyD;AACzD,2BAAgD;AAChD,mDAA6B;AAC7B,yDAAwD;AAgCxD;;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,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;iBAClE,OAAO,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;iBACpD,OAAO,CAAC,yCAAyC,EAAE,sCAAsC,CAAC;iBAC1F,OAAO,CAAC,oCAAoC,EAAE,iCAAiC,CAAC,CAAC;YACpF,MAAM,aAAE,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SACxC;aAAM;YACL,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,WAAW,YAAY,CAAC,CAAA;SACtD;QACD,eAAe,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;KAC1C;IAED,MAAM,CAAC,IAAI,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC;AAvDW,QAAA,iBAAiB,qBAuD5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-custom-application.command.d.ts","sourceRoot":"","sources":["../src/create-custom-application.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,kBAAkB,CAAC;AAOzD,4CAA4C;AAC5C,MAAM,WAAW,sBAAsB;IACrC,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,qBAAqB;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YAAmB,OAAO,WAAW,sBAAsB,kBAmD9F,CAAC"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createCustomApplication = void 0;
4
- const core_1 = require("@ama-terasu/core");
5
- const fs_1 = require("fs");
6
- const js_yaml_1 = require("js-yaml");
7
- const path_1 = require("path");
8
- const commands_helpers_1 = require("./commands.helpers");
9
- /**
10
- * Create a custom application
11
- *
12
- * @param context Context of the command
13
- * @param options Options
14
- */
15
- const createCustomApplication = async (context, options) => {
16
- var _a;
17
- const { logger } = context;
18
- const cwd = (0, path_1.resolve)(process.cwd(), options.path);
19
- const inPackageCwd = cwd;
20
- const npmrcFile = 'tmp.npmrc';
21
- const authTokenRegExp = /^(\/\/digitalforairlines.jfrog.io\/digitalforairlines\/api\/npm\/npm-otter\/:_authToken).*$/gm;
22
- const registryUrl = '//digitalforairlines.jfrog.io/digitalforairlines/api/npm/npm-otter/';
23
- await context.getSpinner('Adding Otter registry...').fromPromise(fs_1.promises.writeFile((0, path_1.resolve)(cwd, npmrcFile), (0, commands_helpers_1.generateBasicNpmrc)(options['registry-token'])), 'Registry file created');
24
- await context.getSpinner('Generating a new custom application...').fromPromise((0, core_1.promiseSpawn)(`npx --userconfig ${npmrcFile} -p @otter/customization@${options['otter-version']} -p @angular-devkit/schematics-cli schematics @otter/customization:generate --airlineCode ${options.airline} --checkoutTag ${options.tag} --refxFlavour ${options.flavour}`, { cwd, stderrLogger: logger.debug, logger }), `Application generated (in ${cwd})`);
25
- const npmrcFilePath = (0, path_1.resolve)(inPackageCwd, '.npmrc');
26
- if ((0, fs_1.existsSync)(npmrcFilePath)) {
27
- const updateNpmrcTask = context.getSpinner('Updating generated .npmrc file...');
28
- updateNpmrcTask.start();
29
- const generatedNpmrc = await fs_1.promises.readFile(npmrcFilePath, { encoding: 'utf-8' });
30
- const newNpmrcContent = generatedNpmrc.replace(authTokenRegExp, `$1=${options['registry-token']}`);
31
- await fs_1.promises.writeFile(npmrcFilePath, newNpmrcContent);
32
- updateNpmrcTask.succeed('.npmrc file updated');
33
- }
34
- const yarnrcFilePath = (0, path_1.resolve)(inPackageCwd, '.yarnrc.yml');
35
- if ((0, fs_1.existsSync)(yarnrcFilePath)) {
36
- const updateYarnrcTask = context.getSpinner('Updating generated .yarn.yml file...');
37
- updateYarnrcTask.start();
38
- const yarnrc = (0, js_yaml_1.load)(await fs_1.promises.readFile(yarnrcFilePath, { encoding: 'utf8' }));
39
- if (yarnrc) {
40
- yarnrc.npmRegistries || (yarnrc.npmRegistries = {});
41
- (_a = yarnrc.npmRegistries)[registryUrl] || (_a[registryUrl] = {});
42
- yarnrc.npmRegistries[registryUrl].npmAuthToken = options['registry-token'];
43
- yarnrc.npmRegistries[registryUrl].npmAlwaysAuth = true;
44
- await fs_1.promises.writeFile(yarnrcFilePath, (0, js_yaml_1.dump)(yarnrc));
45
- }
46
- updateYarnrcTask.succeed('.yarnrc.yml file updated');
47
- }
48
- await context.getSpinner('Clean up setup materials').fromPromise(fs_1.promises.unlink((0, path_1.resolve)(cwd, npmrcFile)));
49
- logger.info(`Application created in ${(0, path_1.resolve)(cwd, `${options.airline}-${options.flavour}`)}`);
50
- };
51
- exports.createCustomApplication = createCustomApplication;
52
- //# sourceMappingURL=create-custom-application.command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-custom-application.command.js","sourceRoot":"","sources":["../src/create-custom-application.command.ts"],"names":[],"mappings":";;;AAAA,2CAAyD;AACzD,2BAAgD;AAChD,qCAAqC;AACrC,+BAA+B;AAC/B,yDAAwD;AAyBxD;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,KAAK,EAAE,OAAgB,EAAE,OAA+B,EAAE,EAAE;;IACjG,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE3B,MAAM,GAAG,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,GAAG,CAAC;IAEzB,MAAM,SAAS,GAAG,WAAW,CAAC;IAC9B,MAAM,eAAe,GAAG,+FAA+F,CAAC;IACxH,MAAM,WAAW,GAAG,qEAAqE,CAAC;IAE1F,MA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,UAAU,EAAE;YAClB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,yBAAyB;SACvC,CAAC,EACF,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,8CAAiB,EAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CACzE;aACA,OAAO,CAAC,8BAA8B,EAAE,mCAAmC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK;aAC3F,UAAU,CAAC,SAAS,EAAE;YACrB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,YAAY,EAAE,2BAA2B;SAC1C,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,CAAC;YAChD,WAAW,EAAE,cAAc;YAC3B,YAAY,EAAE,qCAAqC;SACpD,CAAC;aACD,MAAM,CAAC,KAAK,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,OAAO;YAChB,WAAW,EAAE,0DAA0D;SACxE,CAAC,EACF,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,2DAAuB,EAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAC/E,CACF,CAAC;IACN,CAAC;CACc,CAAC"}
package/readme.md DELETED
@@ -1,17 +0,0 @@
1
- # Ama-terasu Otter
2
-
3
- This is a module for **Ama-terasu** CLI to execute action relative to the Otter Framework.
4
-
5
- ## Available commands
6
-
7
- List of available command exposed by this module:
8
-
9
- * **create application**: Create an empty Otter application
10
-
11
- ### create application
12
-
13
- Generate a new Otter based application
14
-
15
- ### create sdk
16
-
17
- Generate a Typescript SDK based on Digital Amadeus compatible specification