@noldova/tools.pipelines 0.0.0-stage → 0.0.1

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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +173 -2
  3. package/api/index.d.ts +1307 -0
  4. package/api/index.js +26 -0
  5. package/api/index.js.map +1 -0
  6. package/exceptions/pipeline.exception.js +14 -0
  7. package/exceptions/pipeline.exception.js.map +1 -0
  8. package/exceptions/process.exception.js +17 -0
  9. package/exceptions/process.exception.js.map +1 -0
  10. package/exceptions/version.exception.js +15 -0
  11. package/exceptions/version.exception.js.map +1 -0
  12. package/interfaces/i-step-output.js +9 -0
  13. package/interfaces/i-step-output.js.map +1 -0
  14. package/interfaces/i-step.js +9 -0
  15. package/interfaces/i-step.js.map +1 -0
  16. package/interfaces/i-tag-host.js +9 -0
  17. package/interfaces/i-tag-host.js.map +1 -0
  18. package/models/archive-check.js +16 -0
  19. package/models/archive-check.js.map +1 -0
  20. package/models/package-archive.js +16 -0
  21. package/models/package-archive.js.map +1 -0
  22. package/models/process-result.js +22 -0
  23. package/models/process-result.js.map +1 -0
  24. package/models/step-result.js +22 -0
  25. package/models/step-result.js.map +1 -0
  26. package/models/version.js +85 -0
  27. package/models/version.js.map +1 -0
  28. package/package.json +24 -4
  29. package/resources.js +258 -0
  30. package/resources.js.map +1 -0
  31. package/services/archive-step.js +114 -0
  32. package/services/archive-step.js.map +1 -0
  33. package/services/command-line.js +34 -0
  34. package/services/command-line.js.map +1 -0
  35. package/services/git.js +60 -0
  36. package/services/git.js.map +1 -0
  37. package/services/nightly-step.js +82 -0
  38. package/services/nightly-step.js.map +1 -0
  39. package/services/npm.js +43 -0
  40. package/services/npm.js.map +1 -0
  41. package/services/process-runner.js +34 -0
  42. package/services/process-runner.js.map +1 -0
  43. package/services/publish-step.js +117 -0
  44. package/services/publish-step.js.map +1 -0
  45. package/services/source-step.js +43 -0
  46. package/services/source-step.js.map +1 -0
  47. package/services/tag-step.js +48 -0
  48. package/services/tag-step.js.map +1 -0
  49. package/services/tar.js +20 -0
  50. package/services/tar.js.map +1 -0
