@git.zone/cli 1.9.95

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 (190) hide show
  1. package/assets/templates/ci_default/.gitea/workflows/default_nottags.yaml +66 -0
  2. package/assets/templates/ci_default/.gitea/workflows/default_tags.yaml +124 -0
  3. package/assets/templates/ci_default_gitlab/.gitlab-ci.yml +128 -0
  4. package/assets/templates/ci_default_private/.gitea/workflows/default_nottags.yaml +66 -0
  5. package/assets/templates/ci_default_private/.gitea/workflows/default_tags.yaml +124 -0
  6. package/assets/templates/ci_default_private_gitlab/.gitlab-ci.yml +133 -0
  7. package/assets/templates/ci_docker/.gitea/workflows/docker_nottags.yaml +71 -0
  8. package/assets/templates/ci_docker/.gitea/workflows/docker_tags.yaml +106 -0
  9. package/assets/templates/ci_docker_gitlab/.gitlab-ci.yml +107 -0
  10. package/assets/templates/cli/cli.child.ts +4 -0
  11. package/assets/templates/cli/cli.js +4 -0
  12. package/assets/templates/cli/cli.ts.js +5 -0
  13. package/assets/templates/dockerfile_service/Dockerfile +46 -0
  14. package/assets/templates/dockerfile_service/dockerignore +4 -0
  15. package/assets/templates/gitignore/_gitignore +23 -0
  16. package/assets/templates/license_mit/license +19 -0
  17. package/assets/templates/meta/.meta.json +3 -0
  18. package/assets/templates/meta/.smartscaf.yml +5 -0
  19. package/assets/templates/meta/package.json +11 -0
  20. package/assets/templates/npm/.package.json +28 -0
  21. package/assets/templates/npm/.smartscaf.yml +24 -0
  22. package/assets/templates/npm/test/test.ts +8 -0
  23. package/assets/templates/npm/ts/index.ts +3 -0
  24. package/assets/templates/npm/ts/some.plugins.ts +7 -0
  25. package/assets/templates/npmextra/npmextra.json +18 -0
  26. package/assets/templates/readme/readme.md +5 -0
  27. package/assets/templates/service/.package.json +34 -0
  28. package/assets/templates/service/.smartscaf.yml +21 -0
  29. package/assets/templates/service/npmextra.json +24 -0
  30. package/assets/templates/service/ts/00_commitinfo_data.ts +8 -0
  31. package/assets/templates/service/ts/index.ts +4 -0
  32. package/assets/templates/service/ts/some.classes.some.db.ts +30 -0
  33. package/assets/templates/service/ts/some.classes.some.ts +27 -0
  34. package/assets/templates/service/ts/some.paths.ts +9 -0
  35. package/assets/templates/service/ts/some.plugins.ts +25 -0
  36. package/assets/templates/tsconfig_update/tsconfig.json +14 -0
  37. package/assets/templates/vscode/.vscode/launch.json +11 -0
  38. package/assets/templates/vscode/.vscode/settings.json +26 -0
  39. package/assets/templates/wcc/.package.json +47 -0
  40. package/assets/templates/wcc/.smartscaf.yml +20 -0
  41. package/assets/templates/wcc/ts_web/elements/first-element.ts +47 -0
  42. package/assets/templates/wcc/ts_web/elements/index.ts +1 -0
  43. package/assets/templates/wcc/ts_web/index.ts +1 -0
  44. package/assets/templates/wcc/ts_web/pages/index.ts +2 -0
  45. package/assets/templates/wcc/ts_web/pages/page1.ts +5 -0
  46. package/assets/templates/wcc/ts_web/pages/page2.ts +5 -0
  47. package/assets/templates/wcc_update/html/index.html +25 -0
  48. package/assets/templates/wcc_update/html/index.ts +10 -0
  49. package/assets/templates/website/.package.json +40 -0
  50. package/assets/templates/website/.smartscaf.yml +17 -0
  51. package/assets/templates/website/Dockerfile +3 -0
  52. package/assets/templates/website/npmextra.json +24 -0
  53. package/assets/templates/website/qenv.yml +1 -0
  54. package/assets/templates/website/readme.md +1 -0
  55. package/assets/templates/website/ts/ffb.paths.ts +7 -0
  56. package/assets/templates/website/ts/ffb.plugins.ts +14 -0
  57. package/assets/templates/website/ts/index.ts +12 -0
  58. package/assets/templates/website/ts_web/elements/header.ts +62 -0
  59. package/assets/templates/website/ts_web/index.ts +63 -0
  60. package/assets/templates/website_update/html/index.html +110 -0
  61. package/cli.js +4 -0
  62. package/dist_ts/00_commitinfo_data.d.ts +8 -0
  63. package/dist_ts/00_commitinfo_data.js +9 -0
  64. package/dist_ts/classes.gitzoneconfig.d.ts +31 -0
  65. package/dist_ts/classes.gitzoneconfig.js +21 -0
  66. package/dist_ts/classes.project.d.ts +11 -0
  67. package/dist_ts/classes.project.js +23 -0
  68. package/dist_ts/gitzone.cli.d.ts +1 -0
  69. package/dist_ts/gitzone.cli.js +82 -0
  70. package/dist_ts/gitzone.config.d.ts +28 -0
  71. package/dist_ts/gitzone.config.js +21 -0
  72. package/dist_ts/gitzone.logging.d.ts +2 -0
  73. package/dist_ts/gitzone.logging.js +14 -0
  74. package/dist_ts/gitzone.monitor.d.ts +1 -0
  75. package/dist_ts/gitzone.monitor.js +2 -0
  76. package/dist_ts/gitzone.paths.d.ts +4 -0
  77. package/dist_ts/gitzone.paths.js +6 -0
  78. package/dist_ts/gitzone.plugins.d.ts +10 -0
  79. package/dist_ts/gitzone.plugins.js +11 -0
  80. package/dist_ts/index.d.ts +1 -0
  81. package/dist_ts/index.js +10 -0
  82. package/dist_ts/mod_audit/index.d.ts +1 -0
  83. package/dist_ts/mod_audit/index.js +2 -0
  84. package/dist_ts/mod_commit/index.d.ts +1 -0
  85. package/dist_ts/mod_commit/index.js +68 -0
  86. package/dist_ts/mod_commit/mod.plugins.d.ts +5 -0
  87. package/dist_ts/mod_commit/mod.plugins.js +6 -0
  88. package/dist_ts/mod_deprecate/index.d.ts +1 -0
  89. package/dist_ts/mod_deprecate/index.js +34 -0
  90. package/dist_ts/mod_deprecate/mod.plugins.d.ts +4 -0
  91. package/dist_ts/mod_deprecate/mod.plugins.js +5 -0
  92. package/dist_ts/mod_format/format.classes.project.d.ts +8 -0
  93. package/dist_ts/mod_format/format.classes.project.js +20 -0
  94. package/dist_ts/mod_format/format.cleanup.d.ts +2 -0
  95. package/dist_ts/mod_format/format.cleanup.js +18 -0
  96. package/dist_ts/mod_format/format.copy.d.ts +2 -0
  97. package/dist_ts/mod_format/format.copy.js +5 -0
  98. package/dist_ts/mod_format/format.gitignore.d.ts +2 -0
  99. package/dist_ts/mod_format/format.gitignore.js +19 -0
  100. package/dist_ts/mod_format/format.license.d.ts +2 -0
  101. package/dist_ts/mod_format/format.license.js +23 -0
  102. package/dist_ts/mod_format/format.npmextra.d.ts +5 -0
  103. package/dist_ts/mod_format/format.npmextra.js +59 -0
  104. package/dist_ts/mod_format/format.packagejson.d.ts +2 -0
  105. package/dist_ts/mod_format/format.packagejson.js +104 -0
  106. package/dist_ts/mod_format/format.prettier.d.ts +2 -0
  107. package/dist_ts/mod_format/format.prettier.js +51 -0
  108. package/dist_ts/mod_format/format.readme.d.ts +2 -0
  109. package/dist_ts/mod_format/format.readme.js +40 -0
  110. package/dist_ts/mod_format/format.templates.d.ts +5 -0
  111. package/dist_ts/mod_format/format.templates.js +67 -0
  112. package/dist_ts/mod_format/index.d.ts +1 -0
  113. package/dist_ts/mod_format/index.js +30 -0
  114. package/dist_ts/mod_format/mod.plugins.d.ts +11 -0
  115. package/dist_ts/mod_format/mod.plugins.js +12 -0
  116. package/dist_ts/mod_helpers/index.d.ts +1 -0
  117. package/dist_ts/mod_helpers/index.js +10 -0
  118. package/dist_ts/mod_helpers/mod.plugins.d.ts +3 -0
  119. package/dist_ts/mod_helpers/mod.plugins.js +4 -0
  120. package/dist_ts/mod_meta/index.d.ts +1 -0
  121. package/dist_ts/mod_meta/index.js +25 -0
  122. package/dist_ts/mod_meta/meta.classes.meta.d.ts +53 -0
  123. package/dist_ts/mod_meta/meta.classes.meta.js +174 -0
  124. package/dist_ts/mod_meta/meta.interfaces.d.ts +5 -0
  125. package/dist_ts/mod_meta/meta.interfaces.js +2 -0
  126. package/dist_ts/mod_meta/meta.plugins.d.ts +6 -0
  127. package/dist_ts/mod_meta/meta.plugins.js +7 -0
  128. package/dist_ts/mod_open/index.d.ts +1 -0
  129. package/dist_ts/mod_open/index.js +12 -0
  130. package/dist_ts/mod_open/mod.plugins.d.ts +4 -0
  131. package/dist_ts/mod_open/mod.plugins.js +5 -0
  132. package/dist_ts/mod_standard/index.d.ts +1 -0
  133. package/dist_ts/mod_standard/index.js +25 -0
  134. package/dist_ts/mod_standard/mod.plugins.d.ts +3 -0
  135. package/dist_ts/mod_standard/mod.plugins.js +4 -0
  136. package/dist_ts/mod_start/index.d.ts +6 -0
  137. package/dist_ts/mod_start/index.js +22 -0
  138. package/dist_ts/mod_start/mod.plugins.d.ts +3 -0
  139. package/dist_ts/mod_start/mod.plugins.js +5 -0
  140. package/dist_ts/mod_template/index.d.ts +8 -0
  141. package/dist_ts/mod_template/index.js +47 -0
  142. package/dist_ts/mod_template/mod.plugins.d.ts +5 -0
  143. package/dist_ts/mod_template/mod.plugins.js +6 -0
  144. package/dist_ts/paths.d.ts +4 -0
  145. package/dist_ts/paths.js +6 -0
  146. package/dist_ts/plugins.d.ts +11 -0
  147. package/dist_ts/plugins.js +11 -0
  148. package/license +19 -0
  149. package/npmextra.json +34 -0
  150. package/package.json +107 -0
  151. package/readme.hints.md +1 -0
  152. package/readme.md +207 -0
  153. package/ts/00_commitinfo_data.ts +8 -0
  154. package/ts/classes.gitzoneconfig.ts +47 -0
  155. package/ts/classes.project.ts +28 -0
  156. package/ts/gitzone.cli.ts +101 -0
  157. package/ts/gitzone.logging.ts +15 -0
  158. package/ts/index.ts +9 -0
  159. package/ts/mod_audit/index.ts +1 -0
  160. package/ts/mod_commit/index.ts +73 -0
  161. package/ts/mod_commit/mod.plugins.ts +7 -0
  162. package/ts/mod_deprecate/index.ts +37 -0
  163. package/ts/mod_deprecate/mod.plugins.ts +6 -0
  164. package/ts/mod_format/format.cleanup.ts +19 -0
  165. package/ts/mod_format/format.copy.ts +6 -0
  166. package/ts/mod_format/format.gitignore.ts +21 -0
  167. package/ts/mod_format/format.license.ts +24 -0
  168. package/ts/mod_format/format.npmextra.ts +70 -0
  169. package/ts/mod_format/format.packagejson.ts +120 -0
  170. package/ts/mod_format/format.prettier.ts +58 -0
  171. package/ts/mod_format/format.readme.ts +47 -0
  172. package/ts/mod_format/format.templates.ts +71 -0
  173. package/ts/mod_format/index.ts +38 -0
  174. package/ts/mod_format/mod.plugins.ts +13 -0
  175. package/ts/mod_helpers/index.ts +10 -0
  176. package/ts/mod_helpers/mod.plugins.ts +5 -0
  177. package/ts/mod_meta/index.ts +26 -0
  178. package/ts/mod_meta/meta.classes.meta.ts +234 -0
  179. package/ts/mod_meta/meta.interfaces.ts +3 -0
  180. package/ts/mod_meta/meta.plugins.ts +8 -0
  181. package/ts/mod_open/index.ts +15 -0
  182. package/ts/mod_open/mod.plugins.ts +5 -0
  183. package/ts/mod_standard/index.ts +29 -0
  184. package/ts/mod_standard/mod.plugins.ts +4 -0
  185. package/ts/mod_start/index.ts +26 -0
  186. package/ts/mod_start/mod.plugins.ts +6 -0
  187. package/ts/mod_template/index.ts +52 -0
  188. package/ts/mod_template/mod.plugins.ts +7 -0
  189. package/ts/paths.ts +9 -0
  190. package/ts/plugins.ts +21 -0
