@adinsure-ops/ops-cli 4.2.0 → 4.4.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/CHANGELOGS.md +12 -0
- package/README.md +39 -0
- package/lib/commands/docker/update-image-version.d.ts +17 -0
- package/lib/commands/docker/update-image-version.js +47 -0
- package/lib/commands/npm/dependency-update.d.ts +23 -0
- package/lib/commands/npm/dependency-update.js +113 -0
- package/lib/commands/npm/publish.js +2 -1
- package/lib/commands/nuget/dependency-update.d.ts +21 -0
- package/lib/commands/nuget/dependency-update.js +67 -0
- package/lib/commands/sql.d.ts +6 -0
- package/lib/commands/sql.js +76 -10
- package/lib/commands/translate.js +9 -3
- package/lib/lib/npm.js +2 -2
- package/lib/lib/nuget.d.ts +6 -0
- package/lib/lib/nuget.js +23 -0
- package/oclif.manifest.json +1 -1
- package/package.json +112 -111
package/CHANGELOGS.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelogs
|
|
2
2
|
|
|
3
|
+
## 4.4.0: 2022-10-03
|
|
4
|
+
|
|
5
|
+
- added parameters for offline sql script creation
|
|
6
|
+
- ability to recover from prerelease tag when creating db scripts
|
|
7
|
+
|
|
8
|
+
## 4.3.0: 2022-07-27
|
|
9
|
+
|
|
10
|
+
- added command `npm:dependency-update` to update dependencies on packages in workspace defined by filter
|
|
11
|
+
- added command `nuget:dependency-update` to update dependencies on packages in workspace defined by filter
|
|
12
|
+
- improve error handling in translation fetching
|
|
13
|
+
- improve warning output when npm publish fails
|
|
14
|
+
|
|
3
15
|
## 4.2.0: 2022-07-15
|
|
4
16
|
|
|
5
17
|
- added command `gitlab:get-tag-pipeline` to track pipeline status and wait for pipeline to finish
|
package/README.md
CHANGED
|
@@ -42,6 +42,8 @@ You can run and debug commands directly from terminal by running `ops [command]`
|
|
|
42
42
|
* [`ops login`](#ops-login)
|
|
43
43
|
* [`ops npm:check-publish`](#ops-npm-check-publish)
|
|
44
44
|
* [`ops npm:publish`](#ops-npm-publish)
|
|
45
|
+
* [`ops npm:dependency-update`](#ops-npm-dependency-update)
|
|
46
|
+
* [`ops nuget:dependency-update`](#ops-nuget-dependency-update)
|
|
45
47
|
* [`ops prepare-content`](#ops-prepare-content)
|
|
46
48
|
* [`ops sql <type> <module> [flags]`](#ops-sql-type-module-flags)
|
|
47
49
|
* [`ops translate`](#ops-translate)
|
|
@@ -414,6 +416,43 @@ EXAMPLES
|
|
|
414
416
|
$ ops npm:publish -p @adinsure-tooling/* -x @adisure-tooling/studio-services -v 6.0.0
|
|
415
417
|
```
|
|
416
418
|
|
|
419
|
+
## `ops npm:dependency-update`
|
|
420
|
+
|
|
421
|
+
update npm dependencies per package filter
|
|
422
|
+
|
|
423
|
+
```
|
|
424
|
+
USAGE
|
|
425
|
+
$ ops npm:dependency-update <type> [flags]
|
|
426
|
+
|
|
427
|
+
ARGUMENTS
|
|
428
|
+
VERSION Type of release
|
|
429
|
+
|
|
430
|
+
OPTIONS
|
|
431
|
+
--exclude=exclude exclude directories where to search for package.json
|
|
432
|
+
--filter=filter (required) regular expression for which NPM packages to update
|
|
433
|
+
|
|
434
|
+
EXAMPLE
|
|
435
|
+
$ ops npm:dependency-update 3.4.3 --filter @adinsure/*
|
|
436
|
+
```
|
|
437
|
+
## `ops nuget:dependency-update`
|
|
438
|
+
|
|
439
|
+
update nuget dependencies per package filter
|
|
440
|
+
|
|
441
|
+
```
|
|
442
|
+
USAGE
|
|
443
|
+
$ ops nuget:dependency-update <type> [flags]
|
|
444
|
+
|
|
445
|
+
ARGUMENTS
|
|
446
|
+
VERSION Type of release
|
|
447
|
+
|
|
448
|
+
OPTIONS
|
|
449
|
+
--exclude=exclude exclude directories where to search for csproj files
|
|
450
|
+
--filter=filter (required) regular expression for which NuGet packages to update
|
|
451
|
+
|
|
452
|
+
EXAMPLE
|
|
453
|
+
$ ops nuget:dependency-update 3.4.3 --filter Adacta.AdInsure --exclude Scheduler
|
|
454
|
+
```
|
|
455
|
+
|
|
417
456
|
## `ops prepare-content -d <destination> -s [source]`
|
|
418
457
|
|
|
419
458
|
creates a directory/file structure from `/source` to `/destination</source>` as defined in the `.opsprepare` file. Actual
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { flags } from '@oclif/command';
|
|
2
|
+
import CommandBase from '../../command.base';
|
|
3
|
+
export default class DockerUpdateImageVersion extends CommandBase {
|
|
4
|
+
static description: string;
|
|
5
|
+
static usage: string;
|
|
6
|
+
static examples: string[];
|
|
7
|
+
static args: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
required: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
static flags: {
|
|
13
|
+
services: flags.IOptionFlag<string[]>;
|
|
14
|
+
'file-path': flags.IOptionFlag<string>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@oclif/command");
|
|
4
|
+
const fs = require("fs-extra");
|
|
5
|
+
const yaml_1 = require("yaml");
|
|
6
|
+
const command_base_1 = require("../../command.base");
|
|
7
|
+
class DockerUpdateImageVersion extends command_base_1.default {
|
|
8
|
+
async run() {
|
|
9
|
+
const { args, flags } = this.parse(DockerUpdateImageVersion);
|
|
10
|
+
try {
|
|
11
|
+
let parsedYaml = yaml_1.parse(fs.readFileSync(flags['file-path'], 'utf8'));
|
|
12
|
+
for (let service of flags.services) {
|
|
13
|
+
let image = parsedYaml.services[service].image.split(':');
|
|
14
|
+
image[1] = args.version;
|
|
15
|
+
parsedYaml.services[service].image = image.join(':');
|
|
16
|
+
}
|
|
17
|
+
fs.writeFileSync(flags['file-path'], yaml_1.stringify(parsedYaml));
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
this.error(err.message);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = DockerUpdateImageVersion;
|
|
25
|
+
DockerUpdateImageVersion.description = 'update docker image version docker compose file';
|
|
26
|
+
DockerUpdateImageVersion.usage = 'docker:update-image-version <tag>';
|
|
27
|
+
DockerUpdateImageVersion.examples = [
|
|
28
|
+
`$ ops docker:update-image-version 17.0.0 --service server client`
|
|
29
|
+
];
|
|
30
|
+
DockerUpdateImageVersion.args = [
|
|
31
|
+
{
|
|
32
|
+
name: 'version',
|
|
33
|
+
description: 'version',
|
|
34
|
+
required: true
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
DockerUpdateImageVersion.flags = {
|
|
38
|
+
services: command_1.flags.string({
|
|
39
|
+
required: true,
|
|
40
|
+
description: 'list of services to update',
|
|
41
|
+
multiple: true
|
|
42
|
+
}),
|
|
43
|
+
'file-path': command_1.flags.string({
|
|
44
|
+
default: './docker-compose.yml',
|
|
45
|
+
description: 'list of services to update'
|
|
46
|
+
})
|
|
47
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { flags } from '@oclif/command';
|
|
2
|
+
import CommandBase from '../../command.base';
|
|
3
|
+
import { NpmPackage } from '../../types/npm.types';
|
|
4
|
+
export default class NpmDependencyUpdate extends CommandBase {
|
|
5
|
+
static description: string;
|
|
6
|
+
static usage: string;
|
|
7
|
+
static examples: string[];
|
|
8
|
+
static args: {
|
|
9
|
+
name: string;
|
|
10
|
+
required: boolean;
|
|
11
|
+
description: string;
|
|
12
|
+
}[];
|
|
13
|
+
static flags: {
|
|
14
|
+
filter: flags.IOptionFlag<string[]>;
|
|
15
|
+
exclude: flags.IOptionFlag<string[]>;
|
|
16
|
+
force: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Update dependencies in package.json files for @adinsure packages
|
|
20
|
+
*/
|
|
21
|
+
updateDependencies(newVersion: string, filter: string[] | undefined, packages: NpmPackage[], force?: boolean): Promise<void>;
|
|
22
|
+
run(): Promise<undefined>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@oclif/command");
|
|
4
|
+
const chalk_1 = require("chalk");
|
|
5
|
+
const cli_ux_1 = require("cli-ux");
|
|
6
|
+
const fs = require("fs-extra");
|
|
7
|
+
const minimatch = require("minimatch");
|
|
8
|
+
const semver = require("semver");
|
|
9
|
+
const command_base_1 = require("../../command.base");
|
|
10
|
+
const command_2 = require("../../lib/command");
|
|
11
|
+
const npm_1 = require("../../lib/npm");
|
|
12
|
+
class NpmDependencyUpdate extends command_base_1.default {
|
|
13
|
+
/**
|
|
14
|
+
* Update dependencies in package.json files for @adinsure packages
|
|
15
|
+
*/
|
|
16
|
+
async updateDependencies(newVersion, filter = ['**/*'], packages, force = false) {
|
|
17
|
+
// Find all package.json files that are not in node modules
|
|
18
|
+
for (const path of packages) {
|
|
19
|
+
try {
|
|
20
|
+
let data = await fs.readJSON(path.jsonPath);
|
|
21
|
+
let updatedKeys = [];
|
|
22
|
+
if (data.hasOwnProperty('dependencies')) {
|
|
23
|
+
for (const [key, value] of Object.entries(data.dependencies)) {
|
|
24
|
+
let currentVersion = semver.valid(String(value));
|
|
25
|
+
if (filter.some(pkg => minimatch(key, pkg))) {
|
|
26
|
+
if (currentVersion && semver.gt(currentVersion, newVersion) && !force) {
|
|
27
|
+
this.warn(`Lower of same version for dependency ${key} updated in file ${path.jsonPath}: ${newVersion} vs. ${currentVersion} is ${semver.gt(newVersion, currentVersion)}`);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
data.dependencies[key] = newVersion;
|
|
31
|
+
updatedKeys.push(key);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
fs.writeFileSync(path.jsonPath, JSON.stringify(data, null, 4));
|
|
36
|
+
if (updatedKeys.length > 0) {
|
|
37
|
+
this.log(`Dependencies ${updatedKeys} updated in file ${path.jsonPath}`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (data.hasOwnProperty('devDependencies')) {
|
|
41
|
+
for (const [key, value] of Object.entries(data.devDependencies)) {
|
|
42
|
+
let currentVersion = semver.valid(String(value));
|
|
43
|
+
if (filter.some(pkg => minimatch(key, pkg))) {
|
|
44
|
+
if (currentVersion && semver.gt(currentVersion, newVersion) && !force) {
|
|
45
|
+
this.warn(`Lower of same version for devDependency ${key} updated in file ${path.jsonPath}: ${newVersion} vs. ${currentVersion} is ${semver.gt(newVersion, currentVersion)}`);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
data.devDependencies[key] = newVersion;
|
|
49
|
+
updatedKeys.push(key);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
fs.writeFileSync(path.jsonPath, JSON.stringify(data, null, 4));
|
|
54
|
+
if (updatedKeys.length > 0) {
|
|
55
|
+
this.log(`devDependencies ${updatedKeys} updated in file ${path.jsonPath}`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
catch (err) {
|
|
60
|
+
this.warn(err.message);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async run() {
|
|
66
|
+
const { args, flags } = this.parse(NpmDependencyUpdate);
|
|
67
|
+
let newVersion = semver.valid(args.version);
|
|
68
|
+
let npmContext = new npm_1.default();
|
|
69
|
+
let command = new command_2.default();
|
|
70
|
+
// Stop if version invalid
|
|
71
|
+
if (!newVersion) {
|
|
72
|
+
return this.error(`${chalk_1.default.red('Version in incorrect format')}`);
|
|
73
|
+
}
|
|
74
|
+
const packages = await npmContext.packageList(['**/*'], [''], this);
|
|
75
|
+
try {
|
|
76
|
+
await this.updateDependencies(newVersion, flags.filter, packages, flags.force);
|
|
77
|
+
cli_ux_1.default.action.start(`running 'yarn install'`, undefined, { stdout: true });
|
|
78
|
+
await command.runCommand(['yarn', 'install']);
|
|
79
|
+
cli_ux_1.default.action.stop(`${chalk_1.default.green('done')}`);
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
this.error(err.message);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.default = NpmDependencyUpdate;
|
|
87
|
+
NpmDependencyUpdate.description = 'update npm dependencies per package filter';
|
|
88
|
+
NpmDependencyUpdate.usage = 'npm:dependency-update <type> [flags]';
|
|
89
|
+
NpmDependencyUpdate.examples = [
|
|
90
|
+
`$ ops npm:dependency-update 3.4.3 --filter @adinsure/*`
|
|
91
|
+
];
|
|
92
|
+
NpmDependencyUpdate.args = [
|
|
93
|
+
{
|
|
94
|
+
name: 'version',
|
|
95
|
+
required: true,
|
|
96
|
+
description: 'Type of release'
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
NpmDependencyUpdate.flags = {
|
|
100
|
+
filter: command_1.flags.string({
|
|
101
|
+
description: 'regular expression for which NPM packages to update',
|
|
102
|
+
required: true,
|
|
103
|
+
multiple: true
|
|
104
|
+
}),
|
|
105
|
+
exclude: command_1.flags.string({
|
|
106
|
+
description: 'exclude directories where to search for package.json',
|
|
107
|
+
multiple: true
|
|
108
|
+
}),
|
|
109
|
+
force: command_1.flags.boolean({
|
|
110
|
+
description: 'force update of version regardless of lower vs higher version check',
|
|
111
|
+
default: false
|
|
112
|
+
})
|
|
113
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { flags } from '@oclif/command';
|
|
2
|
+
import CommandBase from '../../command.base';
|
|
3
|
+
export default class NuGetDependencyUpdate extends CommandBase {
|
|
4
|
+
static description: string;
|
|
5
|
+
static usage: string;
|
|
6
|
+
static examples: string[];
|
|
7
|
+
static args: {
|
|
8
|
+
name: string;
|
|
9
|
+
required: boolean;
|
|
10
|
+
description: string;
|
|
11
|
+
}[];
|
|
12
|
+
static flags: {
|
|
13
|
+
filter: flags.IOptionFlag<string>;
|
|
14
|
+
exclude: flags.IOptionFlag<string[]>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Update dependencies in csproj files for @adinsure packages
|
|
18
|
+
*/
|
|
19
|
+
updateDependencies(newVersion: string, filter: string | undefined, packages: string[]): Promise<void>;
|
|
20
|
+
run(): Promise<undefined>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@oclif/command");
|
|
4
|
+
const chalk_1 = require("chalk");
|
|
5
|
+
const fs = require("fs-extra");
|
|
6
|
+
const semver = require("semver");
|
|
7
|
+
const command_base_1 = require("../../command.base");
|
|
8
|
+
const nuget_1 = require("../../lib/nuget");
|
|
9
|
+
class NuGetDependencyUpdate extends command_base_1.default {
|
|
10
|
+
/**
|
|
11
|
+
* Update dependencies in csproj files for @adinsure packages
|
|
12
|
+
*/
|
|
13
|
+
async updateDependencies(newVersion, filter = '', packages) {
|
|
14
|
+
// Find all package.json files that are not in node modules
|
|
15
|
+
for (const path of packages) {
|
|
16
|
+
try {
|
|
17
|
+
let data = await fs.readFile(path, 'utf8');
|
|
18
|
+
let re = new RegExp('(<PackageReference Include=\".*' + filter + '.*\" Version=)\".*\"( />)', 'g');
|
|
19
|
+
let result = data.replace(re, '$1' + '\"' + newVersion + '\"' + '$2');
|
|
20
|
+
await fs.writeFile(path, result, 'utf8');
|
|
21
|
+
}
|
|
22
|
+
catch (err) {
|
|
23
|
+
this.warn(err.message);
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async run() {
|
|
29
|
+
const { args, flags } = this.parse(NuGetDependencyUpdate);
|
|
30
|
+
let newVersion = semver.valid(args.version);
|
|
31
|
+
let nugetContext = new nuget_1.default();
|
|
32
|
+
// Stop if version invalid
|
|
33
|
+
if (!newVersion) {
|
|
34
|
+
return this.error(`${chalk_1.default.red('Version in incorrect format')}`);
|
|
35
|
+
}
|
|
36
|
+
const packages = await nugetContext.projectList(flags.exclude);
|
|
37
|
+
try {
|
|
38
|
+
await this.updateDependencies(newVersion, flags.filter, packages);
|
|
39
|
+
}
|
|
40
|
+
catch (err) {
|
|
41
|
+
this.error(err.message);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.default = NuGetDependencyUpdate;
|
|
46
|
+
NuGetDependencyUpdate.description = 'update nuget dependencies per package filter';
|
|
47
|
+
NuGetDependencyUpdate.usage = 'nuget:dependency-update <type> [flags]';
|
|
48
|
+
NuGetDependencyUpdate.examples = [
|
|
49
|
+
`$ ops nuget:dependency-update 3.4.3 --filter Adacta.AdInsure --exclude Scheduler`
|
|
50
|
+
];
|
|
51
|
+
NuGetDependencyUpdate.args = [
|
|
52
|
+
{
|
|
53
|
+
name: 'version',
|
|
54
|
+
required: true,
|
|
55
|
+
description: 'Type of release'
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
NuGetDependencyUpdate.flags = {
|
|
59
|
+
filter: command_1.flags.string({
|
|
60
|
+
description: 'regular expression for which NuGet packages to update',
|
|
61
|
+
required: true
|
|
62
|
+
}),
|
|
63
|
+
exclude: command_1.flags.string({
|
|
64
|
+
description: 'exclude directories where to search for csproj files',
|
|
65
|
+
multiple: true
|
|
66
|
+
})
|
|
67
|
+
};
|
package/lib/commands/sql.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export default class Sql extends CommandBase {
|
|
|
12
12
|
static flags: {
|
|
13
13
|
version: flags.IOptionFlag<string | undefined>;
|
|
14
14
|
layer: flags.IOptionFlag<string | undefined>;
|
|
15
|
+
offline: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
16
|
+
description: flags.IOptionFlag<string | undefined>;
|
|
15
17
|
};
|
|
16
18
|
private readonly _moduleTypes;
|
|
17
19
|
private readonly _dbmsType;
|
|
@@ -19,6 +21,10 @@ export default class Sql extends CommandBase {
|
|
|
19
21
|
* Get unique scriptID by specified version
|
|
20
22
|
*/
|
|
21
23
|
getScriptId(version: string): Promise<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Get unique scriptID by specified version
|
|
26
|
+
*/
|
|
27
|
+
getOfflineScriptId(version: string, description: string | undefined): Promise<string>;
|
|
22
28
|
handleLayer(scriptDbmsFolder: string, scriptLayer: string, scriptType: string, dbmsFormat: string): Promise<string>;
|
|
23
29
|
run(): Promise<void>;
|
|
24
30
|
}
|
package/lib/commands/sql.js
CHANGED
|
@@ -4,8 +4,10 @@ const command_1 = require("@oclif/command");
|
|
|
4
4
|
const chalk_1 = require("chalk");
|
|
5
5
|
const fs = require("fs-extra");
|
|
6
6
|
const inquirer = require("inquirer");
|
|
7
|
+
const _ = require("lodash");
|
|
7
8
|
const path = require("path");
|
|
8
9
|
const request = require("request-promise");
|
|
10
|
+
const semver = require("semver");
|
|
9
11
|
const command_base_1 = require("../command.base");
|
|
10
12
|
class Sql extends command_base_1.default {
|
|
11
13
|
constructor() {
|
|
@@ -32,6 +34,32 @@ class Sql extends command_base_1.default {
|
|
|
32
34
|
};
|
|
33
35
|
return request.get(options);
|
|
34
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Get unique scriptID by specified version
|
|
39
|
+
*/
|
|
40
|
+
async getOfflineScriptId(version, description) {
|
|
41
|
+
let prefix = '8.50';
|
|
42
|
+
const date = new Date();
|
|
43
|
+
let timestamp = date.getUTCFullYear() +
|
|
44
|
+
('0' + (date.getUTCMonth() + 1)).slice(-2) +
|
|
45
|
+
('0' + (date.getUTCDate())).slice(-2) +
|
|
46
|
+
('0' + (date.getUTCHours())).slice(-2) +
|
|
47
|
+
('0' + (date.getUTCMinutes())).slice(-2) +
|
|
48
|
+
('0' + (date.getUTCSeconds())).slice(-2);
|
|
49
|
+
let versionSplit = version.split('.');
|
|
50
|
+
let scriptId = prefix
|
|
51
|
+
+ '_' +
|
|
52
|
+
('00' + versionSplit[0]).slice(-3)
|
|
53
|
+
+ '.' +
|
|
54
|
+
('00' + versionSplit[1]).slice(-3)
|
|
55
|
+
+ '.' +
|
|
56
|
+
('00' + versionSplit[2]).slice(-3)
|
|
57
|
+
+ '_' + timestamp;
|
|
58
|
+
if (description !== undefined) {
|
|
59
|
+
scriptId = scriptId + '_' + _.snakeCase(description);
|
|
60
|
+
}
|
|
61
|
+
return scriptId;
|
|
62
|
+
}
|
|
35
63
|
async handleLayer(scriptDbmsFolder, scriptLayer, scriptType, dbmsFormat) {
|
|
36
64
|
let scriptFolder = path.resolve(scriptDbmsFolder, scriptLayer, scriptType);
|
|
37
65
|
let layerFolder = path.resolve(scriptDbmsFolder, scriptLayer);
|
|
@@ -53,7 +81,34 @@ class Sql extends command_base_1.default {
|
|
|
53
81
|
return scriptFolder;
|
|
54
82
|
}
|
|
55
83
|
async run() {
|
|
84
|
+
var _a, _b;
|
|
56
85
|
const { args, flags } = this.parse(Sql);
|
|
86
|
+
const fullVersion = flags.version || await this.getVersion('PLATFORM_VERSION', 'VERSION');
|
|
87
|
+
let version = semver.parse(fullVersion);
|
|
88
|
+
if (!version) {
|
|
89
|
+
this.error(`Version in incorrect format. Got version: '${fullVersion}'`);
|
|
90
|
+
}
|
|
91
|
+
else if (((_a = version === null || version === void 0 ? void 0 : version.prerelease) === null || _a === void 0 ? void 0 : _a.length) && ((_b = version === null || version === void 0 ? void 0 : version.prerelease) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
92
|
+
this.warn(`Using prerelease version is not allowed. Got version: '${fullVersion}'.`);
|
|
93
|
+
let responses = await inquirer.prompt([{
|
|
94
|
+
name: 'version',
|
|
95
|
+
message: 'write version you want to use or write "yes" to revert to latest latest patch.',
|
|
96
|
+
type: 'input',
|
|
97
|
+
}]);
|
|
98
|
+
if (responses.version === 'yes' || responses.version === '') {
|
|
99
|
+
version = semver.parse(`${version.major}.0.0`);
|
|
100
|
+
if (!version) {
|
|
101
|
+
this.error(`Version in incorrect format. Got version: '${responses.version}'`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
version = semver.parse(responses.version);
|
|
106
|
+
if (!version) {
|
|
107
|
+
this.error(`Version in incorrect format. Got version: '${responses.version}'`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
this.warn(`${version === null || version === void 0 ? void 0 : version.version} version will be used.`);
|
|
111
|
+
}
|
|
57
112
|
// Validation of input parameters
|
|
58
113
|
let scriptType = args.type;
|
|
59
114
|
if (!scriptType) {
|
|
@@ -61,7 +116,7 @@ class Sql extends command_base_1.default {
|
|
|
61
116
|
name: 'type',
|
|
62
117
|
message: 'select a sql type',
|
|
63
118
|
type: 'list',
|
|
64
|
-
choices: [{ name: '
|
|
119
|
+
choices: [{ name: 'Schema' }, { name: 'Data' }, { name: 'migration' }],
|
|
65
120
|
}]);
|
|
66
121
|
scriptType = responses.type;
|
|
67
122
|
}
|
|
@@ -77,12 +132,6 @@ class Sql extends command_base_1.default {
|
|
|
77
132
|
}
|
|
78
133
|
let scriptLayer = flags.layer;
|
|
79
134
|
this.log(`Generating on SQL script layer:'${scriptLayer}'`);
|
|
80
|
-
const fullVersion = flags.version || await this.getVersion('PLATFORM_VERSION', 'VERSION');
|
|
81
|
-
let version = fullVersion.split('-')[0];
|
|
82
|
-
let versionRegex = /\d+\.\d+\.\d+/;
|
|
83
|
-
if (!(versionRegex.test(version))) {
|
|
84
|
-
this.error(`Version in incorrect format. Got version: '${version}'`);
|
|
85
|
-
}
|
|
86
135
|
let scriptsRootFolder = path.resolve(await this.getGitRoot(), 'database');
|
|
87
136
|
if (!await fs.pathExists(scriptsRootFolder)) {
|
|
88
137
|
this.error(`Could not resolve database scripts folder: ${scriptsRootFolder}`);
|
|
@@ -107,8 +156,15 @@ class Sql extends command_base_1.default {
|
|
|
107
156
|
}
|
|
108
157
|
// Validation of parameters succeed. Requesting new SQL script ID and creating file.
|
|
109
158
|
this.log(`Requesting new id for '${version}'`);
|
|
110
|
-
let scriptId =
|
|
111
|
-
|
|
159
|
+
let scriptId = '';
|
|
160
|
+
if (flags.offline) {
|
|
161
|
+
scriptId = await this.getOfflineScriptId(version.version, flags.description);
|
|
162
|
+
this.log(`Generation script: '${chalk_1.default.green(scriptId + '.sql')}'`);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
scriptId = await this.getScriptId(version.version);
|
|
166
|
+
this.log(`Got: '${chalk_1.default.green(scriptId)}'`);
|
|
167
|
+
}
|
|
112
168
|
for (let scriptFolder of scriptFolderLocations) {
|
|
113
169
|
let scriptsFilePath = path.resolve(scriptFolder, `${scriptId}.sql`);
|
|
114
170
|
await fs.writeFile(scriptsFilePath, '');
|
|
@@ -127,7 +183,7 @@ Sql.args = [
|
|
|
127
183
|
{
|
|
128
184
|
name: 'type',
|
|
129
185
|
description: 'Type of database scripts',
|
|
130
|
-
options: ['
|
|
186
|
+
options: ['Schema', 'Data', 'migration']
|
|
131
187
|
},
|
|
132
188
|
{
|
|
133
189
|
name: 'module',
|
|
@@ -143,5 +199,15 @@ Sql.flags = {
|
|
|
143
199
|
layer: command_1.flags.string({
|
|
144
200
|
char: 'l',
|
|
145
201
|
description: 'name of the configuration layer for which you are generating database script'
|
|
202
|
+
}),
|
|
203
|
+
offline: command_1.flags.boolean({
|
|
204
|
+
char: 'o',
|
|
205
|
+
description: 'generate database script with timestamp',
|
|
206
|
+
default: false
|
|
207
|
+
}),
|
|
208
|
+
description: command_1.flags.string({
|
|
209
|
+
char: 'd',
|
|
210
|
+
description: 'description of script to be used in filename for offline',
|
|
211
|
+
dependsOn: ['offline']
|
|
146
212
|
})
|
|
147
213
|
};
|
|
@@ -42,10 +42,16 @@ class Translate extends command_base_1.default {
|
|
|
42
42
|
return response;
|
|
43
43
|
}
|
|
44
44
|
catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
let errorMessage;
|
|
46
|
+
try {
|
|
47
|
+
const errorJson = JSON.parse(error.error);
|
|
48
|
+
errorMessage = `An error has occurred: ${errorJson.ExceptionMessage}`;
|
|
49
|
+
}
|
|
50
|
+
catch (_a) {
|
|
51
|
+
errorMessage = error.message;
|
|
52
|
+
}
|
|
47
53
|
this.log(chalk_1.default.red(errorMessage));
|
|
48
|
-
throw
|
|
54
|
+
throw error;
|
|
49
55
|
}
|
|
50
56
|
}
|
|
51
57
|
/**
|
package/lib/lib/npm.js
CHANGED
|
@@ -32,10 +32,10 @@ class NpmContext {
|
|
|
32
32
|
async packageList(packages = ['**/*'], excludes = [''], context) {
|
|
33
33
|
try {
|
|
34
34
|
let workspaces = await this.getWorkspaces();
|
|
35
|
-
let searchPattern = ['**/package.json', '!**/node_modules'];
|
|
35
|
+
let searchPattern = ['package.json', '**/package.json', '!**/node_modules'];
|
|
36
36
|
let pkgs = [];
|
|
37
37
|
if (workspaces.length > 0) {
|
|
38
|
-
searchPattern = workspaces.concat(['!**/node_modules']);
|
|
38
|
+
searchPattern = workspaces.concat(['package.json', '!**/node_modules']);
|
|
39
39
|
}
|
|
40
40
|
const pkgPaths = await globby(searchPattern);
|
|
41
41
|
for (const pkgPath of pkgPaths) {
|
package/lib/lib/nuget.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const chalk_1 = require("chalk");
|
|
4
|
+
const globby = require("globby");
|
|
5
|
+
class NugetContext {
|
|
6
|
+
/**
|
|
7
|
+
* Get package names
|
|
8
|
+
*/
|
|
9
|
+
async projectList(exclude = []) {
|
|
10
|
+
try {
|
|
11
|
+
let searchPattern = ['**/*.csproj'];
|
|
12
|
+
for (const exc of exclude) {
|
|
13
|
+
searchPattern.push('!**/*' + exc + '*');
|
|
14
|
+
}
|
|
15
|
+
const pkgPaths = await globby(searchPattern);
|
|
16
|
+
return pkgPaths; // return array of values
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
throw new Error(`Unknown error: ${chalk_1.default.red(err)}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = NugetContext;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"4.2.0","commands":{"doctor":{"id":"doctor","description":"check if everyting is installed","usage":"doctor","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops doctor"],"flags":{"fix":{"name":"fix","type":"boolean","char":"p","description":"try to install missing packages","allowNo":false}},"args":[]},"login":{"id":"login","description":"log in to use ops services","usage":"login","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops login","$ ops login --npm","$ ops login --skipCi CI","$ ops login --deviceFlow"],"flags":{"servicePrincipal":{"name":"servicePrincipal","type":"boolean","description":"authenticate using service principal credentials","allowNo":false},"deviceFlow":{"name":"deviceFlow","type":"boolean","description":"authenticate using device flow","allowNo":false},"clientId":{"name":"clientId","type":"option","char":"c","description":"[DEPRECATED] (application) client id"},"secret":{"name":"secret","type":"option","char":"s","description":"[DEPRECATED] client secret"},"npm":{"name":"npm","type":"boolean","description":"register also for npm","allowNo":false},"skipCI":{"name":"skipCI","type":"option","description":"Skip login if environment variables is set"}},"args":[]},"prepare-content":{"id":"prepare-content","description":"copies files as described in .opsprepare which is at root of source directory","usage":"prepare-content -d <destination> [-s <source>]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops prepare-content -d .\\my_workspace","$ ops prepare-content -d .\\my_workspace -s .\\my_repository","$ ops prepare-content -d C:\\git\\my_workspace","$ ops prepare-content -d C:\\git\\my_workspace -s C:\\git\\my_repository\\my_repository"],"flags":{"destination":{"name":"destination","type":"option","char":"d","description":"where to copy the workspace files","required":true},"source":{"name":"source","type":"option","char":"s","description":"[optional] source directory, default: current dir","required":false,"default":"."}},"args":[]},"sql":{"id":"sql","description":"creates a new database script","usage":"sql <type> <module> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops sql schema ","$ ops sql data shared --layer basic"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating database script"},"layer":{"name":"layer","type":"option","char":"l","description":"name of the configuration layer for which you are generating database script"}},"args":[{"name":"type","description":"Type of database scripts","options":["schema","data","migration"]},{"name":"module","description":"Module of data database scripts","options":["acc","claims","core","pas","reins","shared"]}]},"translate":{"id":"translate","description":"downloads translate from AdDictionary service","usage":"translate <language> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f json -m \"Client business accounting;Client business base;\"","$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f xml -o translationDestination"],"flags":{"format":{"name":"format","type":"option","char":"f","description":"translations format [xml - server translations, json - client translations]","required":true,"options":["json","xml"]},"module":{"name":"module","type":"option","char":"m","description":"module name you want to download. Values must be semi-colon (;) separated."},"output":{"name":"output","type":"option","char":"o","description":"absolute or relative destination path to a folder where translations are extracted.","default":"."},"filename":{"name":"filename","type":"option","description":"specify filename of output (XML only)."},"respectServerFilename":{"name":"respectServerFilename","type":"boolean","description":"respect filename that is returned from AdDictionary server (XML only).","allowNo":false}},"args":[{"name":"language","description":"language id you want to download. Values must be semi-colon (;) separated.","required":true}]},"version":{"id":"version","description":"release new version","usage":"version <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops version patch","$ ops version prerelease -i","$ ops version new -v 3.4.3"],"flags":{"independent":{"name":"independent","type":"boolean","char":"i","description":"increment npm packages independent of VERSION file","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"force version"},"script-prefix":{"name":"script-prefix","type":"option","description":"prefix for db script version creation. (default: 7.10)","default":"7.10"},"no-deps":{"name":"no-deps","type":"boolean","description":"skip dependency update","allowNo":false},"no-script":{"name":"no-script","type":"boolean","description":"skip creation of script","allowNo":false},"only-npm-packages":{"name":"only-npm-packages","type":"option","description":"regular expression for which NPM packages to include","default":".*"},"exclude-dir":{"name":"exclude-dir","type":"option","description":"exclude directories where to search for package.json"}},"args":[{"name":"type","description":"Type of release","required":true,"options":["patch","minor","major","prerelease","preminor","premajor","new"]}]},"download:client":{"id":"download:client","description":"download AdInsure Client zip from Azure storage","usage":"download:client <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:client -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:identity-server":{"id":"download:identity-server","description":"download AdInsure Identity Server zip from Azure storage","usage":"download:identity-server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:identity-server -v 3.0.3 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:platform":{"id":"download:platform","description":"download AdInsure Platform bundle containing zip of Client, Server and IdentityServer from azure storage","usage":"download <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["download"],"examples":["$ ops download -v 6.0.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:scheduler":{"id":"download:scheduler","description":"download AdInsure Scheduler zip from azure storage","usage":"download:scheduler <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:scheduler -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:server":{"id":"download:server","description":"download AdInsure Server zip from Azure storage","usage":"download:server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:server -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:studio":{"id":"download:studio","description":"download AdInsure Studio vsix from azure storage","usage":"download:studio <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:studio -v 15.0.0 -o ~/Downloads","$ ops download:studio -v 15.0.0 -i"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"},"install":{"name":"install","type":"boolean","char":"i","description":"install plugin to vscode. save to temp folder and remove vsix after.","allowNo":false}},"args":[]},"gitlab:get-tag-pipeline":{"id":"gitlab:get-tag-pipeline","description":"get pipeline status for tag","usage":"gitlab:get-tag-pipeline <tag>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:get-tag-pipeline 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"wait":{"name":"wait","type":"boolean","description":"Wait for pipeline to finish","allowNo":false},"timeout":{"name":"timeout","type":"option","description":"Timeout for wait command in seconds (defaults to 120 seconds)","default":"120"},"delay":{"name":"delay","type":"option","description":"Delay of check in seconds (defaults to 5 seconds)","default":"5"}},"args":[{"name":"tag","description":"Tag","required":true}]},"gitlab:next-nightly-tag":{"id":"gitlab:next-nightly-tag","description":"creates new gitlab tag","usage":"gitlab:next-nightly-tag <version>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:next-nightly-tag 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"reference":{"name":"reference","type":"option","description":"Reference to create tag on (branch, commit, tag)","required":true},"outputVersionOnly":{"name":"outputVersionOnly","type":"boolean","description":"output only version instead of pretty output","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","description":"Only printout version and don't create it","allowNo":false}},"args":[{"name":"version","description":"Tag version"}]},"jira:issue":{"id":"jira:issue","description":"get Jira issue","usage":"jira:issue <issue>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:issue LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"jira:labels":{"id":"jira:labels","description":"list or edit labels on Jira issue","usage":"jira:labels <issue> -a [label] -r [label]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:labels LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"},"add":{"name":"add","type":"option","char":"a","description":"add label"},"remove":{"name":"remove","type":"option","char":"r","description":"remove label"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"log:add":{"id":"log:add","description":"creates a new changelog entry","usage":"log <issue> -t [type] -c [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log","log:add"],"examples":["$ ops log LJADIRD-1234 -t feature","$ ops log LJADIRD-5678 -t fixed","$ ops log LJADIRD-8765 -t breaking -c Platform","$ ops log LJADIRD-4321 -t improve -c Configuration"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of changelog","options":["feature","fixed","improve","breaking"]},"component":{"name":"component","type":"option","char":"c","description":"Component for which new changelog should be generated","default":""}},"args":[{"name":"issue","description":"Jira issue number"}]},"log:generate":{"id":"log:generate","description":"generates final changelog from unreleased notes","usage":"log:gen [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:gen"],"examples":["$ ops log:gen","$ ops log:gen -p","$ ops log:gen -c Platform","$ ops log:gen -c Platform,Configuration","$ ops log:gen -c Implementation -f CHANGELOG.Implementation.md"],"flags":{"components":{"name":"components","type":"option","char":"c","description":"components separated by comma (,) to process for final changelog","default":""},"file":{"name":"file","type":"option","char":"f","description":"file to update with new changelogs","default":"CHANGELOG.md"},"force":{"name":"force","type":"boolean","description":"update target file without prompting for confirmation","allowNo":false},"preview":{"name":"preview","type":"boolean","char":"p","description":"generates a preview markdown of current unreleased changelogs","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating changelogs"},"ignore-no-changelogs":{"name":"ignore-no-changelogs","type":"boolean","description":"generate final changelog even if no unreleased changelogs exist","allowNo":false}},"args":[]},"log:validate":{"id":"log:validate","description":"validates formatting of all unreleased changelogs","usage":"log:validate [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:validate"],"examples":["$ ops log:validate"],"flags":{},"args":[]},"npm:check-publish":{"id":"npm:check-publish","description":"check if npm packages were published","usage":"npm:check-publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:check-publish -v 6.0.1","$ ops npm:check-publish -p @adinsure/* -v 6.0.0","$ ops npm:check-publish -p @adinsure/* -x @adisure/demo -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"}},"args":[]},"npm:publish":{"id":"npm:publish","description":"Publish npm packages","usage":"npm:publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:publish -v 15.0.0","$ ops npm:publish -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -x @adisure-tooling/studio-services -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"}},"args":[]}}}
|
|
1
|
+
{"version":"4.4.0","commands":{"doctor":{"id":"doctor","description":"check if everyting is installed","usage":"doctor","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops doctor"],"flags":{"fix":{"name":"fix","type":"boolean","char":"p","description":"try to install missing packages","allowNo":false}},"args":[]},"login":{"id":"login","description":"log in to use ops services","usage":"login","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops login","$ ops login --npm","$ ops login --skipCi CI","$ ops login --deviceFlow"],"flags":{"servicePrincipal":{"name":"servicePrincipal","type":"boolean","description":"authenticate using service principal credentials","allowNo":false},"deviceFlow":{"name":"deviceFlow","type":"boolean","description":"authenticate using device flow","allowNo":false},"clientId":{"name":"clientId","type":"option","char":"c","description":"[DEPRECATED] (application) client id"},"secret":{"name":"secret","type":"option","char":"s","description":"[DEPRECATED] client secret"},"npm":{"name":"npm","type":"boolean","description":"register also for npm","allowNo":false},"skipCI":{"name":"skipCI","type":"option","description":"Skip login if environment variables is set"}},"args":[]},"prepare-content":{"id":"prepare-content","description":"copies files as described in .opsprepare which is at root of source directory","usage":"prepare-content -d <destination> [-s <source>]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops prepare-content -d .\\my_workspace","$ ops prepare-content -d .\\my_workspace -s .\\my_repository","$ ops prepare-content -d C:\\git\\my_workspace","$ ops prepare-content -d C:\\git\\my_workspace -s C:\\git\\my_repository\\my_repository"],"flags":{"destination":{"name":"destination","type":"option","char":"d","description":"where to copy the workspace files","required":true},"source":{"name":"source","type":"option","char":"s","description":"[optional] source directory, default: current dir","required":false,"default":"."}},"args":[]},"sql":{"id":"sql","description":"creates a new database script","usage":"sql <type> <module> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops sql schema ","$ ops sql data shared --layer basic"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating database script"},"layer":{"name":"layer","type":"option","char":"l","description":"name of the configuration layer for which you are generating database script"},"offline":{"name":"offline","type":"boolean","char":"o","description":"generate database script with timestamp","allowNo":false},"description":{"name":"description","type":"option","char":"d","description":"description of script to be used in filename for offline"}},"args":[{"name":"type","description":"Type of database scripts","options":["Schema","Data","migration"]},{"name":"module","description":"Module of data database scripts","options":["acc","claims","core","pas","reins","shared"]}]},"translate":{"id":"translate","description":"downloads translate from AdDictionary service","usage":"translate <language> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f json -m \"Client business accounting;Client business base;\"","$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f xml -o translationDestination"],"flags":{"format":{"name":"format","type":"option","char":"f","description":"translations format [xml - server translations, json - client translations]","required":true,"options":["json","xml"]},"module":{"name":"module","type":"option","char":"m","description":"module name you want to download. Values must be semi-colon (;) separated."},"output":{"name":"output","type":"option","char":"o","description":"absolute or relative destination path to a folder where translations are extracted.","default":"."},"filename":{"name":"filename","type":"option","description":"specify filename of output (XML only)."},"respectServerFilename":{"name":"respectServerFilename","type":"boolean","description":"respect filename that is returned from AdDictionary server (XML only).","allowNo":false}},"args":[{"name":"language","description":"language id you want to download. Values must be semi-colon (;) separated.","required":true}]},"version":{"id":"version","description":"release new version","usage":"version <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops version patch","$ ops version prerelease -i","$ ops version new -v 3.4.3"],"flags":{"independent":{"name":"independent","type":"boolean","char":"i","description":"increment npm packages independent of VERSION file","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"force version"},"script-prefix":{"name":"script-prefix","type":"option","description":"prefix for db script version creation. (default: 7.10)","default":"7.10"},"no-deps":{"name":"no-deps","type":"boolean","description":"skip dependency update","allowNo":false},"no-script":{"name":"no-script","type":"boolean","description":"skip creation of script","allowNo":false},"only-npm-packages":{"name":"only-npm-packages","type":"option","description":"regular expression for which NPM packages to include","default":".*"},"exclude-dir":{"name":"exclude-dir","type":"option","description":"exclude directories where to search for package.json"}},"args":[{"name":"type","description":"Type of release","required":true,"options":["patch","minor","major","prerelease","preminor","premajor","new"]}]},"docker:update-image-version":{"id":"docker:update-image-version","description":"update docker image version docker compose file","usage":"docker:update-image-version <tag>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops docker:update-image-version 17.0.0 --service server client"],"flags":{"services":{"name":"services","type":"option","description":"list of services to update","required":true},"file-path":{"name":"file-path","type":"option","description":"list of services to update","default":"./docker-compose.yml"}},"args":[{"name":"version","description":"version","required":true}]},"download:client":{"id":"download:client","description":"download AdInsure Client zip from Azure storage","usage":"download:client <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:client -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:identity-server":{"id":"download:identity-server","description":"download AdInsure Identity Server zip from Azure storage","usage":"download:identity-server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:identity-server -v 3.0.3 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:platform":{"id":"download:platform","description":"download AdInsure Platform bundle containing zip of Client, Server and IdentityServer from azure storage","usage":"download <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["download"],"examples":["$ ops download -v 6.0.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:scheduler":{"id":"download:scheduler","description":"download AdInsure Scheduler zip from azure storage","usage":"download:scheduler <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:scheduler -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:server":{"id":"download:server","description":"download AdInsure Server zip from Azure storage","usage":"download:server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:server -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:studio":{"id":"download:studio","description":"download AdInsure Studio vsix from azure storage","usage":"download:studio <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:studio -v 15.0.0 -o ~/Downloads","$ ops download:studio -v 15.0.0 -i"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"},"install":{"name":"install","type":"boolean","char":"i","description":"install plugin to vscode. save to temp folder and remove vsix after.","allowNo":false}},"args":[]},"gitlab:get-tag-pipeline":{"id":"gitlab:get-tag-pipeline","description":"get pipeline status for tag","usage":"gitlab:get-tag-pipeline <tag>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:get-tag-pipeline 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"wait":{"name":"wait","type":"boolean","description":"Wait for pipeline to finish","allowNo":false},"timeout":{"name":"timeout","type":"option","description":"Timeout for wait command in seconds (defaults to 120 seconds)","default":"120"},"delay":{"name":"delay","type":"option","description":"Delay of check in seconds (defaults to 5 seconds)","default":"5"}},"args":[{"name":"tag","description":"Tag","required":true}]},"gitlab:next-nightly-tag":{"id":"gitlab:next-nightly-tag","description":"creates new gitlab tag","usage":"gitlab:next-nightly-tag <version>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:next-nightly-tag 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"reference":{"name":"reference","type":"option","description":"Reference to create tag on (branch, commit, tag)","required":true},"outputVersionOnly":{"name":"outputVersionOnly","type":"boolean","description":"output only version instead of pretty output","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","description":"Only printout version and don't create it","allowNo":false}},"args":[{"name":"version","description":"Tag version"}]},"jira:issue":{"id":"jira:issue","description":"get Jira issue","usage":"jira:issue <issue>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:issue LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"jira:labels":{"id":"jira:labels","description":"list or edit labels on Jira issue","usage":"jira:labels <issue> -a [label] -r [label]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:labels LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"},"add":{"name":"add","type":"option","char":"a","description":"add label"},"remove":{"name":"remove","type":"option","char":"r","description":"remove label"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"log:add":{"id":"log:add","description":"creates a new changelog entry","usage":"log <issue> -t [type] -c [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log","log:add"],"examples":["$ ops log LJADIRD-1234 -t feature","$ ops log LJADIRD-5678 -t fixed","$ ops log LJADIRD-8765 -t breaking -c Platform","$ ops log LJADIRD-4321 -t improve -c Configuration"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of changelog","options":["feature","fixed","improve","breaking"]},"component":{"name":"component","type":"option","char":"c","description":"Component for which new changelog should be generated","default":""}},"args":[{"name":"issue","description":"Jira issue number"}]},"log:generate":{"id":"log:generate","description":"generates final changelog from unreleased notes","usage":"log:gen [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:gen"],"examples":["$ ops log:gen","$ ops log:gen -p","$ ops log:gen -c Platform","$ ops log:gen -c Platform,Configuration","$ ops log:gen -c Implementation -f CHANGELOG.Implementation.md"],"flags":{"components":{"name":"components","type":"option","char":"c","description":"components separated by comma (,) to process for final changelog","default":""},"file":{"name":"file","type":"option","char":"f","description":"file to update with new changelogs","default":"CHANGELOG.md"},"force":{"name":"force","type":"boolean","description":"update target file without prompting for confirmation","allowNo":false},"preview":{"name":"preview","type":"boolean","char":"p","description":"generates a preview markdown of current unreleased changelogs","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating changelogs"},"ignore-no-changelogs":{"name":"ignore-no-changelogs","type":"boolean","description":"generate final changelog even if no unreleased changelogs exist","allowNo":false}},"args":[]},"log:validate":{"id":"log:validate","description":"validates formatting of all unreleased changelogs","usage":"log:validate [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:validate"],"examples":["$ ops log:validate"],"flags":{},"args":[]},"npm:check-publish":{"id":"npm:check-publish","description":"check if npm packages were published","usage":"npm:check-publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:check-publish -v 6.0.1","$ ops npm:check-publish -p @adinsure/* -v 6.0.0","$ ops npm:check-publish -p @adinsure/* -x @adisure/demo -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"}},"args":[]},"npm:dependency-update":{"id":"npm:dependency-update","description":"update npm dependencies per package filter","usage":"npm:dependency-update <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:dependency-update 3.4.3 --filter @adinsure/*"],"flags":{"filter":{"name":"filter","type":"option","description":"regular expression for which NPM packages to update","required":true},"exclude":{"name":"exclude","type":"option","description":"exclude directories where to search for package.json"},"force":{"name":"force","type":"boolean","description":"force update of version regardless of lower vs higher version check","allowNo":false}},"args":[{"name":"version","description":"Type of release","required":true}]},"npm:publish":{"id":"npm:publish","description":"Publish npm packages","usage":"npm:publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:publish -v 15.0.0","$ ops npm:publish -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -x @adisure-tooling/studio-services -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"}},"args":[]},"nuget:dependency-update":{"id":"nuget:dependency-update","description":"update nuget dependencies per package filter","usage":"nuget:dependency-update <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops nuget:dependency-update 3.4.3 --filter Adacta.AdInsure --exclude Scheduler"],"flags":{"filter":{"name":"filter","type":"option","description":"regular expression for which NuGet packages to update","required":true},"exclude":{"name":"exclude","type":"option","description":"exclude directories where to search for csproj files"}},"args":[{"name":"version","description":"Type of release","required":true}]}}}
|
package/package.json
CHANGED
|
@@ -1,116 +1,117 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@azure/msal-node": "^1.9.0",
|
|
11
|
-
"@oclif/command": "^1",
|
|
12
|
-
"@oclif/config": "^1",
|
|
13
|
-
"@oclif/plugin-help": "^2",
|
|
14
|
-
"@oclif/plugin-not-found": "^1.2.2",
|
|
15
|
-
"@oclif/plugin-update": "^1.3.9",
|
|
16
|
-
"@oclif/plugin-warn-if-update-available": "^1.7.0",
|
|
17
|
-
"@types/semver": "^6.0.2",
|
|
18
|
-
"axios": "^0.27.2",
|
|
19
|
-
"chalk": "^2.4.2",
|
|
20
|
-
"cli-ux": "^5.2.1",
|
|
21
|
-
"fs-extra": "^8.0.1",
|
|
22
|
-
"globby": "^10.0.0",
|
|
23
|
-
"gray-matter": "^4.0.2",
|
|
24
|
-
"ini": "^3.0.0",
|
|
25
|
-
"inquirer": "^7.3.3",
|
|
26
|
-
"jira-client": "^6.23.0",
|
|
27
|
-
"jszip": "^3.2.2",
|
|
28
|
-
"lodash": "^4.17.11",
|
|
29
|
-
"minimatch": "^3.0.4",
|
|
30
|
-
"moment": "^2.24.0",
|
|
31
|
-
"oauth": "^0.9.15",
|
|
32
|
-
"open": "^6.4.0",
|
|
33
|
-
"replace-in-file": "^4.3.1",
|
|
34
|
-
"request-promise": "^4.2.4",
|
|
35
|
-
"rimraf": "^2.6.3",
|
|
36
|
-
"semver": "^7.3.7",
|
|
37
|
-
"tslib": "^1"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@oclif/dev-cli": "^1",
|
|
41
|
-
"@oclif/test": "^1",
|
|
42
|
-
"@oclif/tslint": "^3",
|
|
43
|
-
"@types/chai": "^4",
|
|
44
|
-
"@types/fs-extra": "^7.0.0",
|
|
45
|
-
"@types/ini": "^1.3.31",
|
|
46
|
-
"@types/inquirer": "^7.3.1",
|
|
47
|
-
"@types/jira-client": "^6.21.3",
|
|
48
|
-
"@types/jszip": "^3.4.1",
|
|
49
|
-
"@types/mocha": "^5",
|
|
50
|
-
"@types/mock-fs": "^3.6.30",
|
|
51
|
-
"@types/node": "^10",
|
|
52
|
-
"@types/oauth": "^0.9.1",
|
|
53
|
-
"@types/request-promise": "^4.1.44",
|
|
54
|
-
"@types/rimraf": "^2.0.2",
|
|
55
|
-
"chai": "^4",
|
|
56
|
-
"mocha": "^5",
|
|
57
|
-
"mock-fs": "^5.1.1",
|
|
58
|
-
"mock-spawn": "^0.2.6",
|
|
59
|
-
"nock": "^13.1.3",
|
|
60
|
-
"nyc": "^15.0.0",
|
|
61
|
-
"timekeeper": "^2.2.0",
|
|
62
|
-
"ts-node": "^8",
|
|
63
|
-
"tslint": "^5",
|
|
64
|
-
"typescript": "^3.3"
|
|
65
|
-
},
|
|
66
|
-
"engines": {
|
|
67
|
-
"node": "^12 || ^14 || ^16"
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"/bin",
|
|
71
|
-
"/lib",
|
|
72
|
-
"/npm-shrinkwrap.json",
|
|
73
|
-
"/oclif.manifest.json"
|
|
74
|
-
],
|
|
75
|
-
"homepage": "https://git.adacta-fintech.com/ops/ops-cli",
|
|
76
|
-
"keywords": [
|
|
77
|
-
"operations",
|
|
78
|
-
"cli"
|
|
79
|
-
],
|
|
80
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
81
|
-
"main": "lib/index.js",
|
|
82
|
-
"oclif": {
|
|
83
|
-
"commands": "./lib/commands",
|
|
84
|
-
"bin": "ops",
|
|
85
|
-
"hooks": {
|
|
86
|
-
"init": "./lib/hooks/init/version-override"
|
|
2
|
+
"name": "@adinsure-ops/ops-cli",
|
|
3
|
+
"description": "Operations CLI for working with AdInsure",
|
|
4
|
+
"version": "4.4.0",
|
|
5
|
+
"author": "Adacta Digital Service Department",
|
|
6
|
+
"bin": {
|
|
7
|
+
"ops": "./bin/run"
|
|
87
8
|
},
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@azure/msal-node": "^1.9.0",
|
|
11
|
+
"@oclif/command": "^1",
|
|
12
|
+
"@oclif/config": "^1",
|
|
13
|
+
"@oclif/plugin-help": "^2",
|
|
14
|
+
"@oclif/plugin-not-found": "^1.2.2",
|
|
15
|
+
"@oclif/plugin-update": "^1.3.9",
|
|
16
|
+
"@oclif/plugin-warn-if-update-available": "^1.7.0",
|
|
17
|
+
"@types/semver": "^6.0.2",
|
|
18
|
+
"axios": "^0.27.2",
|
|
19
|
+
"chalk": "^2.4.2",
|
|
20
|
+
"cli-ux": "^5.2.1",
|
|
21
|
+
"fs-extra": "^8.0.1",
|
|
22
|
+
"globby": "^10.0.0",
|
|
23
|
+
"gray-matter": "^4.0.2",
|
|
24
|
+
"ini": "^3.0.0",
|
|
25
|
+
"inquirer": "^7.3.3",
|
|
26
|
+
"jira-client": "^6.23.0",
|
|
27
|
+
"jszip": "^3.2.2",
|
|
28
|
+
"lodash": "^4.17.11",
|
|
29
|
+
"minimatch": "^3.0.4",
|
|
30
|
+
"moment": "^2.24.0",
|
|
31
|
+
"oauth": "^0.9.15",
|
|
32
|
+
"open": "^6.4.0",
|
|
33
|
+
"replace-in-file": "^4.3.1",
|
|
34
|
+
"request-promise": "^4.2.4",
|
|
35
|
+
"rimraf": "^2.6.3",
|
|
36
|
+
"semver": "^7.3.7",
|
|
37
|
+
"tslib": "^1",
|
|
38
|
+
"yaml": "^2.1.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@oclif/dev-cli": "^1",
|
|
42
|
+
"@oclif/test": "^1",
|
|
43
|
+
"@oclif/tslint": "^3",
|
|
44
|
+
"@types/chai": "^4",
|
|
45
|
+
"@types/fs-extra": "^7.0.0",
|
|
46
|
+
"@types/ini": "^1.3.31",
|
|
47
|
+
"@types/inquirer": "^7.3.1",
|
|
48
|
+
"@types/jira-client": "^6.21.3",
|
|
49
|
+
"@types/jszip": "^3.4.1",
|
|
50
|
+
"@types/mocha": "^5",
|
|
51
|
+
"@types/mock-fs": "^4.13.1",
|
|
52
|
+
"@types/node": "^10",
|
|
53
|
+
"@types/oauth": "^0.9.1",
|
|
54
|
+
"@types/request-promise": "^4.1.44",
|
|
55
|
+
"@types/rimraf": "^2.0.2",
|
|
56
|
+
"chai": "^4",
|
|
57
|
+
"mocha": "^5",
|
|
58
|
+
"mock-fs": "^5.1.1",
|
|
59
|
+
"mock-spawn": "^0.2.6",
|
|
60
|
+
"nock": "^13.1.3",
|
|
61
|
+
"nyc": "^15.0.0",
|
|
62
|
+
"timekeeper": "^2.2.0",
|
|
63
|
+
"ts-node": "^8",
|
|
64
|
+
"tslint": "^5",
|
|
65
|
+
"typescript": "^3.3"
|
|
66
|
+
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": "^12 || ^14 || ^16"
|
|
69
|
+
},
|
|
70
|
+
"files": [
|
|
71
|
+
"/bin",
|
|
72
|
+
"/lib",
|
|
73
|
+
"/npm-shrinkwrap.json",
|
|
74
|
+
"/oclif.manifest.json"
|
|
93
75
|
],
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
"homepage": "https://git.adacta-fintech.com/ops/ops-cli",
|
|
77
|
+
"keywords": [
|
|
78
|
+
"operations",
|
|
79
|
+
"cli"
|
|
80
|
+
],
|
|
81
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
82
|
+
"main": "lib/index.js",
|
|
83
|
+
"oclif": {
|
|
84
|
+
"commands": "./lib/commands",
|
|
85
|
+
"bin": "ops",
|
|
86
|
+
"hooks": {
|
|
87
|
+
"init": "./lib/hooks/init/version-override"
|
|
88
|
+
},
|
|
89
|
+
"plugins": [
|
|
90
|
+
"@oclif/plugin-help",
|
|
91
|
+
"@oclif/plugin-not-found",
|
|
92
|
+
"@oclif/plugin-warn-if-update-available",
|
|
93
|
+
"@oclif/plugin-update"
|
|
94
|
+
],
|
|
95
|
+
"warn-if-update-available": {
|
|
96
|
+
"timeoutInDays": 1,
|
|
97
|
+
"message": "ops-cli update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."
|
|
98
|
+
},
|
|
99
|
+
"update": {
|
|
100
|
+
"s3": {
|
|
101
|
+
"host": "https://adinsure.blob.core.windows.net/ops-cli"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"repository": "ops/ops-cli",
|
|
106
|
+
"scripts": {
|
|
107
|
+
"postpack": "rimraf oclif.manifest.json",
|
|
108
|
+
"prepack": "rimraf lib && tsc -b && oclif-dev manifest",
|
|
109
|
+
"test": "nyc --extension .ts mocha --timeout 20000 --forbid-only \"test/**/*.test.ts\"",
|
|
110
|
+
"test-with-coverage": "nyc --extension .ts mocha --reporter=doc --timeout 20000 --forbid-only \"test/**/*.test.ts\"",
|
|
111
|
+
"test-single": "nyc --extension .ts mocha --timeout 20000 --forbid-only",
|
|
112
|
+
"test-single-with-coverage": "nyc --extension .ts mocha --reporter=doc --timeout 20000 --forbid-only",
|
|
113
|
+
"lint": "tslint -p test -t stylish",
|
|
114
|
+
"preversion": "yarn test"
|
|
97
115
|
},
|
|
98
|
-
"
|
|
99
|
-
"s3": {
|
|
100
|
-
"host": "https://adinsure.blob.core.windows.net/ops-cli"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"repository": "ops/ops-cli",
|
|
105
|
-
"scripts": {
|
|
106
|
-
"postpack": "rimraf oclif.manifest.json",
|
|
107
|
-
"prepack": "rimraf lib && tsc -b && oclif-dev manifest",
|
|
108
|
-
"test": "nyc --extension .ts mocha --timeout 20000 --forbid-only \"test/**/*.test.ts\"",
|
|
109
|
-
"test-with-coverage": "nyc --extension .ts mocha --reporter=doc --timeout 20000 --forbid-only \"test/**/*.test.ts\"",
|
|
110
|
-
"test-single": "nyc --extension .ts mocha --timeout 20000 --forbid-only",
|
|
111
|
-
"test-single-with-coverage": "nyc --extension .ts mocha --reporter=doc --timeout 20000 --forbid-only",
|
|
112
|
-
"lint": "tslint -p test -t stylish",
|
|
113
|
-
"preversion": "yarn test"
|
|
114
|
-
},
|
|
115
|
-
"types": "lib/index.d.ts"
|
|
116
|
+
"types": "lib/index.d.ts"
|
|
116
117
|
}
|