Skip to content

Commit 6a2cac6

Browse files
authored
chore: init project (#1)
1 parent 111ded5 commit 6a2cac6

17 files changed

+7285
-0
lines changed

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"singleQuote": true
5+
}

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @lukasjhan: Lukas.J.Han, Hopae Inc.
2+
3+
* @lukasjhan

biome.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
3+
"organizeImports": {
4+
"enabled": false
5+
},
6+
"files": {
7+
"ignore": ["**/dist/**", "**/coverage/**"]
8+
},
9+
"formatter": {
10+
"enabled": true,
11+
"indentStyle": "space",
12+
"indentWidth": 2,
13+
"lineEnding": "lf"
14+
},
15+
"javascript": {
16+
"formatter": {
17+
"quoteStyle": "single"
18+
}
19+
},
20+
"linter": {
21+
"enabled": true,
22+
"rules": {
23+
"recommended": true
24+
}
25+
}
26+
}

examples/vcdm/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "vcdm-example",
3+
"private": true,
4+
"version": "0.0.0",
5+
"description": "",
6+
"main": "index.js",
7+
"scripts": {
8+
"vcdm": "tsx vcdm.ts",
9+
"decode": "tsx decode.ts"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"devDependencies": {
15+
"tsx": "^4.19.2"
16+
}
17+
}

examples/vcdm/vcdm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("vcdm example")

lerna.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3+
"version": "0.1.0",
4+
"npmClient": "pnpm",
5+
"exact": true,
6+
"message": "chore(release): %s",
7+
"packages": [
8+
"packages/*"
9+
],
10+
"command": {
11+
"publish": {
12+
"conventionalCommits": true
13+
}
14+
}
15+
}

package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "sd-jwt-vcdm",
3+
"description": "sd-jwt vcdm implementation in typescript",
4+
"scripts": {
5+
"build": "lerna run build --stream",
6+
"lint": "biome lint ./packages",
7+
"format": "biome format . --write",
8+
"biome:ci": "biome ci .",
9+
"test": "vitest run --coverage.enabled=true --coverage.include=packages/*",
10+
"test:watch": "vitest",
11+
"clean": "lerna clean -y",
12+
"publish:latest": "lerna publish --no-private --conventional-commits --include-merged-tags --create-release github --yes --dist-tag latest",
13+
"publish:next": "lerna publish --no-private --conventional-prerelease --force-publish --canary --no-git-tag-version --include-merged-tags --preid next --pre-dist-tag next --yes"
14+
},
15+
"keywords": [
16+
"sd-jwt",
17+
"vcdm",
18+
"jwt"
19+
],
20+
"author": "Lukas.J.Han <[email protected]>",
21+
"license": "Apache-2.0",
22+
"engines": {
23+
"node": ">=16"
24+
},
25+
"devDependencies": {
26+
"@biomejs/biome": "^1.6.0",
27+
"@types/node": "^20.10.2",
28+
"@vitest/coverage-v8": "^1.2.2",
29+
"jose": "^5.2.2",
30+
"jsdom": "^24.0.0",
31+
"lerna": "^8.1.2",
32+
"ts-node": "^10.9.1",
33+
"tsup": "^8.0.2",
34+
"typescript": "^5.7.0",
35+
"vite": "^5.1.1",
36+
"vitest": "^1.2.2"
37+
}
38+
}

packages/vcdm/package.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "sd-jwt-vcdm",
3+
"version": "0.1.0",
4+
"description": "SD JWT VCDM implementation in typescript",
5+
"main": "dist/index.js",
6+
"module": "dist/index.mjs",
7+
"types": "dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"import": "./dist/index.mjs",
11+
"require": "./dist/index.js"
12+
}
13+
},
14+
"scripts": {
15+
"build": "rm -rf **/dist && tsup",
16+
"lint": "biome lint ./src",
17+
"test": "pnpm run test:node && pnpm run test:browser && pnpm run test:cov",
18+
"test:node": "vitest run ./src/test/*.spec.ts",
19+
"test:browser": "vitest run ./src/test/*.spec.ts --environment jsdom",
20+
"test:cov": "vitest run --coverage"
21+
},
22+
"keywords": [
23+
"vcdm",
24+
"sd-jwt",
25+
"jwt"
26+
],
27+
"engines": {
28+
"node": ">=16"
29+
},
30+
"author": "Lukas.J.Han <[email protected]>",
31+
"license": "Apache-2.0",
32+
"publishConfig": {
33+
"access": "public"
34+
},
35+
"tsup": {
36+
"entry": [
37+
"./src/index.ts"
38+
],
39+
"sourceMap": true,
40+
"splitting": false,
41+
"clean": true,
42+
"dts": true,
43+
"format": [
44+
"cjs",
45+
"esm"
46+
]
47+
}
48+
}

packages/vcdm/src/index.ts

Whitespace-only changes.

packages/vcdm/src/test/index.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { describe, expect, test } from 'vitest';
2+
3+
describe('Test#1', () => {
4+
test('Test#1', () => {
5+
expect(1).toBe(1);
6+
});
7+
});

packages/vcdm/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "./src",
5+
"outDir": "dist"
6+
}
7+
}

packages/vcdm/vitest.config.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// vite.config.ts
2+
import { allEnvs } from '../../vitest.shared';
3+
4+
export default allEnvs;

0 commit comments

Comments
 (0)