diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..c6c8b362 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitattributes b/.gitattributes index fcadb2cf..ab2a5332 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ * text eol=lf +*.png binary +*.ttf binary \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..aff82a10 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..13f33ea3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Vite Tests + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - name: Install dependencies + run: npm ci + - name: Run tests + run: npm run test + - name: Build project + run: npm run build --if-present + env: + VITE_API_BASE_URL: dummy + VITE_KEYCLOAK_URL: dummy diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000..d7861602 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,2 @@ +npm run stylelint:fix +npm run eslint:fix diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 00000000..272fe7ac --- /dev/null +++ b/.stylelintrc.json @@ -0,0 +1,31 @@ +{ + "extends": ["stylelint-config-standard-scss"], + "plugins": ["stylelint-order"], + "rules": { + "alpha-value-notation": "number", + "at-rule-no-unknown": null, + "declaration-empty-line-before": "never", + "declaration-no-important": true, + "function-name-case": "lower", + "media-feature-range-notation": "prefix", + "order/properties-alphabetical-order": true, + "order/order": [ + "custom-properties", + "dollar-variables", + { + "type": "at-rule", + "name": "include", + "hasBlock": false + }, + "declarations", + "at-variables", + "at-rules", + "rules" + ], + "color-function-notation": "modern", + "scss/double-slash-comment-empty-line-before": null, + "scss/at-rule-no-unknown": null, + "selector-max-id": 0, + "unit-allowed-list": [ "%", "em", "fr", "deg", "ms", "px", "rem", "s", "vh", "vw"] + } +} diff --git a/index.html b/index.html index 3eb0a629..561c4b04 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,9 @@ + + + @@ -34,8 +37,8 @@