@soft-artel/ci 1.3.15 → 1.3.18
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/incrementBuild.d.ts +3 -0
- package/incrementBuild.d.ts.map +1 -0
- package/incrementBuild.js +44 -0
- package/incrementBuild.js.map +1 -0
- package/k8s/App.d.ts +22 -0
- package/k8s/App.d.ts.map +1 -0
- package/k8s/App.js +150 -0
- package/k8s/App.js.map +1 -0
- package/k8s/DockerImage.d.ts +15 -0
- package/k8s/DockerImage.d.ts.map +1 -0
- package/k8s/DockerImage.js +112 -0
- package/k8s/DockerImage.js.map +1 -0
- package/k8s/Node.d.ts +17 -0
- package/k8s/Node.d.ts.map +1 -0
- package/k8s/Node.js +103 -0
- package/k8s/Node.js.map +1 -0
- package/k8s-build.d.ts +3 -0
- package/k8s-build.d.ts.map +1 -0
- package/k8s-build.js +125 -0
- package/k8s-build.js.map +1 -0
- package/k8s-deploy.d.ts +3 -0
- package/k8s-deploy.d.ts.map +1 -0
- package/k8s-deploy.js +124 -0
- package/k8s-deploy.js.map +1 -0
- package/libs/Exception.d.ts +5 -0
- package/libs/Exception.d.ts.map +1 -0
- package/libs/Exception.js +13 -0
- package/libs/Exception.js.map +1 -0
- package/libs/Git.d.ts +44 -0
- package/libs/Git.d.ts.map +1 -0
- package/libs/Git.js +161 -0
- package/libs/Git.js.map +1 -0
- package/libs/Gitlab.d.ts +12 -0
- package/libs/Gitlab.d.ts.map +1 -0
- package/libs/Gitlab.js +78 -0
- package/libs/Gitlab.js.map +1 -0
- package/libs/Jira.d.ts +31 -0
- package/libs/Jira.d.ts.map +1 -0
- package/libs/Jira.js +157 -0
- package/libs/Jira.js.map +1 -0
- package/libs/Project.d.ts +39 -0
- package/libs/Project.d.ts.map +1 -0
- package/libs/Project.js +177 -0
- package/libs/Project.js.map +1 -0
- package/libs/Reporter.d.ts +34 -0
- package/libs/Reporter.d.ts.map +1 -0
- package/libs/Reporter.js +131 -0
- package/libs/Reporter.js.map +1 -0
- package/libs/Shell.d.ts +39 -0
- package/libs/Shell.d.ts.map +1 -0
- package/libs/Shell.js +107 -0
- package/libs/Shell.js.map +1 -0
- package/libs/helpers.d.ts +29 -0
- package/libs/helpers.d.ts.map +1 -0
- package/libs/helpers.js +101 -0
- package/libs/helpers.js.map +1 -0
- package/libs/prototype.d.ts +9 -0
- package/libs/prototype.d.ts.map +1 -0
- package/libs/prototype.js +186 -0
- package/libs/prototype.js.map +1 -0
- package/package.json +4 -3
- package/xcode.d.ts +3 -0
- package/xcode.d.ts.map +1 -0
- package/xcode.js +163 -0
- package/xcode.js.map +1 -0
- package/.env +0 -21
- package/.eslintcache +0 -1
- package/.eslintignore +0 -4
- package/.eslintrc +0 -246
- package/.gitlab-ci.yml +0 -12
- package/_publish.sh +0 -24
- package/k8s/App.ts +0 -200
- package/k8s/DockerImage.ts +0 -147
- package/k8s/Node.ts +0 -119
- package/k8s-build.ts +0 -175
- package/k8s-deploy.ts +0 -174
- package/libs/Exception.ts +0 -19
- package/libs/Git.ts +0 -199
- package/libs/Gitlab.ts +0 -86
- package/libs/Jira.ts +0 -239
- package/libs/Project.ts +0 -215
- package/libs/Reporter.ts +0 -181
- package/libs/Shell.ts +0 -119
- package/libs/helpers.ts +0 -114
- package/libs/prototype.ts +0 -313
- package/tsconfig.json +0 -24
- package/upd_pkg.ts +0 -21
- package/xcode.ts +0 -226
package/xcode.js
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
const commander_1 = require("commander");
|
|
17
|
+
const Shell_1 = __importDefault(require("./libs/Shell"));
|
|
18
|
+
const Git_1 = __importDefault(require("./libs/Git"));
|
|
19
|
+
const Jira_1 = require("./libs/Jira");
|
|
20
|
+
const helpers_1 = require("./libs/helpers");
|
|
21
|
+
const Project_1 = require("./libs/Project");
|
|
22
|
+
const Reporter_1 = require("./libs/Reporter");
|
|
23
|
+
const ENV = process.env;
|
|
24
|
+
function main() {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
commander_1.program
|
|
27
|
+
.option('--path <xcode project dir>', 'Path to Xcode project directory [default - current]')
|
|
28
|
+
.option('--scheme <Build scheme>', 'Xcode scheme to build and deploy')
|
|
29
|
+
.option('--debug', 'Output extra debugging info')
|
|
30
|
+
.action(() => __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
let reporter;
|
|
32
|
+
try {
|
|
33
|
+
(0, helpers_1.checkEnvVars)(['SECRETS', 'REPORTER']);
|
|
34
|
+
const opts = commander_1.program.opts() || {};
|
|
35
|
+
const prj = new Project_1.Project(opts.path, opts.stage);
|
|
36
|
+
const reporterOpts = JSON.parse(ENV.REPORTER);
|
|
37
|
+
reporterOpts.postTitle = opts.scheme;
|
|
38
|
+
reporter = new Reporter_1.Reporter(prj, reporterOpts);
|
|
39
|
+
yield run(prj, reporter, opts);
|
|
40
|
+
}
|
|
41
|
+
catch (e) {
|
|
42
|
+
helpers_1.log.error(e);
|
|
43
|
+
if (reporter) {
|
|
44
|
+
try {
|
|
45
|
+
yield reporter.fail(e);
|
|
46
|
+
}
|
|
47
|
+
catch (e2) {
|
|
48
|
+
helpers_1.log.error(e2);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
process.exit(1);
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
yield commander_1.program.parseAsync(process.argv);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main();
|
|
58
|
+
function run(prj, reporter, opts) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const changedFiles = yield Git_1.default.getDiffFiles();
|
|
61
|
+
if (changedFiles.length === 0) {
|
|
62
|
+
helpers_1.log.info('SKIP BUILD: NO changedFiles found in repo');
|
|
63
|
+
process.exit(0);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
helpers_1.log.info('START BUILD!');
|
|
67
|
+
helpers_1.log.info(changedFiles);
|
|
68
|
+
}
|
|
69
|
+
const secrets = JSON.parse(ENV.SECRETS);
|
|
70
|
+
const scheme = opts.scheme || 'iOS';
|
|
71
|
+
const xcodeVersion = yield Shell_1.default.exec(`xcodebuild -showBuildSettings -scheme ${scheme} | grep MARKETING_VERSION | tr -d 'MARKETING_VERSION = '`, { silent: true });
|
|
72
|
+
const xcodeBuild = Number(yield Shell_1.default.exec(`xcodebuild -showBuildSettings -scheme ${scheme} | grep CURRENT_PROJECT_VERSION | tr -d 'CURRENT_PROJECT_VERSION = '`, { silent: true }));
|
|
73
|
+
const bundleID = yield Shell_1.default.exec(`xcodebuild -showBuildSettings -scheme ${scheme} | grep PRODUCT_BUNDLE_IDENTIFIER | tr -d 'PRODUCT_BUNDLE_IDENTIFIER = '`, { silent: true });
|
|
74
|
+
prj.build = prj.build < xcodeBuild ? xcodeBuild : prj.build;
|
|
75
|
+
prj.version = `${xcodeVersion}.${prj.build}`;
|
|
76
|
+
prj.incrementBuild();
|
|
77
|
+
yield reporter.startBuild();
|
|
78
|
+
yield fastlane('increment_build_number', { build_number: prj.build });
|
|
79
|
+
helpers_1.log.info('unlock_keychain');
|
|
80
|
+
yield fastlane('unlock_keychain', {
|
|
81
|
+
path: (0, helpers_1.resolvePath)(secrets.keychain.path),
|
|
82
|
+
password: secrets.keychain.password,
|
|
83
|
+
set_default: true,
|
|
84
|
+
}, { silent: true });
|
|
85
|
+
yield reporter.send(` + Build & archive xcode project.`);
|
|
86
|
+
yield fastlane('build_app', {
|
|
87
|
+
scheme,
|
|
88
|
+
configuration: 'Release',
|
|
89
|
+
silent: false,
|
|
90
|
+
export_method: 'app-store',
|
|
91
|
+
xcargs: '-allowProvisioningUpdates',
|
|
92
|
+
include_bitcode: true,
|
|
93
|
+
}, { verbose: '' });
|
|
94
|
+
const release = yield Jira_1.Jira.resolve(prj);
|
|
95
|
+
yield reporter.send(` + Resolved tasks:${release.tasks.length}, bugs: ${release.bugs.length}`);
|
|
96
|
+
yield Shell_1.default.exec(`git reset --hard HEAD`, { silent: false });
|
|
97
|
+
yield prj.updateChangeLog(release.changelog);
|
|
98
|
+
yield Git_1.default.setOrigin();
|
|
99
|
+
yield Shell_1.default.exec(`git commit -a -m "v${prj.version}"`, { ignoreError: true, silent: false });
|
|
100
|
+
yield Git_1.default.push(ENV.CI_COMMIT_REF_NAME || 'dev');
|
|
101
|
+
yield reporter.send(` + Update <a href="${prj.url}/-/blob/${ENV.CI_COMMIT_REF_NAME || 'dev'}/CHANGELOG.md">changelog</a>.`);
|
|
102
|
+
yield reporter.send(` + Git tag new version`);
|
|
103
|
+
yield Git_1.default.makeTag(prj.version);
|
|
104
|
+
yield reporter.send(` + Save build: ${prj.build} to GitLab`);
|
|
105
|
+
yield prj.saveGitLabBuild();
|
|
106
|
+
yield reporter.deploy('testfight');
|
|
107
|
+
yield reporter.send(` + Upload to Testfilght.`);
|
|
108
|
+
yield fastlane('upload_to_testflight', {
|
|
109
|
+
api_key_path: ENV.TESTFLIGHT,
|
|
110
|
+
changelog: (0, helpers_1.stripTags)(release.changelog),
|
|
111
|
+
}, { attempts: 3, verbose: '' });
|
|
112
|
+
if (secrets.bugsnag[scheme]) {
|
|
113
|
+
yield reporter.send(` + Download DSYMs.`);
|
|
114
|
+
yield fastlane('download_dsyms', {
|
|
115
|
+
api_key_path: ENV.TESTFLIGHT_KEY,
|
|
116
|
+
version: prj.shortVersion,
|
|
117
|
+
build_number: prj.build,
|
|
118
|
+
app_identifier: bundleID,
|
|
119
|
+
wait_for_dsym_processing: true,
|
|
120
|
+
output_directory: prj.rootPath,
|
|
121
|
+
}, {
|
|
122
|
+
attempts: 10, sleep: 120, silent: false, ignoreError: true,
|
|
123
|
+
});
|
|
124
|
+
yield reporter.send(` + Upload DSYMs to BugSnag.`);
|
|
125
|
+
const cmd = `bugsnag-dsym-upload --api-key ${secrets.bugsnag[scheme]} --project-root ./ ${prj.rootPath}/${bundleID}-${prj.shortVersion}-${prj.build}.dSYM.zip`;
|
|
126
|
+
yield Shell_1.default.execRepeat(cmd, 10, 120, { silent: false, ignoreError: true });
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
yield reporter.send(` - Upload DSYMs to BugSnag. [SKIPED]`);
|
|
130
|
+
}
|
|
131
|
+
yield reporter.send(` + Resolved tasks:${release.tasks.length}, bugs: ${release.bugs.length}`);
|
|
132
|
+
const bugsDeployed = yield Jira_1.Jira.moveBugsAsDeployed(release.bugs);
|
|
133
|
+
if (bugsDeployed.length > 0) {
|
|
134
|
+
yield reporter.send(` + Deployed ${bugsDeployed.length} bugs.`);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
yield reporter.send(` - Deploy bugs. [SKIPED]`);
|
|
138
|
+
}
|
|
139
|
+
yield reporter.send(` + Save ${prj.stage} -> ${prj.version} to GitLab`);
|
|
140
|
+
yield prj.saveGitLabStagesVersions();
|
|
141
|
+
yield reporter.release(release.changelog);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function fastlane(action, pars = {}, { silent = false, attempts = 1, sleep = 60, ignoreError = false, verbose = '--verbose' } = {}) {
|
|
145
|
+
let params = '';
|
|
146
|
+
for (const key of Object.keys(pars)) {
|
|
147
|
+
switch (typeof pars[key]) {
|
|
148
|
+
case 'object':
|
|
149
|
+
params += ` ${key}:"${JSON.stringify(pars[key])}"`;
|
|
150
|
+
break;
|
|
151
|
+
case 'string':
|
|
152
|
+
params += ` ${key}:"${pars[key]}"`;
|
|
153
|
+
break;
|
|
154
|
+
case 'number':
|
|
155
|
+
params += ` ${key}:${pars[key]}`;
|
|
156
|
+
break;
|
|
157
|
+
default:
|
|
158
|
+
params += ` ${key} `;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return Shell_1.default.execRepeat(`fastlane run ${action} ${params} ${verbose}`, attempts, sleep, { silent, ignoreError });
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=xcode.js.map
|
package/xcode.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xcode.js","sourceRoot":"","sources":["../xcode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAAgD;AAEhD,yDAAiC;AACjC,qDAA6B;AAC7B,sCAAiC;AACjC,4CAA2E;AAC3E,4CAAyC;AACzC,8CAA2C;AAG3C,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;AAKxB,SAAe,IAAI;;QAElB,mBAAO;aACL,MAAM,CAAC,4BAA4B,EAAG,qDAAqD,CAAC;aAC5F,MAAM,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;aACrE,MAAM,CAAC,SAAS,EAAE,6BAA6B,CAAC;aAChD,MAAM,CACN,GAAS,EAAE;YAEV,IAAI,QAA8B,CAAC;YAEnC,IAAI;gBAIH,IAAA,sBAAY,EAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;gBAGtC,MAAM,IAAI,GAAG,mBAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;gBAClC,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,IAAI,EA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AAC;gBACvC,MAAM;YACP,KAAK,QAAQ;gBACZ,MAAM,IAAI,IAAK,GAAI,IAAK,IAAI,CAAC,GAAG,CAAE,EAAE,CAAC;gBACrC,MAAM;YAEP;gBACC,MAAM,IAAI,IAAK,GAAI,GAAG,CAAC;SACxB;KACD;IAED,OAAO,eAAK,CAAC,UAAU,CAAC,gBAAiB,MAAO,IAAK,MAAO,IAAK,OAAQ,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AACxH,CAAC"}
|
package/.env
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
GITLAB_PASS=6e8beec72b4a70da5f3c474d379a988b
|
|
2
|
-
GITLAB_API_TOKEN=glpat-6zU_zXo2YNpNzLbPmqW4
|
|
3
|
-
|
|
4
|
-
CI_REGISTRY=docker.gitlab.soft-artel.com
|
|
5
|
-
CI_REGISTRY_USER=gitlab
|
|
6
|
-
CI_REGISTRY_PASSWORD=6e8beec72b4a70da5f3c474d379a988b
|
|
7
|
-
|
|
8
|
-
CI_STAGES=["alpha","prod"]
|
|
9
|
-
REPORTER={"token":"476910302:AAFnYmMiPDaVnnwlaMhHP0Rl9MATtiwLha8","chat_id":49385041}
|
|
10
|
-
|
|
11
|
-
CI_COMMIT_REF_NAME=dev-new-ci
|
|
12
|
-
|
|
13
|
-
CI_PROJECT_ID=593
|
|
14
|
-
CI_PROJECT_NAME=api
|
|
15
|
-
CI_PROJECT_NAMESPACE=onlc
|
|
16
|
-
CI_PROJECT_PATH=onlc/api
|
|
17
|
-
CI_PROJECT_URL=https://gitlab.soft-artel.com/onlc/api
|
|
18
|
-
CI_PROJECT_DIR=~/dev/onlc/api
|
|
19
|
-
|
|
20
|
-
CI_REGISTRY_IMAGE=docker.gitlab.soft-artel.com/onlc/api
|
|
21
|
-
K8S_ALPHA_CONFIG=~/dev/onlc/cluster/_alpha/k8s-config
|
package/.eslintcache
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"/Users/nailine/dev/soft-artel/ci/k8s/App.ts":"1","/Users/nailine/dev/soft-artel/ci/k8s/DockerImage.ts":"2","/Users/nailine/dev/soft-artel/ci/k8s/Node.ts":"3","/Users/nailine/dev/soft-artel/ci/libs/Exception.ts":"4","/Users/nailine/dev/soft-artel/ci/libs/Git.ts":"5","/Users/nailine/dev/soft-artel/ci/libs/Gitlab.ts":"6","/Users/nailine/dev/soft-artel/ci/libs/Jira.ts":"7","/Users/nailine/dev/soft-artel/ci/libs/Project.ts":"8","/Users/nailine/dev/soft-artel/ci/libs/Reporter.ts":"9","/Users/nailine/dev/soft-artel/ci/libs/Shell.ts":"10","/Users/nailine/dev/soft-artel/ci/libs/helpers.ts":"11","/Users/nailine/dev/soft-artel/ci/sa-ci-k8s.ts":"12","/Users/nailine/dev/soft-artel/ci/sa-ci-xcode.ts":"13","/Users/nailine/dev/soft-artel/ci/upd_pkg.ts":"14","/Users/nailine/dev/soft-artel/ci/libs/prototype.ts":"15"},{"size":4698,"mtime":1652861430718,"results":"16","hashOfConfig":"17"},{"size":3793,"mtime":1652966777654,"results":"18","hashOfConfig":"17"},{"size":3665,"mtime":1652966777654,"results":"19","hashOfConfig":"17"},{"size":440,"mtime":1651661936152,"results":"20","hashOfConfig":"17"},{"size":4647,"mtime":1652832751376,"results":"21","hashOfConfig":"17"},{"size":2248,"mtime":1652832760383,"results":"22","hashOfConfig":"17"},{"size":6116,"mtime":1652686877487,"results":"23","hashOfConfig":"17"},{"size":5033,"mtime":1652966777655,"results":"24","hashOfConfig":"17"},{"size":4567,"mtime":1652966777656,"results":"25","hashOfConfig":"17"},{"size":2518,"mtime":1652686877488,"results":"26","hashOfConfig":"17"},{"size":2460,"mtime":1652686877488,"results":"27","hashOfConfig":"17"},{"size":7217,"mtime":1652966845329,"results":"28","hashOfConfig":"17"},{"size":6723,"mtime":1652795720765,"results":"29","hashOfConfig":"17"},{"size":561,"mtime":1651661936151,"results":"30","hashOfConfig":"17"},{"size":6248,"mtime":1651661936151,"results":"31","hashOfConfig":"17"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"13qgkga",{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/nailine/dev/soft-artel/ci/k8s/App.ts",[],"/Users/nailine/dev/soft-artel/ci/k8s/DockerImage.ts",[],"/Users/nailine/dev/soft-artel/ci/k8s/Node.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/Exception.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/Git.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/Gitlab.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/Jira.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/Project.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/Reporter.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/Shell.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/helpers.ts",[],"/Users/nailine/dev/soft-artel/ci/sa-ci-k8s.ts",[],"/Users/nailine/dev/soft-artel/ci/sa-ci-xcode.ts",[],"/Users/nailine/dev/soft-artel/ci/upd_pkg.ts",[],"/Users/nailine/dev/soft-artel/ci/libs/prototype.ts",[]]
|
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": { "es6": true, "node": true, "mocha": true, "browser": false },
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"plugins": ["@typescript-eslint", "prettier", "import"],
|
|
5
|
-
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
|
|
6
|
-
"ignorePatterns": ["node_modules/", "dist/"],
|
|
7
|
-
"parserOptions": {
|
|
8
|
-
"project": "tsconfig.json",
|
|
9
|
-
"sourceType": "module"
|
|
10
|
-
},
|
|
11
|
-
"rules": {
|
|
12
|
-
// @typescript-eslint
|
|
13
|
-
"@typescript-eslint/member-delimiter-style": [
|
|
14
|
-
"error",
|
|
15
|
-
{
|
|
16
|
-
"multiline": { "delimiter": "semi", "requireLast": true },
|
|
17
|
-
"singleline": { "delimiter": "semi", "requireLast": false }
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
21
|
-
"@typescript-eslint/array-type": "error",
|
|
22
|
-
"@typescript-eslint/ban-types": "error",
|
|
23
|
-
"@typescript-eslint/brace-style": "error",
|
|
24
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
25
|
-
// "@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }],
|
|
26
|
-
// "@typescript-eslint/class-name-casing": "error",
|
|
27
|
-
"@typescript-eslint/comma-spacing": "error",
|
|
28
|
-
"@typescript-eslint/consistent-type-assertions": "error",
|
|
29
|
-
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
30
|
-
"@typescript-eslint/default-param-last": "error",
|
|
31
|
-
"@typescript-eslint/func-call-spacing": "error",
|
|
32
|
-
// "@typescript-eslint/interface-name-prefix": ["error", { "prefixWithI": "never" }],
|
|
33
|
-
// "@typescript-eslint/member-naming": "error",
|
|
34
|
-
// "@typescript-eslint/naming-convention": "error",
|
|
35
|
-
"@typescript-eslint/no-array-constructor": "error",
|
|
36
|
-
"@typescript-eslint/no-dupe-class-members": "error",
|
|
37
|
-
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
38
|
-
"@typescript-eslint/no-extra-semi": "error",
|
|
39
|
-
"@typescript-eslint/no-for-in-array": "error",
|
|
40
|
-
"@typescript-eslint/no-misused-new": "error",
|
|
41
|
-
"@typescript-eslint/no-namespace": "error",
|
|
42
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
43
|
-
"@typescript-eslint/no-require-imports": "error",
|
|
44
|
-
"@typescript-eslint/no-this-alias": "error",
|
|
45
|
-
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
46
|
-
"@typescript-eslint/no-unused-expressions": ["error", { "allowTernary": true }],
|
|
47
|
-
"@typescript-eslint/no-use-before-define": "off",
|
|
48
|
-
"@typescript-eslint/no-var-requires": "error",
|
|
49
|
-
"@typescript-eslint/prefer-as-const": "error",
|
|
50
|
-
"@typescript-eslint/prefer-for-of": "error",
|
|
51
|
-
"@typescript-eslint/prefer-function-type": "error",
|
|
52
|
-
"@typescript-eslint/prefer-includes": "error",
|
|
53
|
-
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
54
|
-
"@typescript-eslint/prefer-optional-chain": "error",
|
|
55
|
-
"@typescript-eslint/prefer-regexp-exec": "error",
|
|
56
|
-
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
|
57
|
-
"@typescript-eslint/quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
|
|
58
|
-
"@typescript-eslint/require-await": "error",
|
|
59
|
-
"@typescript-eslint/semi": ["error", "always"],
|
|
60
|
-
"@typescript-eslint/space-before-function-paren": ["error", { "asyncArrow": "always", "anonymous": "never", "named": "never" }],
|
|
61
|
-
"@typescript-eslint/triple-slash-reference": "error",
|
|
62
|
-
"@typescript-eslint/type-annotation-spacing": "error",
|
|
63
|
-
|
|
64
|
-
// @typescript-eslint:warn
|
|
65
|
-
"@typescript-eslint/indent": [
|
|
66
|
-
"warn",
|
|
67
|
-
"tab",
|
|
68
|
-
{
|
|
69
|
-
"SwitchCase": 1,
|
|
70
|
-
"FunctionDeclaration": { "parameters": "first" },
|
|
71
|
-
"FunctionExpression": { "parameters": "first" }
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"@typescript-eslint/member-ordering": [
|
|
75
|
-
"warn",
|
|
76
|
-
{
|
|
77
|
-
"default": [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"abstract-field",
|
|
82
|
-
"static-field",
|
|
83
|
-
"instance-field",
|
|
84
|
-
"abstract-method",
|
|
85
|
-
"static-method",
|
|
86
|
-
"constructor",
|
|
87
|
-
"instance-method"
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
|
|
92
|
-
// @typescript-eslint:off
|
|
93
|
-
"@typescript-eslint/await-thenable": "off",
|
|
94
|
-
"@typescript-eslint/ban-ts-ignore": "off",
|
|
95
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
96
|
-
"@typescript-eslint/explicit-member-accessibility": ["off", { "accessibility": "explicit" }],
|
|
97
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
98
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
99
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
100
|
-
"@typescript-eslint/no-inferrable-types": ["off", { "ignoreProperties": true }],
|
|
101
|
-
"@typescript-eslint/no-misused-promises": "off",
|
|
102
|
-
"@typescript-eslint/no-unused-vars": "error",
|
|
103
|
-
"@typescript-eslint/unbound-method": "off",
|
|
104
|
-
"@typescript-eslint/unified-signatures": "off",
|
|
105
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
106
|
-
|
|
107
|
-
// import
|
|
108
|
-
"import/no-deprecated": "error",
|
|
109
|
-
"import/no-extraneous-dependencies": "error",
|
|
110
|
-
"import/order": [
|
|
111
|
-
"error",
|
|
112
|
-
{
|
|
113
|
-
"groups": [
|
|
114
|
-
["builtin", "external", "internal", "unknown"],
|
|
115
|
-
["parent", "sibling", "index"]
|
|
116
|
-
],
|
|
117
|
-
"newlines-between": "always"
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
|
|
121
|
-
// prefer-arrow
|
|
122
|
-
"prefer-arrow/prefer-arrow-functions": "off",
|
|
123
|
-
|
|
124
|
-
// eslint
|
|
125
|
-
"arrow-body-style": "error",
|
|
126
|
-
"comma-dangle": ["error", "always-multiline"],
|
|
127
|
-
"constructor-super": "error",
|
|
128
|
-
"curly": ["error", "multi-line"],
|
|
129
|
-
"dot-notation": "error",
|
|
130
|
-
"eol-last": "error",
|
|
131
|
-
"eqeqeq": "error",
|
|
132
|
-
"guard-for-in": "error",
|
|
133
|
-
"linebreak-style": ["error", "unix"],
|
|
134
|
-
"max-len": [
|
|
135
|
-
"error",
|
|
136
|
-
{
|
|
137
|
-
"code": 200,
|
|
138
|
-
"comments": 160,
|
|
139
|
-
"tabWidth": 2,
|
|
140
|
-
"ignoreComments": true,
|
|
141
|
-
"ignoreStrings": true,
|
|
142
|
-
"ignoreRegExpLiterals": true,
|
|
143
|
-
"ignoreTrailingComments": true,
|
|
144
|
-
"ignoreTemplateLiterals": true
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"new-parens": "error",
|
|
148
|
-
"no-caller": "error",
|
|
149
|
-
"no-cond-assign": "error",
|
|
150
|
-
"no-debugger": "error",
|
|
151
|
-
"no-duplicate-case": "error",
|
|
152
|
-
"no-duplicate-imports": "error",
|
|
153
|
-
"no-eval": "error",
|
|
154
|
-
"no-extra-bind": "error",
|
|
155
|
-
"no-fallthrough": "error",
|
|
156
|
-
"no-multiple-empty-lines": "error",
|
|
157
|
-
"no-new-func": "error",
|
|
158
|
-
"no-new-wrappers": "error",
|
|
159
|
-
"no-restricted-imports": ["error", "rxjs/Rx"],
|
|
160
|
-
"no-return-await": "error",
|
|
161
|
-
"no-sparse-arrays": "error",
|
|
162
|
-
"no-throw-literal": "error",
|
|
163
|
-
"no-trailing-spaces": [
|
|
164
|
-
"error",{
|
|
165
|
-
"skipBlankLines": true
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"no-undef-init": "error",
|
|
169
|
-
"no-unsafe-finally": "error",
|
|
170
|
-
"no-unused-expressions": "error",
|
|
171
|
-
"no-unused-labels": "error",
|
|
172
|
-
"no-var": "error",
|
|
173
|
-
"object-shorthand": "error",
|
|
174
|
-
"prefer-const": "error",
|
|
175
|
-
"prefer-object-spread": "error",
|
|
176
|
-
"prefer-rest-params": "error",
|
|
177
|
-
"prefer-spread": "error",
|
|
178
|
-
"quote-props": ["error", "consistent-as-needed"],
|
|
179
|
-
"radix": "error",
|
|
180
|
-
"space-in-parens": "error",
|
|
181
|
-
"spaced-comment": "error",
|
|
182
|
-
"unicode-bom": ["error", "never"],
|
|
183
|
-
"use-isnan": "error",
|
|
184
|
-
|
|
185
|
-
// eslint:warn
|
|
186
|
-
"no-restricted-globals": "warn",
|
|
187
|
-
"object-curly-newline": [
|
|
188
|
-
"warn",
|
|
189
|
-
{
|
|
190
|
-
"ObjectExpression": { "multiline": true, "minProperties": 4, "consistent": true },
|
|
191
|
-
"ImportDeclaration": { "multiline": true, "consistent": true },
|
|
192
|
-
"ExportDeclaration": { "multiline": true, "minProperties": 2, "consistent": true }
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// prettier
|
|
198
|
-
"prettier/prettier": "off",
|
|
199
|
-
"semi": "off",
|
|
200
|
-
// "prettier/prettier": [
|
|
201
|
-
// "warn",
|
|
202
|
-
// {
|
|
203
|
-
// "endOfLine": "lf",
|
|
204
|
-
// "printWidth": 140,
|
|
205
|
-
// "semi": true,
|
|
206
|
-
// "singleQuote": true,
|
|
207
|
-
// "tabWidth": 2,
|
|
208
|
-
// "trailingComma": "all",
|
|
209
|
-
// "useTabs": true,
|
|
210
|
-
// "bracketSpacing": true,
|
|
211
|
-
// "proseWrap": "never"
|
|
212
|
-
// }
|
|
213
|
-
// ],
|
|
214
|
-
|
|
215
|
-
// eslint:off
|
|
216
|
-
"array-element-newline": ["off", { "multiline": true, "minItems": 1 }],
|
|
217
|
-
"arrow-parens": ["off", "as-needed"],
|
|
218
|
-
"camelcase": "off",
|
|
219
|
-
"complexity": "off",
|
|
220
|
-
"id-blacklist": "off",
|
|
221
|
-
"id-match": "off",
|
|
222
|
-
"max-classes-per-file": "off",
|
|
223
|
-
"no-array-constructor": "off",
|
|
224
|
-
"no-bitwise": "off",
|
|
225
|
-
"no-console": "error",
|
|
226
|
-
"no-empty-function": "off",
|
|
227
|
-
"no-empty": "error",
|
|
228
|
-
"no-invalid-this": "off",
|
|
229
|
-
"no-shadow": ["off", { "hoist": "all" }],
|
|
230
|
-
"no-underscore-dangle": "off",
|
|
231
|
-
"no-unused-vars": "off",
|
|
232
|
-
"no-use-before-define": "off",
|
|
233
|
-
"one-var": ["off", "never"],
|
|
234
|
-
"require-await": "off",
|
|
235
|
-
"space-before-function-paren": [
|
|
236
|
-
"off",
|
|
237
|
-
{
|
|
238
|
-
"anonymous": "never",
|
|
239
|
-
"asyncArrow": "always",
|
|
240
|
-
"named": "never"
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"valid-typeof": "off",
|
|
244
|
-
"no-implicit-coercion": "error"
|
|
245
|
-
}
|
|
246
|
-
}
|
package/.gitlab-ci.yml
DELETED
package/_publish.sh
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
echo "Current: v$(cat ./package.json | grep version | grep -o '[0-9\.]\+')"
|
|
3
|
-
|
|
4
|
-
rm -rf _publish
|
|
5
|
-
tsc -p tsconfig.json
|
|
6
|
-
cp package.json _publish/
|
|
7
|
-
|
|
8
|
-
echo "Build succseed!"
|
|
9
|
-
|
|
10
|
-
cd _publish
|
|
11
|
-
node upd_pkg.js
|
|
12
|
-
PUBLISH_VERSION=$(cat ./package.json | grep version | grep -o '[0-9\.]\+')
|
|
13
|
-
echo "New version: v${PUBLISH_VERSION}"
|
|
14
|
-
|
|
15
|
-
npm version $PUBLISH_VERSION
|
|
16
|
-
npm publish
|
|
17
|
-
echo "v${PUBLISH_VERSION} published!"
|
|
18
|
-
|
|
19
|
-
cd ..
|
|
20
|
-
git commit -a -m "v${PUBLISH_VERSION} published!"
|
|
21
|
-
git push
|
|
22
|
-
git push origin HEAD:master
|
|
23
|
-
|
|
24
|
-
echo "\n\n\nv${PUBLISH_VERSION} published succseed!"
|