-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated template with new config, structure and swc usage * Update dependabot.yml * Update nodejs.yml * Briefly reviewed README.md * Moved eslint config in .eslintrc file * Aligned comments * Reviewed pre-commit hook, Dockerfile and updated dependencies * Update README.md * Updated service dependencies * Specified node version in Dockerfile * Removed node-14 support from Github actions * Updated lc39 type in test helper * refactor(template-structure): major template review Included changes aim to provide a simpler base template, retaining type checking but also reducing time to run tests. In addition Jest is swapped with Tap and swc is employed only for test transpiling, while tsc is still employed for building the source code. BREAKING CHANGE: * test: review coverage config * build(runtime): add tini as image entrypoint * build(dockerfile): fix CMD instruction to allow variables expansion * chore(deps): update service dependencies * Update package.json Co-authored-by: Giorgio Acquati <[email protected]> * refactor: remove comments from tsconfig * refactor: remove useful files from .dockerignore * chore(deps): update template dependencies * build: update which files are copied in the final image stage Co-authored-by: Giorgio Acquati <[email protected]>
- Loading branch information
Showing
27 changed files
with
9,441 additions
and
6,969 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
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,56 @@ | ||
{ | ||
"extends": [ | ||
"@mia-platform/eslint-config-mia" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"*.d.ts" | ||
], | ||
"rules": { | ||
"sort-imports": [ | ||
"error", | ||
{ | ||
"ignoreCase": true, | ||
"ignoreDeclarationSort": true, | ||
"ignoreMemberSort": true, | ||
"allowSeparatedGroups": true | ||
} | ||
], | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": [ | ||
"error" | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.test.ts", | ||
"tests/helpers/*" | ||
], | ||
"rules": { | ||
"no-await-in-loop": "off", | ||
"default-case": "off", | ||
"guard-for-in": "off", | ||
"no-shadow": "off", | ||
"id-length": "off", | ||
"max-depth": "off", | ||
"max-lines": "off", | ||
"max-nested-callbacks": "off", | ||
"max-statements": "off", | ||
"@typescript-eslint/no-shadow": "off", | ||
"no-loop-func": "off" | ||
} | ||
} | ||
], | ||
"globals": { | ||
"NodeJS": true | ||
}, | ||
"plugins": [ | ||
"@typescript-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
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 |
---|---|---|
|
@@ -10,4 +10,5 @@ node_modules | |
.yarn-integrity | ||
!default.env | ||
.npmrc | ||
dist | ||
dist | ||
tsconfig.tsbuildinfo |
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 |
---|---|---|
@@ -1 +1 @@ | ||
lts/fermium | ||
lts/gallium |
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,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"arrowParens": "avoid" | ||
} |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"declarationMap": true, | ||
"sourceMap": true, | ||
"inlineSourceMap": false, | ||
"outDir": "./dist" | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"tests", | ||
"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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.