-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
63 lines (63 loc) · 3.31 KB
/
package.json
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
{
"name": "ynt",
"version": "2.1.12",
"description": "Stop YouTube's automatic translations! This extension keeps titles, descriptions and video audio in their original language.",
"scripts": {
"clean": "rimraf dist/*",
"create-dirs": "mkdir -p dist/popup dist/content dist/background dist/styles dist/assets/icons",
"build": "npm run build:firefox && npm run build:chrome",
"build:firefox": "npm run clean && npm run create-dirs && npm run pre:web-ext:firefox && npm run build:common && npm run copy:assets",
"build:chrome": "npm run clean && npm run create-dirs && npm run pre:web-ext:chrome && npm run build:common && npm run copy:assets",
"build:common": "npm run build:polyfill && npm run build:content && npm run build:popup && npm run build:background && npm run build:css && npm run build:html && npm run copy:scripts",
"build:content": "tsc -p tsconfig.content.json",
"build:popup": "tsc -p tsconfig.popup.json",
"build:background": "tsc -p tsconfig.background.json",
"build:css": "tailwindcss -i ./src/styles/main.css -o ./dist/styles/main.css",
"build:html": "cp src/popup/popup.html dist/popup/",
"build:polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js dist/",
"watch": "concurrently \"npm run watch:ts\" \"npm run watch:css\"",
"watch:ts": "tsc --watch",
"watch:css": "tailwindcss -i ./src/styles/main.css -o ./dist/styles/main.css --watch",
"copy:assets": "cp -r assets/* dist/assets/",
"copy:scripts": "mkdir -p dist/content/audioTranslation dist/content/descriptionTranslation dist/content/subtitlesTranslation dist/content/titleTranslation && cp src/content/audioTranslation/audioScript.js dist/content/audioTranslation/ && cp src/content/descriptionTranslation/descriptionScript.js dist/content/descriptionTranslation/ && cp src/content/subtitlesTranslation/subtitlesScript.js dist/content/subtitlesTranslation/ && cp src/content/titleTranslation/mainTitleScript.js dist/content/titleTranslation/",
"pre:web-ext:firefox": "cp manifest.firefox.json manifest.json",
"pre:web-ext:chrome": "cp manifest.chrome.json manifest.json",
"web-ext:firefox": "web-ext build --overwrite-dest -a web-ext-artifacts/firefox",
"web-ext:chrome": "web-ext build --overwrite-dest -a web-ext-artifacts/chrome",
"post:web-ext": "rm manifest.json",
"package": "npm run package:firefox && npm run package:chrome && npm run post:web-ext",
"package:firefox": "npm run build:firefox && npm run web-ext:firefox",
"package:chrome": "npm run build:chrome && npm run web-ext:chrome"
},
"repository": {
"type": "git",
"url": "git+https://github.com/YouG-o/YouTube_No_Translation.git"
},
"keywords": [
"youtube",
"extension",
"addon",
"translation",
"description",
"dubbing"
],
"author": "YouGo",
"license": "AGPL-3.0-or-later",
"bugs": {
"url": "https://github.com/YouG-o/YouTube_No_Translation/issues"
},
"homepage": "https://github.com/YouG-o/YouTube_No_Translation#readme",
"devDependencies": {
"@types/chrome": "^0.0.299",
"@types/webextension-polyfill": "^0.12.1",
"autoprefixer": "^10.4.20",
"concurrently": "^9.1.2",
"postcss": "^8.4.49",
"rimraf": "^6.0.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2"
},
"dependencies": {
"webextension-polyfill": "^0.12.0"
}
}