@clickview/ship-it 0.0.18 → 0.0.20-dev.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 (138) hide show
  1. package/README.md +48 -48
  2. package/config.json +10 -10
  3. package/lib/config.json +11 -11
  4. package/lib/src/api-clients/git-lab/GitLabApiClient.js +404 -404
  5. package/lib/src/api-clients/git-lab/GitLabMapper.js +81 -81
  6. package/lib/src/api-clients/index.js +18 -18
  7. package/lib/src/api-clients/team-city/TeamCityApiClient.js +85 -85
  8. package/lib/src/commands/BumpPackagesCommand.js +84 -84
  9. package/lib/src/commands/CreateBranchCommand.js +100 -100
  10. package/lib/src/commands/CreateMergeRequestCommand.js +107 -107
  11. package/lib/src/commands/CreateReleaseNotesCommand.js +84 -84
  12. package/lib/src/commands/CreateTestingNotesCommand.js +84 -84
  13. package/lib/src/commands/InstallPackagesCommand.js +76 -76
  14. package/lib/src/commands/ListProjectsCommand.js +76 -76
  15. package/lib/src/commands/ReleaseCommand.js +129 -129
  16. package/lib/src/commands/StartConsumingProjectBuildsCommand.js +76 -76
  17. package/lib/src/commands/StatusCommand.js +88 -88
  18. package/lib/src/commands/TagMasterCommand.js +76 -76
  19. package/lib/src/commands/ValidateMergeRequestCommand.js +76 -76
  20. package/lib/src/commands/VersionCommand.js +76 -76
  21. package/lib/src/commands/index.js +29 -29
  22. package/lib/src/constants/CommandTypeMapping.js +19 -19
  23. package/lib/src/constants/GitLabMemberIds.js +6 -6
  24. package/lib/src/constants/MonorepoPackageJsonFiles.js +16 -15
  25. package/lib/src/constants/ProjectNames.js +62 -61
  26. package/lib/src/constants/TeamCityBuildIDs.js +15 -15
  27. package/lib/src/constants/index.js +19 -19
  28. package/lib/src/errors/ShipItError.js +32 -32
  29. package/lib/src/errors/index.js +17 -17
  30. package/lib/src/index.js +18 -18
  31. package/lib/src/interfaces/Config.js +2 -2
  32. package/lib/src/interfaces/MergeRequestState.js +2 -2
  33. package/lib/src/interfaces/ProjectNames.js +2 -2
  34. package/lib/src/interfaces/ShipItCommand.js +2 -2
  35. package/lib/src/interfaces/ShipItTask.js +2 -2
  36. package/lib/src/interfaces/VersionType.js +2 -2
  37. package/lib/src/interfaces/command-cli-options/MilestoneCommandCliOptions.js +2 -2
  38. package/lib/src/interfaces/command-cli-options/ReleaseCommandCliOptions.js +2 -2
  39. package/lib/src/interfaces/command-cli-options/index.js +18 -18
  40. package/lib/src/interfaces/command-options/BaseCommandOptions.js +2 -2
  41. package/lib/src/interfaces/command-options/BumpPackagesCommandOptions.js +2 -2
  42. package/lib/src/interfaces/command-options/DockerMilestoneCommandOptions.js +2 -2
  43. package/lib/src/interfaces/command-options/MilestoneCommandOptions.js +2 -2
  44. package/lib/src/interfaces/command-options/ReleaseCommandOptions.js +2 -2
  45. package/lib/src/interfaces/command-options/ValidateMRCommandOptions.js +2 -2
  46. package/lib/src/interfaces/command-options/index.js +21 -21
  47. package/lib/src/interfaces/index.js +26 -26
  48. package/lib/src/interfaces/models/Branch.js +2 -2
  49. package/lib/src/interfaces/models/Commit.js +2 -2
  50. package/lib/src/interfaces/models/CommitFile.js +2 -2
  51. package/lib/src/interfaces/models/File.js +2 -2
  52. package/lib/src/interfaces/models/Label.js +2 -2
  53. package/lib/src/interfaces/models/MergeRequest.js +2 -2
  54. package/lib/src/interfaces/models/Milestone.js +2 -2
  55. package/lib/src/interfaces/models/Project.js +2 -2
  56. package/lib/src/interfaces/models/ProjectConfig.js +9 -9
  57. package/lib/src/interfaces/models/Release.js +2 -2
  58. package/lib/src/interfaces/models/Tag.js +2 -2
  59. package/lib/src/interfaces/models/index.js +26 -26
  60. package/lib/src/interfaces/view-models/MilestoneProject.js +2 -2
  61. package/lib/src/interfaces/view-models/index.js +17 -17
  62. package/lib/src/inversify.config.js +67 -67
  63. package/lib/src/services/GitLabService.js +498 -498
  64. package/lib/src/services/TeamCityService.js +34 -34
  65. package/lib/src/services/index.js +18 -18
  66. package/lib/src/startup/AddMilestoneCommand.js +95 -95
  67. package/lib/src/startup/GetAction.js +68 -68
  68. package/lib/src/startup/SetupCommands.js +128 -127
  69. package/lib/src/tasks/BumpPackagesTask.js +229 -229
  70. package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
  71. package/lib/src/tasks/CommitPackageVersionsTask.js +116 -116
  72. package/lib/src/tasks/CreateBranchTask.js +104 -104
  73. package/lib/src/tasks/CreateMergeRequestTask.js +118 -118
  74. package/lib/src/tasks/CreateReleaseNotesTask.js +122 -122
  75. package/lib/src/tasks/CreateTestingNotesTask.js +135 -135
  76. package/lib/src/tasks/InstallPackagesTask.js +399 -351
  77. package/lib/src/tasks/ListProjectsTask.js +87 -87
  78. package/lib/src/tasks/StartConsumingProjectBuildsTask.js +149 -149
  79. package/lib/src/tasks/StartMonorepoBuildTask.js +95 -95
  80. package/lib/src/tasks/TagMasterTask.js +121 -121
  81. package/lib/src/tasks/ValidateCommitsTask.js +119 -119
  82. package/lib/src/tasks/ValidateDescriptionsTask.js +151 -151
  83. package/lib/src/tasks/ValidateMergeRequestTask.js +115 -115
  84. package/lib/src/tasks/ValidateTask.js +240 -237
  85. package/lib/src/tasks/VersionTask.js +98 -98
  86. package/lib/src/tasks/index.js +33 -33
  87. package/lib/src/types.js +49 -49
  88. package/lib/src/utils/BranchNames.js +11 -11
  89. package/lib/src/utils/Commits.js +55 -55
  90. package/lib/src/utils/Csv.js +54 -54
  91. package/lib/src/utils/Descriptions.js +237 -237
  92. package/lib/src/utils/GroupIds.js +6 -6
  93. package/lib/src/utils/Logger.js +62 -62
  94. package/lib/src/utils/ProjectIds.js +47 -47
  95. package/lib/src/utils/Versions.js +20 -20
  96. package/lib/src/utils/index.js +22 -22
  97. package/package.json +47 -47
  98. package/dist/A2/A2 Testing Notes.csv +0 -518
  99. package/dist/A2/Batch.Api.md +0 -37
  100. package/dist/A2/ClickView.Curator.md +0 -17
  101. package/dist/A2/Clients.md +0 -23
  102. package/dist/A2/Discover.Api.md +0 -14
  103. package/dist/A2/FileGenerator.md +0 -8
  104. package/dist/A2/Krakend.md +0 -25
  105. package/dist/A2/Library.Api.md +0 -13
  106. package/dist/A2/Lite.md +0 -27
  107. package/dist/A2/Master.Auth.md +0 -52
  108. package/dist/A2/Objects.Api.md +0 -8
  109. package/dist/A2/Permissions.Api.md +0 -12
  110. package/dist/A2/Release Notes.md +0 -479
  111. package/dist/A2/Search.Api.md +0 -12
  112. package/dist/A2/Subjects.API.md +0 -22
  113. package/dist/A2/Users.Api.md +0 -63
  114. package/dist/A2/clickview.md +0 -83
  115. package/dist/A2/index.app.md +0 -15
  116. package/dist/Z2/Analytics Web.md +0 -7
  117. package/dist/Z2/Batch.Api.md +0 -13
  118. package/dist/Z2/ClickView Online.md +0 -19
  119. package/dist/Z2/ClickView.Cron.md +0 -8
  120. package/dist/Z2/ClickView.Curator.md +0 -39
  121. package/dist/Z2/Clients.md +0 -31
  122. package/dist/Z2/Discover.Api.md +0 -12
  123. package/dist/Z2/Domain.Api.md +0 -31
  124. package/dist/Z2/Image.Api.md +0 -12
  125. package/dist/Z2/Krakend.md +0 -33
  126. package/dist/Z2/LTI.md +0 -8
  127. package/dist/Z2/Launch.Web.md +0 -9
  128. package/dist/Z2/Library Editor.md +0 -7
  129. package/dist/Z2/Library.Api.md +0 -13
  130. package/dist/Z2/Lite.md +0 -32
  131. package/dist/Z2/Master.Auth.md +0 -16
  132. package/dist/Z2/Objects.Api.md +0 -9
  133. package/dist/Z2/Permissions.Api.md +0 -0
  134. package/dist/Z2/Prospect.Api.md +0 -17
  135. package/dist/Z2/RealtimeSalesforceSync.md +0 -19
  136. package/dist/Z2/Release Notes.md +0 -549
  137. package/dist/Z2/Users.Api.md +0 -13
  138. package/dist/Z2/clickview.md +0 -135