@@ -0,0 +1,66 @@
1
+ name: Default (not tags)
2
+
3
+ on:
4
+ push:
5
+ tags-ignore:
6
+ - '**'
7
+
8
+ env:
9
+ IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
10
+ NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{git.host}}/${-{gitea.repository}-}.git
11
+ NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
12
+ NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
13
+ NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
14
+ NPMCI_URL_CLOUDLY: ${-{secrets.NPMCI_URL_CLOUDLY}-}
15
+
16
+ jobs:
17
+ security:
18
+ runs-on: ubuntu-latest
19
+ continue-on-error: true
20
+ container:
21
+ image: ${-{ env.IMAGE }-}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+
26
+ - name: Install pnpm and npmci
27
+ run: |
28
+ pnpm install -g pnpm
29
+ pnpm install -g @ship.zone/npmci
30
+
31
+ - name: Run npm prepare
32
+ run: npmci npm prepare
33
+
34
+ - name: Audit production dependencies
35
+ run: |
36
+ npmci command npm config set registry https://registry.npmjs.org
37
+ npmci command pnpm audit --audit-level=high --prod
38
+ continue-on-error: true
39
+
40
+ - name: Audit development dependencies
41
+ run: |
42
+ npmci command npm config set registry https://registry.npmjs.org
43
+ npmci command pnpm audit --audit-level=high --dev
44
+ continue-on-error: true
45
+
46
+ test:
47
+ if: ${-{ always() }-}
48
+ needs: security
49
+ runs-on: ubuntu-latest
50
+ container:
51
+ image: ${-{ env.IMAGE }-}
52
+
53
+ steps:
54
+ - uses: actions/checkout@v3
55
+
56
+ - name: Test stable
57
+ run: |
58
+ npmci node install stable
59
+ npmci npm install
60
+ npmci npm test
61
+
62
+ - name: Test build
63
+ run: |
64
+ npmci node install stable
65
+ npmci npm install
66
+ npmci npm build
@@ -0,0 +1,124 @@
1
+ name: Default (tags)
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ env:
9
+ IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
10
+ NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{git.host}}/${-{gitea.repository}-}.git
11
+ NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
12
+ NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
13
+ NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
14
+ NPMCI_URL_CLOUDLY: ${-{secrets.NPMCI_URL_CLOUDLY}-}
15
+
16
+ jobs:
17
+ security:
18
+ runs-on: ubuntu-latest
19
+ continue-on-error: true
20
+ container:
21
+ image: ${-{ env.IMAGE }-}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+
26
+ - name: Prepare
27
+ run: |
28
+ pnpm install -g pnpm
29
+ pnpm install -g @ship.zone/npmci
30
+ npmci npm prepare
31
+
32
+ - name: Audit production dependencies
33
+ run: |
34
+ npmci command npm config set registry https://registry.npmjs.org
35
+ npmci command pnpm audit --audit-level=high --prod
36
+ continue-on-error: true
37
+
38
+ - name: Audit development dependencies
39
+ run: |
40
+ npmci command npm config set registry https://registry.npmjs.org
41
+ npmci command pnpm audit --audit-level=high --dev
42
+ continue-on-error: true
43
+
44
+ test:
45
+ if: ${-{ always() }-}
46
+ needs: security
47
+ runs-on: ubuntu-latest
48
+ container:
49
+ image: ${-{ env.IMAGE }-}
50
+
51
+ steps:
52
+ - uses: actions/checkout@v3
53
+
54
+ - name: Prepare
55
+ run: |
56
+ pnpm install -g pnpm
57
+ pnpm install -g @ship.zone/npmci
58
+ npmci npm prepare
59
+
60
+ - name: Test stable
61
+ run: |
62
+ npmci node install stable
63
+ npmci npm install
64
+ npmci npm test
65
+
66
+ - name: Test build
67
+ run: |
68
+ npmci node install stable
69
+ npmci npm install
70
+ npmci npm build
71
+
72
+ release:
73
+ needs: test
74
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
75
+ runs-on: ubuntu-latest
76
+ container:
77
+ image: ${-{ env.IMAGE }-}
78
+
79
+ steps:
80
+ - uses: actions/checkout@v3
81
+
82
+ - name: Prepare
83
+ run: |
84
+ pnpm install -g pnpm
85
+ pnpm install -g @ship.zone/npmci
86
+ npmci npm prepare
87
+
88
+ - name: Release
89
+ run: |
90
+ npmci node install stable
91
+ npmci npm publish
92
+
93
+ metadata:
94
+ needs: test
95
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
96
+ runs-on: ubuntu-latest
97
+ container:
98
+ image: ${-{ env.IMAGE }-}
99
+ continue-on-error: true
100
+
101
+ steps:
102
+ - uses: actions/checkout@v3
103
+
104
+ - name: Prepare
105
+ run: |
106
+ pnpm install -g pnpm
107
+ pnpm install -g @ship.zone/npmci
108
+ npmci npm prepare
109
+
110
+ - name: Code quality
111
+ run: |
112
+ npmci command npm install -g typescript
113
+ npmci npm install
114
+
115
+ - name: Trigger
116
+ run: npmci trigger
117
+
118
+ - name: Build docs and upload artifacts
119
+ run: |
120
+ npmci node install stable
121
+ npmci npm install
122
+ pnpm install -g @git.zone/tsdoc
123
+ npmci command tsdoc
124
+ continue-on-error: true
@@ -0,0 +1,128 @@
1
+ # gitzone ci_default
2
+ image: code.foss.global/hosttoday/ht-docker-node:npmci
3
+
4
+ cache:
5
+ paths:
6
+ - .npmci_cache/
7
+ key: '$CI_BUILD_STAGE'
8
+
9
+ stages:
10
+ - security
11
+ - test
12
+ - release
13
+ - metadata
14
+
15
+ before_script:
16
+ - pnpm install -g pnpm
17
+ - pnpm install -g @ship.zone/npmci
18
+ - npmci npm prepare
19
+
20
+ # ====================
21
+ # security stage
22
+ # ====================
23
+ # ====================
24
+ # security stage
25
+ # ====================
26
+ auditProductionDependencies:
27
+ image: code.foss.global/hosttoday/ht-docker-node:npmci
28
+ stage: security
29
+ script:
30
+ - npmci command npm config set registry https://registry.npmjs.org
31
+ - npmci command pnpm audit --audit-level=high --prod
32
+ tags:
33
+ - private
34
+ - docker
35
+ allow_failure: true
36
+
37
+ auditDevDependencies:
38
+ image: code.foss.global/hosttoday/ht-docker-node:npmci
39
+ stage: security
40
+ script:
41
+ - npmci command npm config set registry https://registry.npmjs.org
42
+ - npmci command pnpm audit --audit-level=high --dev
43
+ tags:
44
+ - private
45
+ - docker
46
+ allow_failure: true
47
+
48
+ # ====================
49
+ # test stage
50
+ # ====================
51
+
52
+ testStable:
53
+ stage: test
54
+ script:
55
+ - npmci node install stable
56
+ - npmci npm install
57
+ - npmci npm test
58
+ coverage: /\d+.?\d+?\%\s*coverage/
59
+ tags:
60
+ - docker
61
+
62
+ testBuild:
63
+ stage: test
64
+ script:
65
+ - npmci node install stable
66
+ - npmci npm install
67
+ - npmci npm build
68
+ coverage: /\d+.?\d+?\%\s*coverage/
69
+ tags:
70
+ - docker
71
+
72
+ release:
73
+ stage: release
74
+ script:
75
+ - npmci node install stable
76
+ - npmci npm publish
77
+ only:
78
+ - tags
79
+ tags:
80
+ - private
81
+ - docker
82
+ - notprivileged
83
+
84
+ # ====================
85
+ # metadata stage
86
+ # ====================
87
+ codequality:
88
+ stage: metadata
89
+ allow_failure: true
90
+ only:
91
+ - tags
92
+ script:
93
+ - npmci command npm install -g typescript
94
+ - npmci npm prepare
95
+ - npmci npm install
96
+ tags:
97
+ - private
98
+ - docker
99
+ - priv
100
+
101
+ trigger:
102
+ stage: metadata
103
+ script:
104
+ - npmci trigger
105
+ only:
106
+ - tags
107
+ tags:
108
+ - private
109
+ - docker
110
+ - notprivileged
111
+
112
+ pages:
113
+ stage: metadata
114
+ script:
115
+ - npmci node install stable
116
+ - npmci npm install
117
+ - npmci command npm run buildDocs
118
+ tags:
119
+ - private
120
+ - docker
121
+ - notprivileged
122
+ only:
123
+ - tags
124
+ artifacts:
125
+ expire_in: 1 week
126
+ paths:
127
+ - public
128
+ allow_failure: true
@@ -0,0 +1,66 @@
1
+ name: Default (not tags)
2
+
3
+ on:
4
+ push:
5
+ tags-ignore:
6
+ - '**'
7
+
8
+ env:
9
+ IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
10
+ NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{git.host}}/${-{gitea.repository}-}.git
11
+ NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
12
+ NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
13
+ NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
14
+ NPMCI_URL_CLOUDLY: ${-{secrets.NPMCI_URL_CLOUDLY}-}
15
+
16
+ jobs:
17
+ security:
18
+ runs-on: ubuntu-latest
19
+ continue-on-error: true
20
+ container:
21
+ image: ${-{ env.IMAGE }-}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+
26
+ - name: Install pnpm and npmci
27
+ run: |
28
+ pnpm install -g pnpm
29
+ pnpm install -g @ship.zone/npmci
30
+
31
+ - name: Run npm prepare
32
+ run: npmci npm prepare
33
+
34
+ - name: Audit production dependencies
35
+ run: |
36
+ npmci command npm config set registry https://registry.npmjs.org
37
+ npmci command pnpm audit --audit-level=high --prod
38
+ continue-on-error: true
39
+
40
+ - name: Audit development dependencies
41
+ run: |
42
+ npmci command npm config set registry https://registry.npmjs.org
43
+ npmci command pnpm audit --audit-level=high --dev
44
+ continue-on-error: true
45
+
46
+ test:
47
+ if: ${-{ always() }-}
48
+ needs: security
49
+ runs-on: ubuntu-latest
50
+ container:
51
+ image: ${-{ env.IMAGE }-}
52
+
53
+ steps:
54
+ - uses: actions/checkout@v3
55
+
56
+ - name: Test stable
57
+ run: |
58
+ npmci node install stable
59
+ npmci npm install
60
+ npmci npm test
61
+
62
+ - name: Test build
63
+ run: |
64
+ npmci node install stable
65
+ npmci npm install
66
+ npmci npm build
@@ -0,0 +1,124 @@
1
+ name: Default (tags)
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ env:
9
+ IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
10
+ NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{git.host}}/${-{gitea.repository}-}.git
11
+ NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
12
+ NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
13
+ NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
14
+ NPMCI_URL_CLOUDLY: ${-{secrets.NPMCI_URL_CLOUDLY}-}
15
+
16
+ jobs:
17
+ security:
18
+ runs-on: ubuntu-latest
19
+ continue-on-error: true
20
+ container:
21
+ image: ${-{ env.IMAGE }-}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+
26
+ - name: Prepare
27
+ run: |
28
+ pnpm install -g pnpm
29
+ pnpm install -g @ship.zone/npmci
30
+ npmci npm prepare
31
+
32
+ - name: Audit production dependencies
33
+ run: |
34
+ npmci command npm config set registry https://registry.npmjs.org
35
+ npmci command pnpm audit --audit-level=high --prod
36
+ continue-on-error: true
37
+
38
+ - name: Audit development dependencies
39
+ run: |
40
+ npmci command npm config set registry https://registry.npmjs.org
41
+ npmci command pnpm audit --audit-level=high --dev
42
+ continue-on-error: true
43
+
44
+ test:
45
+ if: ${-{ always() }-}
46
+ needs: security
47
+ runs-on: ubuntu-latest
48
+ container:
49
+ image: ${-{ env.IMAGE }-}
50
+
51
+ steps:
52
+ - uses: actions/checkout@v3
53
+
54
+ - name: Prepare
55
+ run: |
56
+ pnpm install -g pnpm
57
+ pnpm install -g @ship.zone/npmci
58
+ npmci npm prepare
59
+
60
+ - name: Test stable
61
+ run: |
62
+ npmci node install stable
63
+ npmci npm install
64
+ npmci npm test
65
+
66
+ - name: Test build
67
+ run: |
68
+ npmci node install stable
69
+ npmci npm install
70
+ npmci npm build
71
+
72
+ release:
73
+ needs: test
74
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
75
+ runs-on: ubuntu-latest
76
+ container:
77
+ image: ${-{ env.IMAGE }-}
78
+
79
+ steps:
80
+ - uses: actions/checkout@v3
81
+
82
+ - name: Prepare
83
+ run: |
84
+ pnpm install -g pnpm
85
+ pnpm install -g @ship.zone/npmci
86
+ npmci npm prepare
87
+
88
+ - name: Release
89
+ run: |
90
+ npmci node install stable
91
+ npmci npm publish
92
+
93
+ metadata:
94
+ needs: test
95
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
96
+ runs-on: ubuntu-latest
97
+ container:
98
+ image: ${-{ env.IMAGE }-}
99
+ continue-on-error: true
100
+
101
+ steps:
102
+ - uses: actions/checkout@v3
103
+
104
+ - name: Prepare
105
+ run: |
106
+ pnpm install -g pnpm
107
+ pnpm install -g @ship.zone/npmci
108
+ npmci npm prepare
109
+
110
+ - name: Code quality
111
+ run: |
112
+ npmci command npm install -g typescript
113
+ npmci npm install
114
+
115
+ - name: Trigger
116
+ run: npmci trigger
117
+
118
+ - name: Build docs and upload artifacts
119
+ run: |
120
+ npmci node install stable
121
+ npmci npm install
122
+ pnpm install -g @git.zone/tsdoc
123
+ npmci command tsdoc
124
+ continue-on-error: true
@@ -0,0 +1,133 @@
1
+ # gitzone ci_default_private
2
+ image: code.foss.global/hosttoday/ht-docker-node:npmci
3
+
4
+ cache:
5
+ paths:
6
+ - .npmci_cache/
7
+ key: '$CI_BUILD_STAGE'
8
+
9
+ stages:
10
+ - security
11
+ - test
12
+ - release
13
+ - metadata
14
+
15
+ before_script:
16
+ - pnpm install -g pnpm
17
+ - pnpm install -g @ship.zone/npmci
18
+ - npmci npm prepare
19
+
20
+ # ====================
21
+ # security stage
22
+ # ====================
23
+ # ====================
24
+ # security stage
25
+ # ====================
26
+ auditProductionDependencies:
27
+ image: code.foss.global/hosttoday/ht-docker-node:npmci
28
+ stage: security
29
+ script:
30
+ - npmci command npm config set registry https://registry.npmjs.org
31
+ - npmci command pnpm audit --audit-level=high --prod
32
+ tags:
33
+ - private
34
+ - docker
35
+ allow_failure: true
36
+
37
+ auditDevDependencies:
38
+ image: code.foss.global/hosttoday/ht-docker-node:npmci
39
+ stage: security
40
+ script:
41
+ - npmci command npm config set registry https://registry.npmjs.org
42
+ - npmci command pnpm audit --audit-level=high --dev
43
+ tags:
44
+ - private
45
+ - docker
46
+ allow_failure: true
47
+
48
+ # ====================
49
+ # test stage
50
+ # ====================
51
+
52
+ testStable:
53
+ stage: test
54
+ script:
55
+ - npmci node install stable
56
+ - npmci npm install
57
+ - npmci npm test
58
+ coverage: /\d+.?\d+?\%\s*coverage/
59
+ tags:
60
+ - private
61
+ - docker
62
+ - notprivileged
63
+
64
+ testBuild:
65
+ stage: test
66
+ script:
67
+ - npmci node install stable
68
+ - npmci npm install
69
+ - npmci command npm run build
70
+ coverage: /\d+.?\d+?\%\s*coverage/
71
+ tags:
72
+ - private
73
+ - docker
74
+ - notprivileged
75
+
76
+ release:
77
+ stage: release
78
+ script:
79
+ - npmci node install stable
80
+ - npmci npm publish
81
+ only:
82
+ - tags
83
+ tags:
84
+ - private
85
+ - docker
86
+ - notprivileged
87
+
88
+ # ====================
89
+ # metadata stage
90
+ # ====================
91
+ codequality:
92
+ stage: metadata
93
+ allow_failure: true
94
+ only:
95
+ - tags
96
+ script:
97
+ - npmci command npm install -g typescript
98
+ - npmci npm prepare
99
+ - npmci npm install
100
+ tags:
101
+ - private
102
+ - docker
103
+ - priv
104
+
105
+ trigger:
106
+ stage: metadata
107
+ script:
108
+ - npmci trigger
109
+ only:
110
+ - tags
111
+ tags:
112
+ - private
113
+ - docker
114
+ - notprivileged
115
+
116
+ pages:
117
+ stage: metadata
118
+ script:
119
+ - npmci node install lts
120
+ - npmci command npm install -g @git.zone/tsdoc
121
+ - npmci npm install
122
+ - npmci command tsdoc
123
+ tags:
124
+ - private
125
+ - docker
126
+ - notprivileged
127
+ only:
128
+ - tags
129
+ artifacts:
130
+ expire_in: 1 week
131
+ paths:
132
+ - public
133
+ allow_failure: true
@@ -0,0 +1,71 @@
1
+ name: Docker (tags)
2
+
3
+ on:
4
+ push:
5
+ tags-ignore:
6
+ - '**'
7
+
8
+ env:
9
+ IMAGE: code.foss.global/hosttoday/ht-docker-node:npmci
10
+ NPMCI_COMPUTED_REPOURL: https://${-{gitea.repository_owner}-}:${-{secrets.GITEA_TOKEN}-}@{{gi.host}}/${-{gitea.repository}-}.git
11
+ NPMCI_TOKEN_NPM: ${-{secrets.NPMCI_TOKEN_NPM}-}
12
+ NPMCI_TOKEN_NPM2: ${-{secrets.NPMCI_TOKEN_NPM2}-}
13
+ NPMCI_GIT_GITHUBTOKEN: ${-{secrets.NPMCI_GIT_GITHUBTOKEN}-}
14
+ NPMCI_LOGIN_DOCKER_GITEA: ${-{ github.server_url }-}|${-{ gitea.repository_owner }-}|${-{ secrets.GITEA_TOKEN }-}
15
+ NPMCI_LOGIN_DOCKER_DOCKERREGISTRY: ${-{ secrets.NPMCI_LOGIN_DOCKER_DOCKERREGISTRY }-}
16
+
17
+ jobs:
18
+ security:
19
+ runs-on: ubuntu-latest
20
+ container:
21
+ image: ${-{ env.IMAGE }-}
22
+ continue-on-error: true
23
+
24
+ steps:
25
+ - uses: actions/checkout@v3
26
+
27
+ - name: Install pnpm and npmci
28
+ run: |
29
+ pnpm install -g pnpm
30
+ pnpm install -g @ship.zone/npmci
31
+ npmci npm prepare
32
+
33
+ - name: Audit production dependencies
34
+ run: |
35
+ npmci command npm config set registry https://registry.npmjs.org
36
+ npmci command pnpm audit --audit-level=high --prod
37
+ continue-on-error: true
38
+
39
+ - name: Audit development dependencies
40
+ run: |
41
+ npmci command npm config set registry https://registry.npmjs.org
42
+ npmci command pnpm audit --audit-level=high --dev
43
+ continue-on-error: true
44
+
45
+ test:
46
+ needs: security
47
+ runs-on: ubuntu-latest
48
+ container:
49
+ image: ${-{ env.IMAGE }-}
50
+
51
+ steps:
52
+ - uses: actions/checkout@v3
53
+
54
+ - name: Prepare
55
+ run: |
56
+ pnpm install -g pnpm
57
+ pnpm install -g @ship.zone/npmci
58
+ npmci npm prepare
59
+
60
+ - name: Test stable
61
+ run: |
62
+ npmci node install stable
63
+ npmci npm install
64
+ npmci npm test
65
+
66
+ - name: Test build
67
+ run: |
68
+ npmci npm prepare
69
+ npmci node install stable
70
+ npmci npm install
71
+ npmci command npm run build