Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
140 lines (130 loc) · 4.91 KB
/
Copy pathTaskfile.yml
File metadata and controls
140 lines (130 loc) · 4.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# https://taskfile.dev
version: '3'
tasks:
init:
cmds:
- pwsh.exe -NoProfile -Command "go install github.com/go-task/task/v3/cmd/task@latest"
- pwsh.exe -NoProfile -Command "cargo install typeshare-cli"
# check
check:
description: 開発しているパッケージをすべてチェック
deps:
- check:browser-extension
- check:server
- check:tauri
- check:native-messaging-host
check:server:
dir: server
description: Remote Share server をチェック
cmds:
- pwsh.exe -NoProfile -Command "npm run check"
# check:browser-extension
check:browser-extension:
description: ブラウザ拡張機能をすべてチェック
deps:
- check:browser-extension:background
- check:browser-extension:content-scripts
- check:browser-extension:shared
check:browser-extension:e2e:
dir: browser-extension
dotenv:
- .env.test
description: ブラウザ拡張機能のE2Eテストを実行
cmds:
- pwsh.exe -NoProfile -Command "pnpm run test:playwright"
check:browser-extension:e2e:dlsite:
dir: browser-extension
dotenv:
- .env.test
description: ブラウザ拡張機能のDLsite E2Eテストを実行
cmds:
- pwsh.exe -NoProfile -Command "pnpm run test:playwright -- tests/e2e/dlsite-login-sync.spec.ts"
check:browser-extension:background:
dir: browser-extension/background
description: ブラウザ拡張機能のバックグラウンドスクリプトをチェック
cmds:
- pwsh.exe -NoProfile -Command "pnpm run build"
- pwsh.exe -NoProfile -Command "pnpm run test"
check:browser-extension:content-scripts:
dir: browser-extension/content-scripts
description: ブラウザ拡張機能のコンテンツスクリプトをすべてチェック
deps:
- check:browser-extension:content-scripts:dmm
- check:browser-extension:content-scripts:dlsite
check:browser-extension:content-scripts:dmm:
dir: browser-extension/content-scripts/dmm
description: ブラウザ拡張機能のDMMコンテンツスクリプトをチェック
cmds:
- pwsh.exe -NoProfile -Command "pnpm run build"
- pwsh.exe -NoProfile -Command "pnpm run test"
check:browser-extension:content-scripts:dlsite:
dir: browser-extension/content-scripts/dlsite
description: ブラウザ拡張機能のDLsiteコンテンツスクリプトをチェック
cmds:
- pwsh.exe -NoProfile -Command "pnpm run build"
- pwsh.exe -NoProfile -Command "pnpm run test"
check:browser-extension:shared:
dir: browser-extension/shared
description: ブラウザ拡張機能の共有パッケージをチェック
cmds:
- pwsh.exe -NoProfile -Command "pnpm run build"
- pwsh.exe -NoProfile -Command "pnpm run test"
# check:tauri
check:tauri:
description: Tauri関係のパッケージをすべてチェック
deps:
- check:tauri:frontend
- check:tauri:rust
check:tauri:frontend:
description: Tauriのフロントエンドをチェック
cmds:
- pwsh.exe -NoProfile -Command "npm run format"
- pwsh.exe -NoProfile -Command "npm run lint"
- pwsh.exe -NoProfile -Command "npm run check"
- pwsh.exe -NoProfile -Command "npm run test"
check:tauri:rust:
description: TauriのRustコードをチェック
dir: src-tauri
cmds:
- pwsh.exe -NoProfile -Command "cargo check --workspace"
- pwsh.exe -NoProfile -Command "cargo test --workspace"
# bench
bench:tauri:domain:
description: domain クレートのベンチマークを実行
dir: src-tauri
cmds:
- pwsh.exe -NoProfile -Command "cargo bench -p domain"
# check:src-tauri:native-messaging-host
check:native-messaging-host:
dir: src-tauri/native-messaging-host
description: Native Messaging Hostをチェック
cmds:
- pwsh.exe -NoProfile -Command "cargo check --workspace"
- pwsh.exe -NoProfile -Command "cargo test --workspace"
# build
build:extension:
description: build extension
deps:
- build:extension:native-messaging-host
- build:extension:browser-extension
build:extension:native-messaging-host:
description: build src-tauri/native-messaging-host
cmds:
- pwsh.exe -NoProfile -Command "node scripts/build-native-host.js"
build:extension:browser-extension:
dir: browser-extension
description: build browser-extension
cmds:
- pwsh.exe -NoProfile -Command "pnpm run build"
# gen
gen:
description: gen
deps:
- gen:native-messaging
- gen:pubsub
gen:native-messaging:
cmds:
- pwsh.exe -NoProfile -Command "typeshare ./src-tauri/native-messaging-host/src/models --lang=typescript --output-file=./browser-extension/shared/src/typeshare/native-messaging.ts"
gen:pubsub:
cmds:
- pwsh.exe -NoProfile -Command "typeshare ./src-tauri/domain/src/pubsub/event.rs --lang=typescript --output-file=./src/lib/typeshare/pubsub.ts"