package/README.md CHANGED
@@ -1,48 +1,48 @@
1
- # Ship It
2
-
3
- ## Introduction
4
-
5
- "Ship It" is a CLI tool that was created to automate aspects of our release workflow.
6
-
7
- ### How To Manage A Release
8
-
9
- If you are here to learn how to manage a release, please see [this document](https://clickview.quip.com/DbEyAaVK8sqB/Release-Manager-Checklist) instead.
10
-
11
- ### How To Contribute
12
-
13
- If you are here instead of learn about or contribute to this project, then you're in the right place! Keep reading :)
14
-
15
- ## Prerequisites
16
-
17
- * NodeJS (and npm)
18
- * Access to the ClickView organization on [npm](https://www.npmjs.com). You will need to add an npm auth token to a global or local `.npmrc` file
19
- * Add the `Ship It` user as a `Developer` to each GitLab project you would like to manage using the Ship It CLI
20
-
21
- ## Getting Started
22
-
23
- ```
24
- git clone https://gitlab.cvinternal.net/front-end/ship-it.git
25
- cd ship-it
26
- npm install
27
- ```
28
-
29
- After installation, you can run `npm run start -- help` to see the full list of commands.
30
-
31
- ## Contributing
32
-
33
- ### Open Issues
34
-
35
- All bugs / feature requests are tracked in the [issues](https://gitlab.cvinternal.net/clickview/front-end/ship-it/-/issues) section of this project.
36
-
37
- Anyone is free to pick up an issue and work on it at will! Don't be afraid, the TypeScript won't bite.
38
-
39
- ### Project Architecture
40
-
41
- Each CLI command is defined in the `startup/SetupCommands.ts` file.
42
-
43
- Each command maps to a particular TypeScript class in the `commands` directory.
44
- These command classes typically just sequentially run a set of "tasks", where each "task" can be shared across different commands.
45
- Each task also exists as a TypeScript class under the `tasks` directory.
46
-
47
- All code written in this project is intended to be highly reusable! If you are contributing a new command or updating an existing one, be sure to see if the code you're looking for already exists.
48
-
1
+ # Ship It
2
+
3
+ ## Introduction
4
+
5
+ "Ship It" is a CLI tool that was created to automate aspects of our release workflow.
6
+
7
+ ### How To Manage A Release
8
+
9
+ If you are here to learn how to manage a release, please see [this document](https://clickview.quip.com/DbEyAaVK8sqB/Release-Manager-Checklist) instead.
10
+
11
+ ### How To Contribute
12
+
13
+ If you are here instead of learn about or contribute to this project, then you're in the right place! Keep reading :)
14
+
15
+ ## Prerequisites
16
+
17
+ * NodeJS (and npm)
18
+ * Access to the ClickView organization on [npm](https://www.npmjs.com). You will need to add an npm auth token to a global or local `.npmrc` file
19
+ * Add the `Ship It` user as a `Developer` to each GitLab project you would like to manage using the Ship It CLI
20
+
21
+ ## Getting Started
22
+
23
+ ```
24
+ git clone https://gitlab.cvinternal.net/front-end/ship-it.git
25
+ cd ship-it
26
+ npm install
27
+ ```
28
+
29
+ After installation, you can run `npm run start -- help` to see the full list of commands.
30
+
31
+ ## Contributing
32
+
33
+ ### Open Issues
34
+
35
+ All bugs / feature requests are tracked in the [issues](https://gitlab.cvinternal.net/clickview/front-end/ship-it/-/issues) section of this project.
36
+
37
+ Anyone is free to pick up an issue and work on it at will! Don't be afraid, the TypeScript won't bite.
38
+
39
+ ### Project Architecture
40
+
41
+ Each CLI command is defined in the `startup/SetupCommands.ts` file.
42
+
43
+ Each command maps to a particular TypeScript class in the `commands` directory.
44
+ These command classes typically just sequentially run a set of "tasks", where each "task" can be shared across different commands.
45
+ Each task also exists as a TypeScript class under the `tasks` directory.
46
+
47
+ All code written in this project is intended to be highly reusable! If you are contributing a new command or updating an existing one, be sure to see if the code you're looking for already exists.
48
+
package/config.json CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "gitLab": {
3
- "accessToken": "glpat-YK8GmVgXRRf3zBe3JQze",
4
- "url": "https://gitlab.cvinternal.net"
5
- },
6
- "teamCity": {
7
- "url": "http://build.cvinternal.net/",
8
- "username": "shale.kuzmanovski",
9
- "password": "hock-inflame-prodigy-unstrap"
10
- }
1
+ {
2
+ "gitLab": {
3
+ "accessToken": "glpat-YK8GmVgXRRf3zBe3JQze",
4
+ "url": "https://gitlab.cvinternal.net"
5
+ },
6
+ "teamCity": {
7
+ "url": "http://build.cvinternal.net/",
8
+ "username": "shale.kuzmanovski",
9
+ "password": "hock-inflame-prodigy-unstrap"
10
+ }
11
11
  }
package/lib/config.json CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "gitLab": {
3
- "accessToken": "glpat-YK8GmVgXRRf3zBe3JQze",
4
- "url": "https://gitlab.cvinternal.net"
5
- },
6
- "teamCity": {
7
- "url": "http://build.cvinternal.net/",
8
- "username": "shale.kuzmanovski",
9
- "password": "hock-inflame-prodigy-unstrap"
10
- }
11
- }
1
+ {
2
+ "gitLab": {
3
+ "accessToken": "glpat-YK8GmVgXRRf3zBe3JQze",
4
+ "url": "https://gitlab.cvinternal.net"
5
+ },
6
+ "teamCity": {
7
+ "url": "http://build.cvinternal.net/",
8
+ "username": "shale.kuzmanovski",
9
+ "password": "hock-inflame-prodigy-unstrap"
10
+ }
11
+ }