Skip to content

Commit 7efade4

Browse files
committed
add workflow
1 parent 371bedd commit 7efade4

File tree

11 files changed

+711
-45
lines changed

11 files changed

+711
-45
lines changed

.github/workflows/pnpm.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: pnpm build workflow
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
uses: ./.github/workflows/resuable/setup-pnpm-workflow.yml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Setup PNPM'
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
setup-and-build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
11+
12+
- uses: aquaproj/aqua-installer@ea518c135a02fc11ff8024364510c181a5c6b342 # v4.0.3
13+
with:
14+
aqua_version: v2.53.6
15+
16+
- name: Download deps
17+
run: pnpm i --frozen-lockfile
18+
19+
- name: Package build
20+
run: pnpm build
21+
22+
- name: Run biome check
23+
run: pnpm biome:check

.releaserc.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"branches": ["main"],
3-
"plugins": [
4-
[
5-
"@semantic-release/commit-analyzer",
6-
{
7-
"preset": "angular",
8-
"releaseRules": [
9-
{"type": "chore", "scope": "deps", "release": "patch"},
10-
{"type": "chore", "scope": "deps-dev", "release": "patch"},
11-
{"type": "fix", "scope": "deps", "release": "patch"},
12-
{"type": "feat", "scope": "deps", "release": "minor"}
13-
]
14-
}
15-
],
16-
"@semantic-release/release-notes-generator",
17-
"@semantic-release/github"
18-
]
19-
}
2+
"branches": ["main"],
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "angular",
8+
"releaseRules": [
9+
{ "type": "chore", "scope": "deps", "release": "patch" },
10+
{ "type": "chore", "scope": "deps-dev", "release": "patch" },
11+
{ "type": "fix", "scope": "deps", "release": "patch" },
12+
{ "type": "feat", "scope": "deps", "release": "minor" }
13+
]
14+
}
15+
],
16+
"@semantic-release/release-notes-generator",
17+
"@semantic-release/github"
18+
]
19+
}

api/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
},
2323
"dependencies": {
2424
"@vspo-lab/error": "workspace:^",
25-
"axios": "^1.9.0",
26-
"axios-retry": "^4.5.0"
25+
"axios": "^1.9.0"
2726
}
2827
}

aqua.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/aqua-yaml.json
3+
# aqua - Declarative CLI Version Manager
4+
# https://aquaproj.github.io/
5+
# checksum:
6+
# enabled: true
7+
# require_checksum: true
8+
# supported_envs:
9+
# - all
10+
registries:
11+
- type: standard
12+
ref: v4.393.0 # renovate: depName=aquaproj/aqua-registry
13+
packages:
14+
- name: pnpm/[email protected]

biome.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"**/*.ts",
12+
"**/*.tsx",
13+
"**/*.js",
14+
"**/*.jsx",
15+
"**/*.json",
16+
"**/*.jsonc",
17+
"!**/node_modules/**/*",
18+
"!**/.nx/**/*",
19+
"!**/.wrangler/**/*",
20+
"!**/public/**/*",
21+
"!**/dist/**/*",
22+
"!**/build/**/*",
23+
"!**/tools/**/*",
24+
"!**/*.config.js",
25+
"!**/.next/**/*",
26+
"!**/.turbo/**/*",
27+
"!**/.git/**/*",
28+
"!**/.vscode/**/*",
29+
"!**/gen/**/*",
30+
"!**/.open-next/**/*",
31+
"!**/.mastra/**/*",
32+
"!**/service/vspo-schedule/v2/web/**/*.d.ts",
33+
"!**/.pnpm-store/**/*",
34+
"!**/*.css",
35+
"!**/service/vspo-schedule/v2/web/src/features/multiview/**/*"
36+
]
37+
},
38+
"formatter": {
39+
"enabled": true,
40+
"formatWithErrors": true,
41+
"indentStyle": "space",
42+
"indentWidth": 2
43+
},
44+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
45+
"linter": {
46+
"enabled": true,
47+
"rules": {
48+
"recommended": true,
49+
"style": {
50+
"noParameterAssign": "error",
51+
"useAsConstAssertion": "error",
52+
"useDefaultParameterLast": "error",
53+
"useEnumInitializers": "error",
54+
"useSelfClosingElements": "error",
55+
"useSingleVarDeclarator": "error",
56+
"noUnusedTemplateLiteral": "error",
57+
"useNumberNamespace": "error",
58+
"noInferrableTypes": "error",
59+
"noUselessElse": "error"
60+
}
61+
}
62+
},
63+
"javascript": {
64+
"formatter": {
65+
"quoteStyle": "double"
66+
}
67+
},
68+
"overrides": []
69+
}

knip.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"workspaces": {
4+
"api": {
5+
"project": "src/**/*.ts"
6+
},
7+
"dayjs": {
8+
"project": "**/*.ts"
9+
},
10+
"errors": {
11+
"project": "**/*.ts"
12+
},
13+
"logging": {
14+
"project": "**/*.ts"
15+
}
16+
},
17+
"ignore": [
18+
"**/dist/**",
19+
"**/node_modules/**"
20+
],
21+
"ignoreBinaries": [],
22+
"ignoreDependencies": [
23+
"lefthook"
24+
],
25+
"ignoreExportsUsedInFile": true
26+
}

lefthook.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Refer for explanation to following link:
2+
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
3+
pre-commit:
4+
commands:
5+
autoformat:
6+
root: "."
7+
glob: "**/*.{ts,tsx,js,jsx}"
8+
run: pnpm biome:format
9+
stage_fixed: true
10+
typecheck:
11+
root: "."
12+
glob: "**/*.{ts,tsx,js,jsx}"
13+
run: pnpm tsc
14+
stage_fixed: true

package.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,35 @@
33
"private": true,
44
"version": "1.0.0",
55
"description": "",
6-
"main": "index.js",
76
"scripts": {
8-
"build": "turbo build"
7+
"build": "turbo build",
8+
"biome:check": "biome check ./**/**",
9+
"biome:format": "biome format --write ./**/**",
10+
"biome:lint": "biome lint --apply ./**/**",
11+
"biome:unsafe-fix": "biome check --fix --unsafe",
12+
"knip": "knip",
13+
"tsc": "pnpm -r exec tsc --noEmit"
914
},
1015
"author": "sugar-cat7",
1116
"license": "MIT",
1217
"devDependencies": {
1318
"@biomejs/biome": "^2.2.4",
1419
"@types/node": "^24.0.0",
1520
"turbo": "^2.5.8",
16-
"semantic-release": "24.2.9"
21+
"lefthook": "^1.13.4",
22+
"semantic-release": "24.2.9",
23+
"typescript": "5.9.2",
24+
"knip": "^5.64.1"
1725
},
1826
"packageManager": "[email protected]",
1927
"engines": {
2028
"pnpm": ">=9.15.9",
2129
"node": ">=20.18.0"
22-
}
30+
},
31+
"workspaces": [
32+
"api",
33+
"dayjs",
34+
"errors",
35+
"logging"
36+
]
2337
}

0 commit comments

Comments
 (0)