@tomei/media 0.10.0 → 0.10.1-test.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 (37) hide show
  1. package/.commitlintrc.json +22 -22
  2. package/.gitlab-ci.yml +234 -16
  3. package/.husky/commit-msg +15 -15
  4. package/.husky/pre-commit +7 -7
  5. package/.prettierrc +4 -4
  6. package/.vscode/settings.json +3 -0
  7. package/README.md +93 -93
  8. package/dist/__tests__/common.service.spec.d.ts +1 -0
  9. package/dist/__tests__/common.service.spec.js +160 -0
  10. package/dist/__tests__/common.service.spec.js.map +1 -0
  11. package/dist/__tests__/medias.repository.spec.d.ts +1 -0
  12. package/dist/__tests__/medias.repository.spec.js +140 -0
  13. package/dist/__tests__/medias.repository.spec.js.map +1 -0
  14. package/dist/__tests__/medias.spec.d.ts +1 -0
  15. package/dist/__tests__/medias.spec.js +347 -0
  16. package/dist/__tests__/medias.spec.js.map +1 -0
  17. package/dist/__tests__/pipes.spec.d.ts +1 -0
  18. package/dist/__tests__/pipes.spec.js +130 -0
  19. package/dist/__tests__/pipes.spec.js.map +1 -0
  20. package/dist/medias.d.ts +2 -2
  21. package/dist/medias.js +7 -1
  22. package/dist/medias.js.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/eslint.config.mjs +58 -58
  25. package/jest.config.js +26 -0
  26. package/migration/0001-add-defaultyn-hiddenyn-to-media-table.js +36 -36
  27. package/migration/media-migration.js +82 -82
  28. package/nest-cli.json +18 -18
  29. package/package.json +83 -78
  30. package/sonar-project.properties +12 -12
  31. package/src/__tests__/common.service.spec.ts +203 -0
  32. package/src/__tests__/medias.repository.spec.ts +158 -0
  33. package/src/__tests__/medias.spec.ts +468 -0
  34. package/src/__tests__/pipes.spec.ts +154 -0
  35. package/src/medias.ts +11 -3
  36. package/tsconfig.build.json +4 -4
  37. package/tsconfig.json +30 -30
