@adinsure-ops/ops-cli 4.1.0 → 4.3.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.
@@ -102,7 +102,8 @@ class NpmPublish extends command_base_1.default {
102
102
  try {
103
103
  await this.checkPackageCanPublish(pkg, allPackages, version);
104
104
  }
105
- catch (_a) {
105
+ catch (err) {
106
+ this.warn(err.message);
106
107
  errorCount++;
107
108
  continue;
108
109
  }
@@ -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
+ };
@@ -42,10 +42,16 @@ class Translate extends command_base_1.default {
42
42
  return response;
43
43
  }
44
44
  catch (error) {
45
- const errorJson = JSON.parse(error.error);
46
- const errorMessage = `An error has occurred: ${errorJson.ExceptionMessage}`;
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 errorJson;
54
+ throw error;
49
55
  }
50
56
  }
51
57
  /**
@@ -0,0 +1,17 @@
1
+ import * as semver from 'semver';
2
+ export default class GitLab {
3
+ private readonly pat;
4
+ private readonly host;
5
+ private readonly project;
6
+ private readonly apiBase;
7
+ constructor(host: string, project: string, pat: string);
8
+ /**
9
+ * Try to figure out latest available version already created
10
+ */
11
+ getLatestVersion(searchVersion: string, prefix?: string): Promise<semver.SemVer>;
12
+ /**
13
+ * Try to figure out latest available version already created
14
+ */
15
+ createNewTag(tag_name: string, ref: string): Promise<void>;
16
+ getTagPipelineStatus(tag: string): Promise<string>;
17
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const axios_1 = require("axios");
4
+ const semver = require("semver");
5
+ class GitLab {
6
+ constructor(host, project, pat) {
7
+ this.apiBase = '/api/v4/projects';
8
+ this.pat = pat;
9
+ this.host = host;
10
+ this.project = project;
11
+ }
12
+ /**
13
+ * Try to figure out latest available version already created
14
+ */
15
+ async getLatestVersion(searchVersion, prefix = '') {
16
+ let versions = [];
17
+ try {
18
+ let page = 1;
19
+ let totalPages = 1;
20
+ do {
21
+ let response = await axios_1.default.get(`${this.host}${this.apiBase}/${this.project}/repository/tags`, {
22
+ headers: {
23
+ Authorization: `Bearer ${this.pat}`,
24
+ },
25
+ params: {
26
+ search: `^${prefix}v${searchVersion}`,
27
+ per_page: 100,
28
+ page
29
+ }
30
+ });
31
+ response.data.forEach((tag) => {
32
+ const regex = new RegExp(`${prefix}(.*)`);
33
+ let searchTag = tag;
34
+ let match = tag.name.match(regex);
35
+ if (match[1]) {
36
+ searchTag = match[1];
37
+ }
38
+ let semanticVersion = semver.parse(searchTag, { includePrerelease: true });
39
+ if (semanticVersion && semanticVersion.prerelease.length === 0) {
40
+ versions.push(semanticVersion);
41
+ // ignore versions that that doesn't have number for prerelease identifier (skip qa and test prereleases)
42
+ }
43
+ else if (semanticVersion && semanticVersion.prerelease.length === 2 && /^[0-9]+$/.test(semanticVersion.prerelease[1].toString())) {
44
+ versions.push(semanticVersion);
45
+ }
46
+ });
47
+ totalPages = parseInt(response.headers['x-total-pages'], 10);
48
+ page++;
49
+ } while (page <= totalPages);
50
+ }
51
+ catch (err) {
52
+ throw new Error(err);
53
+ }
54
+ return semver.rsort(versions)[0];
55
+ }
56
+ /**
57
+ * Try to figure out latest available version already created
58
+ */
59
+ async createNewTag(tag_name, ref) {
60
+ try {
61
+ await axios_1.default.post(`${this.host}${this.apiBase}/${this.project}/repository/tags`, {
62
+ tag_name,
63
+ ref
64
+ }, {
65
+ headers: {
66
+ Authorization: `Bearer ${this.pat}`,
67
+ }
68
+ });
69
+ }
70
+ catch (err) {
71
+ throw new Error(err);
72
+ }
73
+ return;
74
+ }
75
+ async getTagPipelineStatus(tag) {
76
+ let pipelines = null;
77
+ tag = tag.replace(/^v/g, ''); // trim if tag starts with v because already include it in search
78
+ try {
79
+ pipelines = await axios_1.default.get(`${this.host}${this.apiBase}/${this.project}/pipelines?ref=v${tag}`, {
80
+ headers: {
81
+ Authorization: `Bearer ${this.pat}`,
82
+ }
83
+ });
84
+ }
85
+ catch (err) {
86
+ throw new Error(err);
87
+ }
88
+ if (pipelines.data.length > 0) {
89
+ return pipelines.data[0].status;
90
+ }
91
+ else {
92
+ return 'unknown';
93
+ }
94
+ }
95
+ }
96
+ exports.default = GitLab;
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) {
@@ -0,0 +1,6 @@
1
+ export default class NugetContext {
2
+ /**
3
+ * Get package names
4
+ */
5
+ projectList(exclude?: string[]): Promise<string[]>;
6
+ }
@@ -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;
@@ -1 +1 @@
1
- {"version":"4.1.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: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},"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.3.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"]}]},"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
- "name": "@adinsure-ops/ops-cli",
3
- "description": "Operations CLI for working with AdInsure",
4
- "version": "4.1.0",
5
- "author": "Adacta Digital Service Department",
6
- "bin": {
7
- "ops": "./bin/run"
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.3.0",
5
+ "author": "Adacta Digital Service Department",
6
+ "bin": {
7
+ "ops": "./bin/run"
87
8
  },
88
- "plugins": [
89
- "@oclif/plugin-help",
90
- "@oclif/plugin-not-found",
91
- "@oclif/plugin-warn-if-update-available",
92
- "@oclif/plugin-update"
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
- "warn-if-update-available": {
95
- "timeoutInDays": 1,
96
- "message": "ops-cli update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."
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
- "update": {
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
- }
116
+ "types": "lib/index.d.ts"
117
+ }