Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
de3e085
chore: updated files from ts-server-boilerplate
NivGreenstein Feb 3, 2025
6c27f5a
chore: update and imports from ts-server-boilerplate
NivGreenstein Feb 13, 2025
ff34cf6
chore!: update packages
NivGreenstein Feb 13, 2025
7f838c9
feat: added new config manager
NivGreenstein Feb 13, 2025
0052ff0
refactor: update Service interface
NivGreenstein Feb 13, 2025
16ae3ea
refactor: update imports
NivGreenstein Feb 13, 2025
aa8d849
fix: removed exclusive minimum in order to preserve type
NivGreenstein Feb 13, 2025
11537ae
feat: added CHANGE_ROUTER_SYMBOL
NivGreenstein Feb 13, 2025
c24434e
feat: added dependency registration
NivGreenstein Feb 13, 2025
596ecb1
chore: removed unused code
NivGreenstein Feb 13, 2025
4c62d55
refactor: removed unused interface
NivGreenstein Feb 13, 2025
5ffd917
feat: update tracing factory
NivGreenstein Feb 13, 2025
fa72943
refactor: update files to ts-server-boilerplate standard
NivGreenstein Feb 13, 2025
815756f
ci: updated workflows from ts-server-boilerplate
NivGreenstein Feb 13, 2025
8f750a8
fix: update from ts-server-boilerplate
NivGreenstein Feb 13, 2025
e346e62
chore: update ts configuration from ts-server-boilerplate
NivGreenstein Feb 13, 2025
26ec7c6
feat: added docs test
NivGreenstein Feb 13, 2025
e297ef3
refactor!: updated tests to ts-server-boilerplate updated openapi errors
NivGreenstein Feb 13, 2025
25907b3
chore: update files from ts-server-boilerplate
NivGreenstein Feb 13, 2025
ac9226c
ci: updated node matrix. added openapi-lint, build_image job
NivGreenstein Feb 13, 2025
ecb2e1d
ci: added init-npm action
NivGreenstein Feb 13, 2025
4680088
chore: added security and operationid
NivGreenstein Feb 13, 2025
1b3a096
ci: removed docker migration build
NivGreenstein Feb 13, 2025
b0c7726
ci: changed scope
NivGreenstein Feb 13, 2025
92370dc
chore: updated schema version
NivGreenstein Feb 13, 2025
225d8bf
Update build-and-push.yaml
NivGreenstein Mar 4, 2025
2d521a6
fix: update package.json
NivGreenstein Mar 5, 2025
d3a9bf3
feat: added cleanup registry
NatalieShaked Mar 13, 2025
22e05df
fix: made initconfig true
NatalieShaked Mar 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EditorConfig is awesome: https://EditorConfig.org

# Top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Set default charset
charset = utf-8

# 2 space indentation (default)
indent_style = space
indent_size = 2

# 2 space indentation (JS and JSX and TS files)
[*.{js,jsx,ts}]
indent_size = 2

# Trim trailing whitespace
trim_trailing_whitespace = true