@@ -1,22 +1,22 @@
1
- {
2
- "extends": [
3
- "@commitlint/config-conventional"
4
- ],
5
- "rules": {
6
- "header-max-length": [ 2, "always", 120 ],
7
- "type-enum": [
8
- 2,
9
- "always",
10
- [
11
- "breaking",
12
- "feat",
13
- "fix",
14
- "refactor",
15
- "config",
16
- "test",
17
- "docs",
18
- "chore"
19
- ]
20
- ]
21
- }
22
- }
1
+ {
2
+ "extends": [
3
+ "@commitlint/config-conventional"
4
+ ],
5
+ "rules": {
6
+ "header-max-length": [ 2, "always", 120 ],
7
+ "type-enum": [
8
+ 2,
9
+ "always",
10
+ [
11
+ "breaking",
12
+ "feat",
13
+ "fix",
14
+ "refactor",
15
+ "config",
16
+ "test",
17
+ "docs",
18
+ "chore"
19
+ ]
20
+ ]
21
+ }
22
+ }
package/.gitlab-ci.yml CHANGED
@@ -1,16 +1,234 @@
1
- variables:
2
- SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
3
- GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
4
- sonarcloud-check:
5
- image:
6
- name: sonarsource/sonar-scanner-cli:latest
7
- entrypoint: [""]
8
- cache:
9
- key: "${CI_JOB_NAME}"
10
- paths:
11
- - .sonar/cache
12
- script:
13
- - sonar-scanner
14
- only:
15
- - merge_requests
16
- - main
1
+ # ============================================================
2
+ # .gitlab-ci.yml npm package with trusted publishing (OIDC)
3
+ #
4
+ # Project path: all-tomei-projects/tomei-package/General/<package-name>
5
+ #
6
+ # Tag patterns:
7
+ # test-vX.Y.Z-rc.N → npm publish --tag test (RC for test env)
8
+ # staging-vX.Y.Z-rc.N → npm publish --tag staging (RC for staging env)
9
+ # prod-vX.Y.Z → npm publish --tag latest (production, manual gate)
10
+ # prod-vX.Y.Z-hotfix.N → npm publish --tag latest (hotfix, manual gate)
11
+ #
12
+ # No NPM_TOKEN secret needed — OIDC trusted publishing only.
13
+ #
14
+ # Required CI/CD variables (Settings → CI/CD → Variables):
15
+ # DISCORD_WEBHOOK — Discord incoming webhook URL (masked)
16
+ #
17
+ # npm side setup required (npmjs.com):
18
+ # 1. package.json → publishConfig.provenance: true
19
+ # 2. npmjs.com → package Settings → Publishing Access
20
+ # → Enable OIDC publishing for GitLab project:
21
+ # all-tomei-projects/tomei-package/General/<package-name>
22
+ # ============================================================
23
+ default:
24
+ image: node:20-alpine
25
+
26
+ stages:
27
+ - validate
28
+ - build
29
+ - publish
30
+ - notify
31
+
32
+ # ────────────────────────────────────────────────────────────
33
+ # STAGE: validate
34
+ # Runs lint and unit tests before publish
35
+ # Skipped on prod tags — code already validated on test + staging
36
+ # ────────────────────────────────────────────────────────────
37
+ lint:
38
+ stage: validate
39
+ cache:
40
+ key: node-$CI_COMMIT_REF_SLUG
41
+ paths: [node_modules/]
42
+ script:
43
+ - npm ci
44
+ - npm run lint
45
+ rules:
46
+ - if: '$CI_COMMIT_TAG =~ /^test-v/'
47
+ - if: '$CI_COMMIT_TAG =~ /^staging-v/'
48
+
49
+ unit-test:
50
+ stage: validate
51
+ cache:
52
+ key: node-$CI_COMMIT_REF_SLUG
53
+ paths: [node_modules/]
54
+ script:
55
+ - npm ci
56
+ - npm test
57
+ coverage: '/Lines\s*:\s*(\d+\.?\d*)%/'
58
+ artifacts:
59
+ reports:
60
+ coverage_report:
61
+ coverage_format: cobertura
62
+ path: coverage/cobertura-coverage.xml
63
+ expire_in: 7 days
64
+ rules:
65
+ - if: '$CI_COMMIT_TAG =~ /^test-v/'
66
+ - if: '$CI_COMMIT_TAG =~ /^staging-v/'
67
+
68
+ # ────────────────────────────────────────────────────────────
69
+ # STAGE: build
70
+ # Compiles the package (tsc / rollup / whatever your build uses)
71
+ # Artifacts passed to publish jobs
72
+ # Runs on all tag patterns
73
+ # ────────────────────────────────────────────────────────────
74
+ build:
75
+ stage: build
76
+ cache:
77
+ key: node-$CI_COMMIT_REF_SLUG
78
+ paths: [node_modules/]
79
+ script:
80
+ - npm ci
81
+ - npm run build
82
+ artifacts:
83
+ paths:
84
+ - dist/
85
+ expire_in: 1 hour
86
+ rules:
87
+ - if: '$CI_COMMIT_TAG =~ /^test-v/'
88
+ - if: '$CI_COMMIT_TAG =~ /^staging-v/'
89
+ - if: '$CI_COMMIT_TAG =~ /^prod-v/'
90
+
91
+ # ────────────────────────────────────────────────────────────
92
+ # STAGE: publish — test RC
93
+ # Triggered by: test-vX.Y.Z-rc.N tag
94
+ # Publishes with dist-tag "test"
95
+ # Consumers must opt in: npm install @tomei/pkg@test
96
+ # Version stamped: test-v1.24.0-rc.1 → 1.24.0-rc.1
97
+ # ────────────────────────────────────────────────────────────
98
+ publish-test:
99
+ stage: publish
100
+ needs: [build]
101
+ rules:
102
+ - if: '$CI_COMMIT_TAG =~ /^test-v/'
103
+ script:
104
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
105
+ - |
106
+ RC_VERSION=$(echo "$CI_COMMIT_TAG" | sed 's/^test-v\([0-9.]*\)-rc\.\([0-9]*\)$/\1-test.\2/')
107
+ echo "Publishing version $RC_VERSION with dist-tag: test"
108
+ npm version "$RC_VERSION" --no-git-tag-version --ignore-scripts --force
109
+ npm publish --tag test --access public
110
+ echo "Published: @$(node -p "require('./package.json').name")@$RC_VERSION [test]"
111
+
112
+ # ────────────────────────────────────────────────────────────
113
+ # STAGE: publish — staging RC
114
+ # Triggered by: staging-vX.Y.Z-rc.N tag
115
+ # Publishes with dist-tag "staging"
116
+ # Consumers must opt in: npm install @tomei/pkg@staging
117
+ # Version stamped: staging-v1.24.0-rc.1 → 1.24.0-rc.1
118
+ # ────────────────────────────────────────────────────────────
119
+ publish-staging:
120
+ stage: publish
121
+ needs: [build]
122
+ rules:
123
+ - if: '$CI_COMMIT_TAG =~ /^staging-v/'
124
+ script:
125
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
126
+ - |
127
+ RC_VERSION=$(echo "$CI_COMMIT_TAG" | sed 's/^staging-v\([0-9.]*\)-rc\.\([0-9]*\)$/\1-staging.\2/')
128
+ echo "Publishing version $RC_VERSION with dist-tag: staging"
129
+ npm version "$RC_VERSION" --no-git-tag-version --ignore-scripts --force
130
+ npm publish --tag staging --access public
131
+ echo "Published: @$(node -p "require('./package.json').name")@$RC_VERSION [staging]"
132
+
133
+ # ────────────────────────────────────────────────────────────
134
+ # STAGE: publish — production
135
+ # Triggered by: prod-vX.Y.Z or prod-vX.Y.Z-hotfix.N tag (from main only)
136
+ # Publishes with dist-tag "latest" — becomes the default install version
137
+ # Manual gate — human must click Play in GitLab pipeline UI
138
+ # Version stamped: prod-v2.2.0 → 2.2.0 | prod-v2.2.0-hotfix.1 → 2.2.0-hotfix.1
139
+ # ────────────────────────────────────────────────────────────
140
+ publish-prod:
141
+ stage: publish
142
+ needs: [build]
143
+ rules:
144
+ - if: '$CI_COMMIT_TAG =~ /^prod-v/'
145
+ when: manual
146
+ allow_failure: false
147
+ script:
148
+ - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
149
+ - |
150
+ PROD_VERSION=$(echo "$CI_COMMIT_TAG" | sed 's/^prod-v//')
151
+ echo "Publishing version $PROD_VERSION with dist-tag: latest"
152
+ npm version "$PROD_VERSION" --no-git-tag-version --ignore-scripts --force
153
+ npm publish --tag latest --access public
154
+ echo "Published: @$(node -p "require('./package.json').name")@$PROD_VERSION [latest]"
155
+ echo "Pipeline: $CI_PIPELINE_URL"
156
+
157
+ # ────────────────────────────────────────────────────────────
158
+ # STAGE: notify — success
159
+ # ────────────────────────────────────────────────────────────
160
+ notify-success:
161
+ stage: notify
162
+ image: curlimages/curl:latest
163
+ needs:
164
+ - job: publish-test
165
+ optional: true
166
+ - job: publish-staging
167
+ optional: true
168
+ - job: publish-prod
169
+ optional: true
170
+ rules:
171
+ - if: '$CI_COMMIT_TAG =~ /^test-v/'
172
+ when: on_success
173
+ - if: '$CI_COMMIT_TAG =~ /^staging-v/'
174
+ when: on_success
175
+ - if: '$CI_COMMIT_TAG =~ /^prod-v/'
176
+ when: on_success
177
+ script:
178
+ - |
179
+ if echo "$CI_COMMIT_TAG" | grep -q "^test-v"; then
180
+ DIST_TAG="test"
181
+ COLOR=3066993
182
+ elif echo "$CI_COMMIT_TAG" | grep -q "^staging-v"; then
183
+ DIST_TAG="staging"
184
+ COLOR=16776960
185
+ elif echo "$CI_COMMIT_TAG" | grep -q "^prod-v"; then
186
+ DIST_TAG="latest"
187
+ COLOR=3066993
188
+ fi
189
+
190
+ curl -s -X POST "$DISCORD_WEBHOOK" \
191
+ -H "Content-Type: application/json" \
192
+ -d '{
193
+ "embeds": [{
194
+ "title": "Package published successfully",
195
+ "color": '"$COLOR"',
196
+ "fields": [
197
+ {"name": "Package", "value": "'"$CI_PROJECT_NAME"'", "inline": true},
198
+ {"name": "Tag", "value": "'"$CI_COMMIT_TAG"'", "inline": true},
199
+ {"name": "Dist-tag", "value": "'"$DIST_TAG"'", "inline": true},
200
+ {"name": "Published by", "value": "'"$GITLAB_USER_NAME"'", "inline": true},
201
+ {"name": "Pipeline", "value": "'"$CI_PIPELINE_URL"'", "inline": false}
202
+ ]
203
+ }]
204
+ }'
205
+
206
+ # ────────────────────────────────────────────────────────────
207
+ # STAGE: notify — failure
208
+ # ────────────────────────────────────────────────────────────
209
+ notify-failure:
210
+ stage: notify
211
+ image: curlimages/curl:latest
212
+ rules:
213
+ - if: '$CI_COMMIT_TAG =~ /^test-v/'
214
+ when: on_failure
215
+ - if: '$CI_COMMIT_TAG =~ /^staging-v/'
216
+ when: on_failure
217
+ - if: '$CI_COMMIT_TAG =~ /^prod-v/'
218
+ when: on_failure
219
+ script:
220
+ - |
221
+ curl -s -X POST "$DISCORD_WEBHOOK" \
222
+ -H "Content-Type: application/json" \
223
+ -d '{
224
+ "embeds": [{
225
+ "title": "Package publish FAILED",
226
+ "color": 15158332,
227
+ "fields": [
228
+ {"name": "Package", "value": "'"$CI_PROJECT_NAME"'", "inline": true},
229
+ {"name": "Tag", "value": "'"$CI_COMMIT_TAG"'", "inline": true},
230
+ {"name": "Failed by", "value": "'"$GITLAB_USER_NAME"'", "inline": true},
231
+ {"name": "Pipeline", "value": "'"$CI_PIPELINE_URL"'", "inline": false}
232
+ ]
233
+ }]
234
+ }'
package/.husky/commit-msg CHANGED
@@ -1,16 +1,16 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npx commitlint --edit $1
5
- message="$(cat $1)"
6
- echo "$message"
7
- a=($(echo "$message" | tr ':' '\n'))
8
- echo "${a[0]}"
9
- if [ "${a[0]}" = "feat" ];
10
- then
11
- npm version --commit-hooks false --no-git-tag-version minor
12
- else
13
- npm version --commit-hooks false --no-git-tag-version patch
14
- fi
15
- git add .
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx commitlint --edit $1
5
+ message="$(cat $1)"
6
+ echo "$message"
7
+ a=($(echo "$message" | tr ':' '\n'))
8
+ # echo "${a[0]}"
9
+ # if [ "${a[0]}" = "feat" ];
10
+ # then
11
+ # npm version --commit-hooks false --no-git-tag-version minor
12
+ # else
13
+ # npm version --commit-hooks false --no-git-tag-version patch
14
+ # fi
15
+ git add .
16
16
  git commit -m "$message" --no-verify
