diff options
author | Pawel Zelawski <pawel.zelawski@outlook.com> | 2025-04-09 19:06:50 +0200 |
---|---|---|
committer | Pawel Zelawski <pawel.zelawski@outlook.com> | 2025-04-09 19:06:50 +0200 |
commit | 753fcaebe44fa1b4e8e6e496fbade9508fac1dc1 (patch) | |
tree | 133fb34ececb2706813d8549ad5377693a12cea3 /vitest.config.ts | |
parent | f2274466e9586c5a3b3c1f3331abf57a29f6989a (diff) |
feat: Initialize project structure and dependencies
Initialize the DigiID-TS project with basic tooling and configuration.
- Create package.json with project metadata and scripts.
- Configure TypeScript (tsconfig.json) for strict compilation.
- Set up ESLint and Prettier for code linting and formatting.
- Configure Vitest for unit testing and coverage.
- Add a standard Node.js .gitignore file.
- Install development dependencies (TypeScript, Vite, Vitest, ESLint, Prettier).
- Install core runtime dependency 'digibyte-message' from the original library's Git source.
Diffstat (limited to 'vitest.config.ts')
-rw-r--r-- | vitest.config.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..feb3d20 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + globals: true, + environment: 'node', + coverage: { + provider: 'v8', // or 'istanbul' + reporter: ['text', 'json', 'html'], + include: ['src/**/*.ts'], + exclude: ['src/index.ts', 'src/types.ts'], // Often exclude main entry/type definitions + }, + }, +});
\ No newline at end of file |