# Max line length
max_line_length = 150
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ignorePatterns": ["**/*.js", "dist", "helm"],
"ignorePatterns": ["**/*.js", "dist", "helm", "coverage", "reports", ".husky"],
"extends": ["@map-colonies/eslint-config/jest", "@map-colonies/eslint-config/ts-base"],
"parserOptions": {
"project": "./tsconfig.lint.json"
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#prevent git from chaning line endings of sh file to /r/n on windows systems
*.sh text eol=lf
*.* text eol=lf
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -23,6 +23,5 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.


**Additional context**
Add any other context about the problem here.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
21 changes: 11 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
Make sure you've read the contributing guidelines (CONTRIBUTING.md)
-->

| Question | Answer |
| ---------------- | -------------------------------------------------------------------------- |
| Bug fix | ✔/✖ |
| New feature | ✔/✖ |
| Breaking change | ✔/✖ |
| Deprecations | ✔/✖ |
| Documentation | ✔/✖ |
| Tests added | ✔/✖ |
| Chore | ✔/✖ |
| Question | Answer |
| --------------- | ------ |
| Bug fix | ✔/✖ |
| New feature | ✔/✖ |
| Breaking change | ✔/✖ |
| Deprecations | ✔/✖ |
| Documentation | ✔/✖ |
| Tests added | ✔/✖ |
| Chore | ✔/✖ |

Related issues: #XXX , #XXX ...
Closes #XXX ...

Further information:
Further information:

<!--
Here you can provide more information regarding any of the questions written above.
In addition, you can add screenshots, ask the maintainers questions.
Expand Down
18 changes: 18 additions & 0 deletions .github/actions/init-npm/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: init-npm
description: 'Initialize the repo with npm and install all the dependencies'
inputs:
node-version:
description: 'Node.js version'
required: true
default: '20.x'
runs:
using: composite
steps:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: npm
- name: Install TS Project dependencies
shell: bash
run: npm ci
31 changes: 31 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and push artifacts

on:
push:
tags:
- 'v*'

workflow_dispatch:
inputs:
version:
required: true
type: string
env:
HELM_EXPERIMENTAL_OCI: 1

permissions:
contents: write
pull-requests: write

jobs:
build_and_push_docker:
uses: MapColonies/shared-workflows/.github/workflows/build-and-push-docker.yaml@v4
secrets: inherit
with:
scope: vector

build_and_push_helm:
uses: MapColonies/shared-workflows/.github/workflows/build-and-push-helm.yaml@v4
secrets: inherit
with:
scope: vector
19 changes: 0 additions & 19 deletions .github/workflows/build_and_push.yml

This file was deleted.

68 changes: 44 additions & 24 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,52 @@ on: [pull_request]

jobs:
eslint:
name: Run eslint
name: Run TS Project eslint
runs-on: ubuntu-latest

strategy:
matrix:
node: [20.x, 22.x]

steps:
- name: Check out Git repository
- name: Check out TS Project Git repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
- name: Init nodejs
uses: ./.github/actions/init-npm
with:
node-version: 20

- name: Install dependencies
run: npm ci
node-version: ${{ matrix.node }}

- name: Run linters
uses: wearerequired/lint-action@v1
- name: Run TS Project linters
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.github_token }}
# Enable linters
eslint: true
prettier: true
eslint_extensions: ts

- name: OpenAPI Lint Checks
uses: nwestfall/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
file: ./openapi3.yaml

security:
openapi-lint:
name: Run OpenAPI lint Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Check out TS Project Git repository
uses: actions/checkout@v4

- name: Init nodejs
uses: ./.github/actions/init-npm

- name: OpenAPI Lint Checks
run: npx @redocly/cli lint --format=github-actions openapi3.yaml

tests:
name: Run Tests
runs-on: ubuntu-latest

strategy:
matrix:
node: [18.x, 20.x]
node: [20.x, 22.x]

steps:
- name: Check out Git repository
Expand All @@ -71,3 +70,24 @@ jobs:
with:
name: Test-Reporters-node-${{ matrix.node }}
path: reports/**

security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

build_image:
name: Build Image
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: build Docker image
run: docker build -t test-build:latest .
38 changes: 0 additions & 38 deletions .github/workflows/release-on-tag-push.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.GH_PAT }}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Development tools
.idea

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down Expand Up @@ -107,5 +110,3 @@ dist
# Jest
jest_html_reporters.html
reports

/**/local.json
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx commitlint --edit ${1}
6 changes: 6 additions & 0 deletions .husky/install.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Skip Husky install in production and CI
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
process.exit(0);
}
const husky = (await import('husky')).default;
console.log(husky());
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx pretty-quick --staged
4 changes: 2 additions & 2 deletions .licrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This will indicate which licenses are not accepted.
# The rest will be accepted, except for the unknown licenses or dependencies without licenses.
unaccepted = ["LGPL"]
# Note that only one of the previous options can be enabled at once.
# Note that only one of the previous options can be enabled at once.
# If both of them are informed, only accepted will be considered.

[dependencies]
Expand All @@ -16,4 +16,4 @@ ignored=["ignored_dep1", "ignored_dep2"]
# False by default, if true, it will only run the checks when one of the dependency files or the .licrc file has been modified.
run_only_on_dependency_modification = true
# False by default, if true, it will never block the build.
do_not_block_pr = true
do_not_block_pr = true
8 changes: 2 additions & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
dist
.github
.gitignore
CHANGELOG.md
commitlint.config.js
package-lock.json
package.json
README.md
tsbuildconfig.json
tsconfig.json
node_modules
*.html
coverage
helm
reports
.release-please-manifest.json
File renamed without changes.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ ".": "1.5.0" }
Loading
Loading