-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
103 lines (103 loc) · 4.2 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
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
{
"name": "yttracker",
"version": "3.1.2",
"author": "Thomas Couchoud <[email protected]> (https://github.com/Rakambda/)",
"description": "This extension will track your time on YouTube",
"homepage": "https://github.com/Rakambda/YTTracker/blob/master/README.md",
"bugs": "https://github.com/Rakambda/YTTracker/issues",
"repository": "github:Rakambda/YTTracker",
"license": "GNU GPLv3",
"private": true,
"files": [
"/chrome",
"/chromeBeta",
"/firefox",
"/includes"
],
"scripts": {
"eslint": "eslint . --ext .json --ext .js",
"test": "npm run eslint",
"clean": "npm run removeTempDirectory && node deploy/removeFile.js chromeExtension.zip && node deploy/removeFile.js firefoxExtension.xpi",
"removeTempDirectory": "node deploy/removeFile.js temp",
"createTempDirectory": "node deploy/createDirectory.js temp",
"copyIncludes": "node deploy/copyFolder.js includes temp",
"copyLibraries": "node deploy/copyFolder.js node_modules/bootstrap/dist temp/lib/bootstrap && node deploy/copyFolder.js node_modules/@popperjs/core/dist/cjs/popper.js temp/lib/popper.js && node deploy/copyFolder.js node_modules/dropbox/dist temp/lib/dropbox && node deploy/copyFolder.js node_modules/jquery/dist temp/lib/jquery",
"replaceManifestVersion": "cross-var replace-in-file !!!VERSION!!! $npm_package_version temp/manifest.json",
"removeUselessFilesForStores": "node deploy/removeUselessFilesForStores.js",
"chromeBuild": "npm run removeTempDirectory && npm run createTempDirectory && npm run copyLibraries && npm run copyIncludes && node deploy/copyFolder.js chrome temp && npm run replaceManifestVersion",
"chromeBuildBeta": "npm run removeTempDirectory && npm run createTempDirectory && npm run copyLibraries && npm run copyIncludes && node deploy/copyFolder.js chrome temp && node deploy/copyFolder.js chromeBeta temp && npm run replaceManifestVersion",
"chromePackage": "npm run chromeBuild && npm run removeUselessFilesForStores && node deploy/zipFolder.js chromeExtension.zip temp && npm run removeTempDirectory",
"chromePackageBeta": "npm run chromeBuildBeta && npm run removeUselessFilesForStores && node deploy/zipFolder.js chromeExtensionBeta.zip temp && npm run removeTempDirectory",
"chromeRelease": "npm run chromePackage && npm run chromeSend && node deploy/removeFile.js chromeExtension.zip",
"chromeSend": "chrome-webstore-upload upload --file chromeExtension.zip --source chromeExtension.zip --extension-id knnlnielflnfhdohmihofhdelgahgjdb --client-id ${CLIENT_ID} --client-secret ${CLIENT_SECRET} --refresh-token ${REFRESH_TOKEN} --auto-publish",
"firefoxBuild": "npm run removeTempDirectory && npm run createTempDirectory && npm run copyLibraries && npm run copyIncludes && node deploy/copyFolder.js firefox temp && npm run replaceManifestVersion",
"firefoxPackage": "npm run firefoxBuild && npm run removeUselessFilesForStores && node deploy/zipFolder.js firefoxExtension.xpi temp && npm run removeTempDirectory",
"firefoxClear": "rm firefoxExtension.xpi"
},
"devDependencies": {
"archiver": "^5.3.0",
"chrome-webstore-upload-cli": "^2.0.1",
"cross-var": "^1.1.0",
"eslint": "^8.12.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-no-unsanitized": "^4.0.2",
"fs-extra": "^11.0.0",
"glob": "latest",
"replace-in-file": "^6.3.2",
"xo": "^0.54.0"
},
"xo": {
"envs": [
"browser"
]
},
"eslintConfig": {
"plugins": [
"no-unsanitized",
"json"
],
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"browser": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-console": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
]
}
},
"dependencies": {
"@popperjs/core": "^2.11.6",
"bootstrap": "^4.6.1",
"dropbox": "^10.34.0",
"jquery": "^3.6.4"
}
}