-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
4,225 additions
and
993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
root: true | ||
|
||
extends: | ||
- plugin:node/recommended | ||
- plugin:github/recommended | ||
- plugin:promise/recommended | ||
- plugin:regexp/recommended | ||
- plugin:array-func/recommended | ||
- plugin:optimize-regex/recommended | ||
- plugin:import/recommended | ||
- plugin:unicorn/recommended | ||
- plugin:security/recommended | ||
- plugin:sonarjs/recommended | ||
- xo | ||
- prettier | ||
|
||
plugins: | ||
- node | ||
- github | ||
- promise | ||
- regexp | ||
- array-func | ||
- optimize-regex | ||
- no-constructor-bind | ||
- import | ||
- unicorn | ||
- security | ||
- no-secrets | ||
- sonarjs | ||
- notice | ||
|
||
parser: '@typescript-eslint/parser' | ||
|
||
parserOptions: | ||
ecmaVersion: 2020 | ||
project: './tsconfig.json' | ||
|
||
overrides: | ||
- files: '*.ts' | ||
extends: | ||
- plugin:github/typescript | ||
- plugin:import/typescript | ||
- xo-typescript | ||
- prettier | ||
rules: | ||
'@typescript-eslint/naming-convention': | ||
[ | ||
error, | ||
{ selector: default, format: [camelCase] }, | ||
{ selector: objectLiteralProperty, format: null }, | ||
{ selector: typeProperty, format: null }, | ||
|
||
{ | ||
selector: variableLike, | ||
format: [camelCase, UPPER_CASE], | ||
leadingUnderscore: allow, | ||
}, | ||
{ | ||
selector: parameter, | ||
format: [camelCase], | ||
leadingUnderscore: allow, | ||
}, | ||
|
||
{ | ||
selector: memberLike, | ||
modifiers: [private], | ||
format: [camelCase], | ||
leadingUnderscore: require, | ||
}, | ||
|
||
{ selector: typeLike, format: [PascalCase] }, | ||
] | ||
'@typescript-eslint/restrict-template-expressions': off | ||
'@typescript-eslint/no-shadow': warn | ||
|
||
rules: | ||
notice/notice: | ||
- error | ||
- template: | | ||
/** | ||
* @license | ||
* Copyright <%= YEAR %> Qlever LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
onNonMatchingHeader: append | ||
nonMatchingTolerance: 0.7 | ||
sonarjs/no-duplicate-string: [warn, 5] | ||
sonarjs/cognitive-complexity: warn | ||
eslint-comments/no-unused-disable: off | ||
import/extensions: off | ||
node/no-unpublished-import: off | ||
spaced-comment: [error, always, markers: [/, //]] | ||
filenames/match-regex: off | ||
unicorn/filename-case: off | ||
i18n-text/no-en: off | ||
eslint-comments/no-use: off | ||
no-secrets/no-secrets: error | ||
no-empty-label: off | ||
no-warning-comments: off | ||
node/no-missing-import: off | ||
import/no-unresolved: off | ||
unicorn/prefer-spread: off | ||
no-constructor-bind/no-constructor-bind: error | ||
no-constructor-bind/no-constructor-state: error | ||
sort-imports: [warn, { allowSeparatedGroups: true }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v2.4.0 | ||
|
||
- name: Parse Ref | ||
id: ref | ||
|
@@ -90,14 +90,14 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v2.4.0 | ||
|
||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1.5.1 | ||
uses: docker/setup-buildx-action@v1.6.0 | ||
with: | ||
version: latest | ||
|
||
|
@@ -156,8 +156,7 @@ jobs: | |
${{ steps.images.outputs.dockerhub }} | ||
${{ steps.images.outputs.ghcr}} | ||
# Don't update latest on prereleases? | ||
flavor: | ||
latest=${{ !!(needs.setup.outputs.release && !needs.setup.outputs.prerelease) }} | ||
flavor: latest=${{ !!(needs.setup.outputs.release && !needs.setup.outputs.prerelease) }} | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
|
@@ -168,7 +167,7 @@ jobs: | |
type=sha | ||
- name: Build and push images | ||
uses: docker/build-push-action@v2.6.1 | ||
uses: docker/build-push-action@v2.7.0 | ||
with: | ||
context: ${{ matrix.context }} | ||
file: ${{ matrix.context }}/Dockerfile | ||
|
@@ -182,8 +181,7 @@ jobs: | |
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
- | ||
# Temp fix | ||
- # Temp fix | ||
# https://github.com/docker/build-push-action/issues/252 | ||
# https://github.com/moby/buildkit/issues/1896 | ||
name: Move cache | ||
|
@@ -217,14 +215,14 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
uses: actions/checkout@v2.4.0 | ||
|
||
- name: Find Docker tag for Snyk | ||
id: tag | ||
run: | | ||
# Doesn't like upper case | ||
OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') | ||
# Nameo on DockerHub (Doesn't like upper case) | ||
# Name on DockerHub (Doesn't like upper case) | ||
DOCKER_IMAGE=$(echo ${{ matrix.service }} | tr '[:upper:]' '[:lower:]') | ||
# Name on GHCR | ||
GHCR_IMAGE=ghcr.io/${DOCKER_IMAGE} | ||
|
@@ -253,7 +251,7 @@ jobs: | |
- name: Monitor Service image with Snyk | ||
uses: snyk/actions/docker@master | ||
# Don't break workflow on errros? | ||
# Don't break workflow on errors? | ||
continue-on-error: true | ||
with: | ||
command: container monitor | ||
|
@@ -262,7 +260,7 @@ jobs: | |
|
||
- name: Test current Service image with Snyk | ||
uses: snyk/actions/docker@master | ||
# Don't break workflow on errros? | ||
# Don't break workflow on errors? | ||
continue-on-error: true | ||
with: | ||
image: ${{ steps.tag.outputs.tag }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"arcanis.vscode-zipfs", | ||
"esbenp.prettier-vscode", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "pwa-node", | ||
"runtimeExecutable": "yarn", | ||
"runtimeArgs": ["node"], | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"skipFiles": ["<node_internals>/**"], | ||
"program": "${workspaceFolder}/dist/index.js", | ||
"preLaunchTask": "npm: build", | ||
"outFiles": ["${workspaceFolder}/dist/**/*.js"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"search.exclude": { | ||
"tags.*": true, | ||
".dccache": true, | ||
".history": true, | ||
"node_modules": true, | ||
"package.lock": true, | ||
"*.log": true, | ||
".DS_Store": true, | ||
"dist": true, | ||
"*.tsbuildinfo": true, | ||
".actrc": true, | ||
"act": true, | ||
".yarn": true, | ||
".pnp.*": true, | ||
".vim": true, | ||
"**/.yarn": true, | ||
"**/.pnp.*": true | ||
}, | ||
"prettier.prettierPath": ".yarn/sdks/prettier/index.js", | ||
"typescript.tsdk": ".yarn/sdks/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"eslint.nodePath": ".yarn/sdks", | ||
"files.exclude": { | ||
"tags.*": true, | ||
".dccache": true, | ||
".history": true, | ||
"node_modules": true, | ||
"package.lock": true, | ||
"*.log": true, | ||
".DS_Store": true, | ||
"dist": true, | ||
"*.tsbuildinfo": true, | ||
".actrc": true, | ||
"act": true, | ||
".yarn": true, | ||
".pnp.*": true, | ||
".vim": true | ||
}, | ||
"eslint.packageManager": "yarn", | ||
"eslint.useESLintClass": true, | ||
"licenser.author": "Qlever LLC", | ||
"licenser.license": "AL2", | ||
"cSpell.words": [ | ||
"ainz", | ||
"buildx", | ||
"codeql", | ||
"cois", | ||
"jobid", | ||
"luxon", | ||
"Snyk", | ||
"sonarjs", | ||
"trellisfw" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build", | ||
"detail": "yarn build" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.