-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathpackage.json
More file actions
212 lines (212 loc) · 6.72 KB
/
Copy pathpackage.json
File metadata and controls
212 lines (212 loc) · 6.72 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
{
"name": "cartcut-app",
"version": "0.5.11",
"description": "Video Editor",
"main": "main/main.js",
"author": "cartesiancs",
"scripts": {
"start": "electron .",
"start:hot": "node scripts/devElectron.mjs",
"dev": "npm run build:speech && npm run build:input && concurrently \"npm run compile\" \"npm run bundle:src\"",
"dev:hot": "npm run build:speech && npm run build:input && concurrently -k -n main,renderer,app \"npm run compile\" \"npm run bundle:src\" \"npm run start:hot\"",
"compile": "tsc -w -p ./.tsconfig",
"bundle": "npm run bundle:src",
"vendor:sync": "node scripts/syncVendor.mjs",
"bundle:src": "webpack --mode=development --watch",
"test": "vitest run",
"test:watch": "vitest",
"test:cov": "vitest run --coverage",
"test:e2e:fixtures": "node tests/e2e/fixtures/fetch.mjs",
"test:e2e:check": "tsc --noEmit -p tests/e2e/tsconfig.json",
"test:e2e": "playwright test -c tests/e2e/playwright.config.ts --project=full",
"test:e2e:smoke": "playwright test -c tests/e2e/playwright.config.ts --project=smoke",
"test:e2e:smoke120": "playwright test -c tests/e2e/playwright.config.ts --project=smoke120",
"test:e2e:extreme": "playwright test -c tests/e2e/playwright.config.ts --project=extreme",
"bundle:prod:src": "webpack --mode=production",
"build:web": "npm run bundle:prod:src && node scripts/buildWeb.mjs",
"build:main": "tsc -p ./.tsconfig",
"build:overlay": "npm --prefix apps/overlay-record ci && npm --prefix apps/overlay-record run build",
"build:speech": "node scripts/buildSpeech.mjs",
"build:input": "node scripts/buildInput.mjs",
"build:osx": "npm run build:main && npm run bundle:prod:src && npm run build:overlay && node scripts/buildSpeech.mjs --all && node scripts/buildInput.mjs --all && electron-builder build --mac --arm64 --x64 -p always",
"build:win": "npm run build:main && npm run bundle:prod:src && npm run build:overlay && electron-builder build --win --x64 -p always",
"build:linux": "npm run build:main && npm run bundle:prod:src && npm run build:overlay && electron-builder build --linux --x64",
"build": "npm run build:osx && npm run build:win"
},
"repository": {
"type": "git",
"url": "https://github.com/cartesiancs/cartcut"
},
"build": {
"productName": "CartCut",
"appId": "com.cartesiancs.cartcut",
"asar": true,
"asarUnpack": [
"**/*.node",
"**/*.so",
"**/*.so.*"
],
"extraResources": [
{
"from": "./assets",
"to": "assets",
"filter": [
"**/*"
]
},
{
"from": "./bin/${platform}-${arch}",
"to": "bin",
"filter": [
"**/*"
]
}
],
"protocols": {
"name": "cartcutapp",
"schemes": [
"cartcutapp"
]
},
"mac": {
"publish": {
"provider": "github",
"owner": "cartesiancs",
"repo": "cartcut"
},
"target": [
"dmg",
"zip"
],
"icon": "assets/icons/mac/icon.icns",
"asarUnpack": "**/*.node",
"notarize": true,
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist",
"extendInfo": {
"NSCameraUsageDescription": "CartCut uses your camera to record a picture-in-picture bubble alongside your screen.",
"NSMicrophoneUsageDescription": "CartCut uses your microphone to record narration alongside your screen.",
"NSSpeechRecognitionUsageDescription": "CartCut transcribes your clips on this Mac to generate captions. The audio never leaves your computer."
}
},
"dmg": {},
"win": {
"verifyUpdateCodeSignature": true,
"publish": {
"provider": "github",
"owner": "cartesiancs",
"repo": "cartcut"
},
"target": [
"nsis"
],
"icon": "./assets/icons/win/icon.ico"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
},
"linux": {
"target": [
"AppImage",
"tar.gz"
],
"executableName": "cartcut",
"category": "AudioVideo;Video;AudioVideoEditing;",
"icon": "assets/icons/png",
"maintainer": "cartesiancs <jun@cartesiancs.com>",
"synopsis": "AI video editor",
"desktop": {
"entry": {
"MimeType": "x-scheme-handler/cartcutapp;",
"StartupWMClass": "CartCut"
}
},
"publish": null
},
"directories": {
"buildResources": "./assets/",
"output": "./dist/",
"app": "."
},
"files": [
"!src/**/*",
"!electron/**/*",
"!dev-app-update.yml",
"!tests/**",
"!examples/**",
"!bin/**",
"!dist-web/**",
"!docs/**",
"!.github/**",
"!apps/*/node_modules/**",
"!packages/*/node_modules/**",
"!apps/automatic-caption/dist/**",
"!apps/automatic-caption/public/**",
"!apps/app/src/**",
"!apps/app/sample/**"
],
"artifactBuildCompleted": "./scripts/checkArtifactSize.mjs",
"publish": {
"provider": "github",
"owner": "cartesiancs"
}
},
"dependencies": {
"@fontsource-variable/noto-sans-kr": "^5.3.0",
"@imgly/background-removal-node": "^1.4.5",
"@lit/context": "^1.1.6",
"@modelcontextprotocol/sdk": "^1.30.0",
"axios": "^1.3.2",
"body-parser": "^1.20.3",
"bootstrap": "5.0.2",
"decompress": "4.2.1",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.4.8",
"electron-progressbar": "^2.0.1",
"electron-store": "^8.1.0",
"electron-updater": "^6.8.9",
"express": "^4.21.2",
"fluent-ffmpeg": "^2.1.2",
"fs-extra": "^11.1.0",
"get-system-fonts": "^2.0.2",
"gifuct-js": "^2.1.2",
"jszip": "^3.10.1",
"lit": "^3.3.3",
"lodash": "^4.17.21",
"material-symbols": "^0.47.1",
"parse5": "^7.3.0",
"path": "^0.12.7",
"postcss": "^8.5.28",
"request": "^2.88.2",
"socket.io": "^4.8.1",
"socket.io-client": "^4.8.1",
"uuid": "^9.0.0",
"zod": "^3.25.76",
"zustand": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.22.1",
"@babel/preset-env": "^7.22.4",
"@napi-rs/canvas": "^1.0.2",
"@playwright/test": "^1.62.1",
"babel-loader": "^9.1.2",
"concurrently": "^9.0.1",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"electron": "^44.4.3",
"electron-builder": "^26.15.3",
"electron-reload": "^2.0.0-alpha.1",
"eslint-config-airbnb": "^19.0.4",
"mini-css-extract-plugin": "^2.6.1",
"playwright": "^1.62.1",
"sass": "^1.55.0",
"sass-loader": "^13.0.2",
"style-loader": "^3.3.1",
"ts-loader": "^9.5.1",
"typescript": "^5.8.3",
"vitest": "^4.1.11",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
}