Skip to content

Commit e784889

Browse files
committed
Reflow project structure
1 parent 3196961 commit e784889

36 files changed

Lines changed: 3420 additions & 5153 deletions

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Automated tests
5+
6+
on:
7+
push:
8+
branches: ['main']
9+
pull_request:
10+
branches: ['main']
11+
12+
jobs:
13+
build:
14+
runs-on: ubunut-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [18.x, 20.x, 22.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'npm'
28+
- run: npm install
29+
- run: npx vitest --project unit --coverage.enabled true --watch=false
30+
- name: 'Report Coverage'
31+
uses: davelosert/vitest-coverage-report-action@v2

.prettierrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"trailingComma": "es5",
3+
"semi": true,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"jsxSingleQuote": false,
7+
"printWidth": 100,
8+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
9+
"importOrder": ["^[./]", "^@/(.*)$"],
10+
"importOrderSeparation": true,
11+
"importOrderSortSpecifiers": true,
12+
"importOrderParserPlugins": ["typescript", "decorators"]
13+
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"[typescript][json]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.formatOnSave": true,
5+
},
6+
"files.associations": {
7+
".env.*": "properties"
8+
},
9+
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
10+
"typescript.tsdk": "node_modules\\typescript\\lib"
11+
}

0 commit comments

Comments
 (0)