-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpackage.json
More file actions
27 lines (24 loc) · 1.67 KB
/
package.json
File metadata and controls
27 lines (24 loc) · 1.67 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
{
"scripts": {
"prepare-firefox": "mkdir -p ./build/hys-f; cp -r manifest-firefox.json _locales icons src LICENCE.md Readme.md ./build/hys-f; mv ./build/hys-f/src/background/background-firefox.js ./build/hys-f/src/background/background.js; mv ./build/hys-f/src/menu/permissions-firefox.js ./build/hys-f/src/menu/permissions.js; mv ./build/hys-f/manifest-firefox.json ./build/hys-f/manifest.json; find ./build/hys-f -name \"*-chrome.js\" -type f -delete",
"prepare-chrome": "mkdir -p ./build/hys-c; cp -r manifest-chrome.json _locales icons src LICENCE.md Readme.md ./build/hys-c; mv ./build/hys-c/src/background/background-chrome.js ./build/hys-c/src/background/background.js; mv ./build/hys-c/src/menu/permissions-chrome.js ./build/hys-c/src/menu/permissions.js; mv ./build/hys-c/manifest-chrome.json ./build/hys-c/manifest.json; find ./build/hys-c -name \"*-firefox.js\" -type f -delete",
"prepare": "npm run prepare-firefox; npm run prepare-chrome",
"zip-firefox": "npm run prepare-firefox; cd ./build/hys-f; zip -r ../hide-youtube-shorts-firefox.zip ./**; cd -",
"zip-chrome": "npm run prepare-chrome; cd ./build/hys-c; zip -r ../hide-youtube-shorts-chrome.zip ./**; cd -",
"zip": "npm run zip-firefox; npm run zip-chrome;",
"clean": "rm -r ./build",
"firefox-lint": "web-ext lint",
"debug-android": "npm run prepare-firefox; web-ext run -t firefox-android --source-dir ./build/hys-f",
"test": "jest"
},
"devDependencies": {
"jest": "^30.1.2",
"jest-environment-jsdom": "^29.7.0",
"jest-environment-jsdom-global": "^4.0.0",
"web-ext": "^9.1.0"
},
"jest": {
"verbose": true,
"testEnvironment": "jest-environment-jsdom-global"
}
}