package/api/index.js ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export { PipelineException } from "../exceptions/pipeline.exception.js";
9
+ export { ProcessException } from "../exceptions/process.exception.js";
10
+ export { VersionException } from "../exceptions/version.exception.js";
11
+ export { ArchiveCheck } from "../models/archive-check.js";
12
+ export { PackageArchive } from "../models/package-archive.js";
13
+ export { ProcessResult } from "../models/process-result.js";
14
+ export { StepResult } from "../models/step-result.js";
15
+ export { Version } from "../models/version.js";
16
+ export { ArchiveStep } from "../services/archive-step.js";
17
+ export { CommandLine } from "../services/command-line.js";
18
+ export { Git } from "../services/git.js";
19
+ export { NightlyStep } from "../services/nightly-step.js";
20
+ export { Npm } from "../services/npm.js";
21
+ export { ProcessRunner } from "../services/process-runner.js";
22
+ export { PublishStep } from "../services/publish-step.js";
23
+ export { SourceStep } from "../services/source-step.js";
24
+ export { TagStep } from "../services/tag-step.js";
25
+ export { Tar } from "../services/tar.js";
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAItE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Exception } from "@noldova/context.exceptions";
9
+ export class PipelineException extends Exception {
10
+ constructor(message, options) {
11
+ super(message, options);
12
+ }
13
+ }
14
+ //# sourceMappingURL=pipeline.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.exception.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/exceptions/pipeline.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAgB,iBAAkB,SAAQ,SAAS;IACvD,YAAsB,OAAe,EAAE,OAA0B;QAC/D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Resources } from "../resources.js";
9
+ import { PipelineException } from "./pipeline.exception.js";
10
+ export class ProcessException extends PipelineException {
11
+ program;
12
+ constructor(program, message = Resources.formatProgramFailed(program), options) {
13
+ super(message, options);
14
+ this.program = program;
15
+ }
16
+ }
17
+ //# sourceMappingURL=process.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.exception.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/exceptions/process.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,gBAAiB,SAAQ,iBAAiB;IACrC,OAAO,CAAS;IAEhC,YAAmB,OAAe,EAAE,OAAO,GAAW,SAAS,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,OAA0B;QACtH,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAExB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Resources } from "../resources.js";
9
+ import { PipelineException } from "./pipeline.exception.js";
10
+ export class VersionException extends PipelineException {
11
+ constructor(message = Resources.versionInvalid, options) {
12
+ super(message, options);
13
+ }
14
+ }
15
+ //# sourceMappingURL=version.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.exception.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/exceptions/version.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,gBAAiB,SAAQ,iBAAiB;IACrD,YAAmB,OAAO,GAAW,SAAS,CAAC,cAAc,EAAE,OAA0B;QACvF,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-step-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-step-output.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/interfaces/i-step-output.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-step.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-step.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/interfaces/i-step.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-tag-host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-tag-host.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/interfaces/i-tag-host.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export class ArchiveCheck {
9
+ result;
10
+ archives;
11
+ constructor(result, archives) {
12
+ this.result = result;
13
+ this.archives = archives;
14
+ }
15
+ }
16
+ //# sourceMappingURL=archive-check.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive-check.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/archive-check.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,OAAO,YAAY;IACP,MAAM,CAAa;IACnB,QAAQ,CAA4B;IAEpD,YAAmB,MAAkB,EAAE,QAAmC;QACxE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export class PackageArchive {
9
+ packageName;
10
+ filePath;
11
+ constructor(packageName, filePath) {
12
+ this.packageName = packageName;
13
+ this.filePath = filePath;
14
+ }
15
+ }
16
+ //# sourceMappingURL=package-archive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-archive.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/package-archive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,cAAc;IACT,WAAW,CAAS;IACpB,QAAQ,CAAS;IAEjC,YAAmB,WAAmB,EAAE,QAAgB;QACtD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Resources } from "../resources.js";
9
+ export class ProcessResult {
10
+ exitCode;
11
+ output;
12
+ errorOutput;
13
+ constructor(exitCode, output, errorOutput) {
14
+ this.exitCode = exitCode;
15
+ this.output = output;
16
+ this.errorOutput = errorOutput;
17
+ }
18
+ get isSuccessful() {
19
+ return this.exitCode === Resources.successExitCode;
20
+ }
21
+ }
22
+ //# sourceMappingURL=process-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-result.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/process-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAa;IACR,QAAQ,CAAgB;IACxB,MAAM,CAAS;IACf,WAAW,CAAS;IAEpC,YAAmB,QAAuB,EAAE,MAAc,EAAE,WAAmB;QAC7E,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,eAAe,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export class StepResult {
9
+ isSuccessful;
10
+ message;
11
+ constructor(isSuccessful, message) {
12
+ this.isSuccessful = isSuccessful;
13
+ this.message = message;
14
+ }
15
+ static succeeded(message) {
16
+ return new StepResult(true, message);
17
+ }
18
+ static failed(message) {
19
+ return new StepResult(false, message);
20
+ }
21
+ }
22
+ //# sourceMappingURL=step-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-result.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/step-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,UAAU;IACL,YAAY,CAAU;IACtB,OAAO,CAAS;IAEhC,YAAoB,YAAqB,EAAE,OAAe;QACxD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,OAAe;QACrC,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,OAAe;QAClC,OAAO,IAAI,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;CACF"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { VersionException } from "../exceptions/version.exception.js";
9
+ import { Resources } from "../resources.js";
10
+ export class Version {
11
+ major;
12
+ minor;
13
+ patch;
14
+ nightlyDate;
15
+ constructor(major, minor, patch, nightlyDate = null) {
16
+ Version.checkPart(Resources.majorPartName, major);
17
+ Version.checkPart(Resources.minorPartName, minor);
18
+ Version.checkPart(Resources.patchPartName, patch);
19
+ if (nightlyDate !== null)
20
+ Version.checkNightlyDate(nightlyDate);
21
+ this.major = major;
22
+ this.minor = minor;
23
+ this.patch = patch;
24
+ this.nightlyDate = nightlyDate;
25
+ }
26
+ static parse(text) {
27
+ const match = Resources.versionPattern.exec(text);
28
+ if (match === null)
29
+ throw new VersionException(Resources.formatVersionInvalid(text));
30
+ const problem = Version.validateMatch(match);
31
+ if (problem !== null)
32
+ throw new VersionException(problem);
33
+ return new Version(Number(match[1]), Number(match[2]), Number(match[3]), match[4] ?? null);
34
+ }
35
+ static validate(text) {
36
+ const match = Resources.versionPattern.exec(text);
37
+ return match === null ? Resources.formatVersionInvalid(text) : Version.validateMatch(match);
38
+ }
39
+ compareTo(other) {
40
+ const order = Math.sign(this.major - other.major || this.minor - other.minor || this.patch - other.patch);
41
+ if (order !== 0 || this.nightlyDate === other.nightlyDate)
42
+ return order;
43
+ if (this.nightlyDate === null)
44
+ return 1;
45
+ if (other.nightlyDate === null)
46
+ return -1;
47
+ return this.nightlyDate < other.nightlyDate ? -1 : 1;
48
+ }
49
+ equals(other) {
50
+ return this.compareTo(other) === 0;
51
+ }
52
+ toString() {
53
+ const release = [this.major, this.minor, this.patch].join(Resources.versionPartSeparator);
54
+ return this.nightlyDate === null ? release : `${release}${Resources.nightlySeparator}${this.nightlyDate}`;
55
+ }
56
+ static checkPart(partName, value) {
57
+ if (!Number.isSafeInteger(value) || value < 0)
58
+ throw new VersionException(Resources.formatVersionPartInvalid(partName, String(value)));
59
+ }
60
+ static validateMatch(match) {
61
+ return Version.validatePart(Resources.majorPartName, match[1])
62
+ ?? Version.validatePart(Resources.minorPartName, match[2])
63
+ ?? Version.validatePart(Resources.patchPartName, match[3])
64
+ ?? (match[4] === undefined ? null : Version.validateNightlyDate(match[4]));
65
+ }
66
+ static validatePart(partName, text) {
67
+ return Number.isSafeInteger(Number(text)) ? null : Resources.formatVersionPartInvalid(partName, String(text));
68
+ }
69
+ static checkNightlyDate(value) {
70
+ const problem = Version.validateNightlyDate(value);
71
+ if (problem !== null)
72
+ throw new VersionException(problem);
73
+ }
74
+ static validateNightlyDate(value) {
75
+ const match = Resources.nightlyDatePattern.exec(value);
76
+ if (match === null || !Version.isCalendarDate(Number(match[1]), Number(match[2]), Number(match[3])))
77
+ return Resources.formatNightlyDateInvalid(value);
78
+ return null;
79
+ }
80
+ static isCalendarDate(year, month, day) {
81
+ const date = new Date(Date.UTC(year, month - 1, day));
82
+ return date.getUTCMonth() === month - 1 && date.getUTCDate() === day;
83
+ }
84
+ }
85
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines/src/models/version.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;A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,GAAG,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;QACnD,IAAI,OAAO,KAAK,IAAI;YAClB,MAAM,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAEO,MAAM,CAAC,mBAAmB,CAAC,KAAa;QAC9C,MAAM,KAAK,GAAG,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvD,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACjG,OAAO,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;QAEnD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,IAAY,EAAE,KAAa,EAAE,GAAW;QACpE,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QAEtD,OAAO,IAAI,CAAC,WAAW,EAAE,KAAK,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,CAAC;IACvE,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "@noldova/tools.pipelines",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "main": "api/index.js",
6
+ "types": "api/index.d.ts",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/noldova-com/tools.git",
11
+ "directory": "src/noldova.tools.pipelines"
12
+ },
13
+ "homepage": "https://github.com/noldova-com/tools#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/noldova-com/tools/issues"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "registry": "https://registry.npmjs.org/"
20
+ },
21
+ "dependencies": {
22
+ "@noldova/context.exceptions": "0.0.3",
23
+ "@noldova/context.json": "0.0.3"
24
+ },
25
+ "gitHead": "290258a729fbf6bd0784e883de9ce9f0f64e9784"
26
+ }
package/resources.js ADDED
@@ -0,0 +1,258 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export class Resources {
9
+ static accessLevels = ["public", "restricted"];
10
+ static archiveManifestPath = "package/package.json";
11
+ static archiveStepName = "archive";
12
+ static archiveStepUsage = "<folder> <version> <commit> <scope>";
13
+ static commitPattern = /^[0-9a-f]{40}$/;
14
+ static dependenciesField = "dependencies";
15
+ static failureExitCode = 1;
16
+ static gitFileSeparator = "\0";
17
+ static gitFileType = "blob";
18
+ static gitHeadField = "gitHead";
19
+ static gitHeadRevision = "HEAD^{commit}";
20
+ static gitIsAncestorValues = ["merge-base", "--is-ancestor", "--end-of-options"];
21
+ static gitListFilesValues = ["ls-tree", "-r", "-z", "--name-only", "--full-tree", "--end-of-options"];
22
+ static gitNotFoundExitCode = 1;
23
+ static gitProgram = "git";
24
+ static gitReadFileValues = ["cat-file", "blob", "--end-of-options"];
25
+ static gitReadHeadValues = ["rev-parse", "--verify", "--end-of-options"];
26
+ static gitReadTypeValues = ["cat-file", "-t", "--end-of-options"];
27
+ static gitVerifyValues = ["rev-parse", "--verify", "--quiet", "--end-of-options"];
28
+ static integrityAlgorithm = "sha512";
29
+ static integrityEncoding = "base64";
30
+ static latestTag = "latest";
31
+ static lineBreakPattern = /\r?\n/;
32
+ static lineSeparator = "\n";
33
+ static mainBranch = "origin/main";
34
+ static mainReference = "refs/remotes/origin/main";
35
+ static majorPartName = "major";
36
+ static manifestFileName = "package.json";
37
+ static messagePartSeparator = "; ";
38
+ static minorPartName = "minor";
39
+ static nameField = "name";
40
+ static nightlyDatePattern = /^([1-9][0-9]{3})([0-9]{2})([0-9]{2})$/;
41
+ static nightlySeparator = "-nightly.";
42
+ static nightlyStepName = "nightly";
43
+ static nightlyStepUsage = "<commit> <registry>";
44
+ static nightlyTag = "nightly";
45
+ static npmAccessValues = ["--access"];
46
+ static npmIntegrityField = "dist.integrity";
47
+ static npmNotFoundCode = "E404";
48
+ static npmPreferOnlineValues = ["--prefer-online"];
49
+ static npmProgram = "npm";
50
+ static npmPublishValues = ["publish"];
51
+ static npmRegistryValues = ["--registry"];
52
+ static npmTagValues = ["--tag"];
53
+ static npmViewValues = ["view"];
54
+ static packagesFolderPath = "src";
55
+ static patchPartName = "patch";
56
+ static pathSeparator = "/";
57
+ static privateField = "private";
58
+ static processReleaseDelayMilliseconds = 0;
59
+ static publishRetryMilliseconds = 10_000;
60
+ static publishStepName = "publish";
61
+ static publishStepUsage = "<folder> <version> <commit> <scope> <registry> <access>";
62
+ static publishWaitMilliseconds = 600_000;
63
+ static registryProtocol = "https:";
64
+ static scopePattern = /^@[a-z0-9][a-z0-9._~-]*$/;
65
+ static sourceStepName = "source";
66
+ static sourceStepUsage = "<version> <commit>";
67
+ static successExitCode = 0;
68
+ static tagPrefix = "v";
69
+ static tagStepName = "tag";
70
+ static tagStepUsage = "<version> <commit>";
71
+ static tarProgram = "tar";
72
+ static tarReadFileValues = ["-xzOf"];
73
+ static testsFolderName = "tests";
74
+ static textEncoding = "utf8";
75
+ static urlCredentialsPattern = /\b([a-z][a-z0-9+.-]*:\/\/)[^\s/@]+@/gi;
76
+ static urlQueryPattern = /\b([a-z][a-z0-9+.-]*:\/\/[^\s?#]*)[?#]\S*/gi;
77
+ static usageSeparator = " | ";
78
+ static valueSeparator = " ";
79
+ static versionField = "version";
80
+ static versionFilePath = "version.json";
81
+ static versionInvalid = "The text is not a version.";
82
+ static versionPartSeparator = ".";
83
+ static versionPattern = /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(?:-nightly\.([0-9]{8}))?$/;
84
+ static formatVersionInvalid(text) {
85
+ return `"${text}" is not a version: a version is major.minor.patch, each a whole number without a leading zero, such as 1.4.0, or a nightly version, major.minor.patch-nightly.YYYYMMDD, such as 1.4.1-nightly.20261101.`;
86
+ }
87
+ static formatVersionPartInvalid(partName, value) {
88
+ return `A version's ${partName} part must be a whole number from 0 to ${Number.MAX_SAFE_INTEGER}, not ${value}.`;
89
+ }
90
+ static formatNightlyDateInvalid(value) {
91
+ return `A nightly version's date must be a calendar date written YYYYMMDD, from year 1000, such as 20261101, not "${value}".`;
92
+ }
93
+ static formatUsage(programName, stepUsages) {
94
+ return `Usage: ${programName} ${stepUsages.join(Resources.usageSeparator)}`;
95
+ }
96
+ static formatStepUsage(stepName, usage) {
97
+ return `${stepName}${Resources.valueSeparator}${usage}`;
98
+ }
99
+ static formatStepValuesInvalid(stepName, usage) {
100
+ return `The ${stepName} step takes ${usage}.`;
101
+ }
102
+ static formatCommitInvalid(text) {
103
+ return `"${text}" is not a commit: a commit is given by its full id, 40 lowercase hexadecimal digits.`;
104
+ }
105
+ static formatCommitMissing(commit) {
106
+ return `Commit ${commit} is not in this repository.`;
107
+ }
108
+ static formatBranchMissing(branch) {
109
+ return `This clone has no ${branch}; fetch it with its history before this step.`;
110
+ }
111
+ static formatCommitNotOnBranch(commit, branch) {
112
+ return `Commit ${commit} is not on ${branch}.`;
113
+ }
114
+ static formatVersionFileMissing(commit, filePath) {
115
+ return `Commit ${commit} has no ${filePath} at its root.`;
116
+ }
117
+ static formatVersionDiffers(commit, filePath, found, expected) {
118
+ return `${filePath} at commit ${commit} holds ${found}, not ${expected}.`;
119
+ }
120
+ static formatVersionNotRelease(commit, filePath, found) {
121
+ return `${filePath} at commit ${commit} holds ${found}, not a release version.`;
122
+ }
123
+ static formatSourceChecked(commit, branch, filePath, version) {
124
+ return `Commit ${commit} is on ${branch}, and its ${filePath} holds ${version}.`;
125
+ }
126
+ static formatScopeInvalid(text) {
127
+ return `"${text}" is not a scope: a scope is @ and a lowercase name, such as @noldova.`;
128
+ }
129
+ static formatHeadDiffers(head, commit) {
130
+ return `The checkout is at commit ${head}, not at ${commit}.`;
131
+ }
132
+ static formatFolderMissing(folder) {
133
+ return `There is no folder ${folder}.`;
134
+ }
135
+ static formatPackagesMissing(commit, folderPath) {
136
+ return `Commit ${commit} has no package to publish under ${folderPath}/.`;
137
+ }
138
+ static formatArchiveName(packageName, version) {
139
+ return `${packageName.replace(/^@/, "").replace("/", "-")}-${version}.tgz`;
140
+ }
141
+ static formatArchiveFilePath(archiveName, filePath) {
142
+ return `${archiveName}/${filePath}`;
143
+ }
144
+ static formatArchiveMissing(folder, archiveName) {
145
+ return `${folder} has no ${archiveName}.`;
146
+ }
147
+ static formatArchiveUnexpected(folder, fileName, version) {
148
+ return `${folder} holds ${fileName}, which is not one of the packages' archives at ${version}.`;
149
+ }
150
+ static formatArchiveUnreadable(archiveName, filePath, exitCode, errorOutput) {
151
+ return Resources.formatFailureLine(`${archiveName}: ${Resources.tarProgram} could not read its ${filePath} and exited with code ${exitCode}`, errorOutput);
152
+ }
153
+ static formatFieldDiffers(archiveName, field, found, expected) {
154
+ return `${archiveName}: its ${field} is ${found}, not ${expected}.`;
155
+ }
156
+ static formatOutsideScope(archiveName, packageName, scope) {
157
+ return `${archiveName}: ${packageName} is outside the scope ${scope}.`;
158
+ }
159
+ static formatFieldMissing(archiveName, field, expected) {
160
+ return `${archiveName}: it has no ${field}, which should be ${expected}.`;
161
+ }
162
+ static formatArchivePrivate(archiveName) {
163
+ return `${archiveName}: it is marked private.`;
164
+ }
165
+ static formatDependencyDiffers(archiveName, dependency, found, version) {
166
+ return `${archiveName}: its dependency ${dependency} is ${found}, not exactly ${version}.`;
167
+ }
168
+ static formatArchiveChecked(archiveName, packageName, version, commit) {
169
+ return `${archiveName}: ${packageName}@${version} from commit ${commit}`;
170
+ }
171
+ static formatScopeNamePrefix(scope) {
172
+ return `${scope}/`;
173
+ }
174
+ static formatRegistryInvalid() {
175
+ return "The registry is not an https URL without credentials, a query or a fragment, such as https://registry.npmjs.org/.";
176
+ }
177
+ static formatAccessInvalid(text) {
178
+ return `"${text}" is not an access: the access is ${Resources.accessLevels.join(" or ")}.`;
179
+ }
180
+ static formatSpecifier(packageName, version) {
181
+ return `${packageName}@${version}`;
182
+ }
183
+ static formatIntegrity(algorithm, hash) {
184
+ return `${algorithm}-${hash}`;
185
+ }
186
+ static formatAlreadyPublished(specifier) {
187
+ return `${specifier} is already published from this archive.`;
188
+ }
189
+ static formatPublishedOtherwise(specifier) {
190
+ return `${specifier} is already published from another archive.`;
191
+ }
192
+ static formatDistTagField(tag) {
193
+ return `dist-tags.${tag}`;
194
+ }
195
+ static formatTaggedInvalid(packageName, tag, tagged) {
196
+ return `${packageName}'s ${tag} version, ${tagged}, is not a version.`;
197
+ }
198
+ static formatNotNewer(specifier, tag, tagged) {
199
+ return `${specifier} is not newer than ${tagged}, the package's ${tag} version.`;
200
+ }
201
+ static formatNpmFailed(specifier, commandValues, exitCode, errorOutput) {
202
+ return Resources.formatFailureLine(`${specifier}: ${Resources.npmProgram} ${commandValues.join(Resources.valueSeparator)} exited with code ${exitCode}`, errorOutput);
203
+ }
204
+ static formatNotServed(specifier, waitMilliseconds) {
205
+ return `${specifier} was published, but the registry did not serve it within ${waitMilliseconds / 1_000} seconds.`;
206
+ }
207
+ static formatPublished(specifier) {
208
+ return `${specifier} published.`;
209
+ }
210
+ static formatNightlyDate(date) {
211
+ return `${date.getUTCFullYear()}${String(date.getUTCMonth() + 1).padStart(2, "0")}${String(date.getUTCDate()).padStart(2, "0")}`;
212
+ }
213
+ static formatNightlyPartlyPublished(specifiers, date) {
214
+ return `Only some packages' last nightly is from ${date}, UTC, so the publish step would refuse a new one for them: ${specifiers.join(", ")}.`;
215
+ }
216
+ static formatTagName(version) {
217
+ return `${Resources.tagPrefix}${version}`;
218
+ }
219
+ static formatTagVersionNotRelease(version) {
220
+ return `${version} is a nightly version; only a release version is tagged.`;
221
+ }
222
+ static formatTagCreated(tag, commit) {
223
+ return `Tagged commit ${commit} as ${tag}.`;
224
+ }
225
+ static formatTagFound(tag, commit) {
226
+ return `${tag} already points to commit ${commit}.`;
227
+ }
228
+ static formatTagElsewhere(tag, found, commit) {
229
+ return `${tag} points to commit ${found}, not ${commit}; a tag is never moved.`;
230
+ }
231
+ static formatTagUnreadable(tag) {
232
+ return `${tag} exists, so it could not be created, but reading it found no tag.`;
233
+ }
234
+ static formatGitCommitRevision(revision) {
235
+ return `${revision}^{commit}`;
236
+ }
237
+ static formatGitFileRevision(commit, filePath) {
238
+ return `${commit}:${filePath}`;
239
+ }
240
+ static formatProgramFailed(program) {
241
+ return `The program "${program}" failed.`;
242
+ }
243
+ static formatProcessNotStarted(program, reason) {
244
+ return `"${program}" could not start: ${reason}`;
245
+ }
246
+ static formatProcessFailed(command, exitCode, errorOutput) {
247
+ const detail = errorOutput.trim();
248
+ return detail.length === 0 ? `"${command}" failed with exit code ${exitCode}.` : `"${command}" failed with exit code ${exitCode}: ${detail}`;
249
+ }
250
+ static formatFailureLine(failure, errorOutput) {
251
+ const detail = errorOutput.split(Resources.lineBreakPattern).map(t => t.trim()).filter(t => t.length > 0).join(Resources.messagePartSeparator);
252
+ return detail.length === 0 ? `${failure}.` : `${failure}: ${Resources.removeCredentials(detail)}`;
253
+ }
254
+ static removeCredentials(text) {
255
+ return text.replace(Resources.urlCredentialsPattern, "$1").replace(Resources.urlQueryPattern, "$1");
256
+ }
257
+ }
258
+ //# sourceMappingURL=resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/noldova.tools.pipelines/src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,SAAS;IACb,MAAM,CAAU,YAAY,GAAsB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC3E,MAAM,CAAU,m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