package/.husky/pre-commit CHANGED
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npm run lint
5
- npm run format
6
- npm run build
7
- git add .
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm run lint
5
+ npm run format
6
+ npm run build
7
+ git add .
package/.prettierrc CHANGED
@@ -1,4 +1,4 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "all"
4
- }
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all"
4
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "snyk.advanced.autoSelectOrganization": true
3
+ }
package/README.md CHANGED
@@ -1,93 +1,93 @@
1
- # Media
2
-
3
- Package for Media in Tomei
4
-
5
- ## Getting started
6
-
7
- To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
-
9
- Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
-
11
- ## Add your files
12
-
13
- - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
- - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
-
16
- ```
17
- cd existing_repo
18
- git remote add origin https://gitlab.com/tomei-package/media.git
19
- git branch -M main
20
- git push -uf origin main
21
- ```
22
-
23
- ## Integrate with your tools
24
-
25
- - [ ] [Set up project integrations](https://gitlab.com/tomei-package/media/-/settings/integrations)
26
-
27
- ## Collaborate with your team
28
-
29
- - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
- - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
- - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
- - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
- - [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
-
35
- ## Test and Deploy
36
-
37
- Use the built-in continuous integration in GitLab.
38
-
39
- - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
- - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
- - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
- - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
- - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
-
45
- ***
46
-
47
- # Editing this README
48
-
49
- When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
-
51
- ## Suggestions for a good README
52
- Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
53
-
54
- ## Name
55
- Choose a self-explaining name for your project.
56
-
57
- ## Description
58
- Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
59
-
60
- ## Badges
61
- On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
62
-
63
- ## Visuals
64
- Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
65
-
66
- ## Installation
67
- Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
68
-
69
- ## Usage
70
- Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
71
-
72
- ## Support
73
- Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
74
-
75
- ## Roadmap
76
- If you have ideas for releases in the future, it is a good idea to list them in the README.
77
-
78
- ## Contributing
79
- State if you are open to contributions and what your requirements are for accepting them.
80
-
81
- For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
82
-
83
- You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
84
-
85
- ## Authors and acknowledgment
86
- Show your appreciation to those who have contributed to the project.
87
-
88
- ## License
89
- For open source projects, say how it is licensed.
90
-
91
- ## Project status
92
- If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
93
- Test
1
+ # Media
2
+
3
+ Package for Media in Tomei
4
+
5
+ ## Getting started
6
+
7
+ To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
+
9
+ Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
+
11
+ ## Add your files
12
+
13
+ - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
+ - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
+
16
+ ```
17
+ cd existing_repo
18
+ git remote add origin https://gitlab.com/tomei-package/media.git
19
+ git branch -M main
20
+ git push -uf origin main
21
+ ```
22
+
23
+ ## Integrate with your tools
24
+
25
+ - [ ] [Set up project integrations](https://gitlab.com/tomei-package/media/-/settings/integrations)
26
+
27
+ ## Collaborate with your team
28
+
29
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
+ - [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
+
35
+ ## Test and Deploy
36
+
37
+ Use the built-in continuous integration in GitLab.
38
+
39
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
+
45
+ ***
46
+
47
+ # Editing this README
48
+
49
+ When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
+
51
+ ## Suggestions for a good README
52
+ Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
53
+
54
+ ## Name
55
+ Choose a self-explaining name for your project.
56
+
57
+ ## Description
58
+ Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
59
+
60
+ ## Badges
61
+ On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
62
+
63
+ ## Visuals
64
+ Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
65
+
66
+ ## Installation
67
+ Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
68
+
69
+ ## Usage
70
+ Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
71
+
72
+ ## Support
73
+ Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
74
+
75
+ ## Roadmap
76
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
77
+
78
+ ## Contributing
79
+ State if you are open to contributions and what your requirements are for accepting them.
80
+
81
+ For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
82
+
83
+ You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
84
+
85
+ ## Authors and acknowledgment
86
+ Show your appreciation to those who have contributed to the project.
87
+
88
+ ## License
89
+ For open source projects, say how it is licensed.
90
+
91
+ ## Project status
92
+ If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
93
+ Test
@@ -0,0 +1 @@
1
+ export {};