-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
39 lines (39 loc) · 1.84 KB
/
package.json
File metadata and controls
39 lines (39 loc) · 1.84 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
{
"name": "speedcode-extension",
"version": "1.1.0",
"description": "LeetCode problem tracker with social features",
"type": "module",
"scripts": {
"build": "npm run clean:chrome && vite build && npm run post-build:chrome",
"build:firefox": "npm run clean:firefox && vite build --outDir dist-firefox && npm run post-build:firefox",
"build:all": "npm run clean && npm run build && npm run build:firefox",
"clean": "rm -rf dist dist-firefox",
"clean:chrome": "rm -rf dist",
"clean:firefox": "rm -rf dist-firefox",
"post-build:chrome": "npm run copy-assets:chrome && npm run copy-manifest:chrome && npm run copy-scripts:chrome && npm run fix-html:chrome",
"post-build:firefox": "npm run copy-assets:firefox && npm run copy-manifest:firefox && npm run copy-scripts:firefox && npm run fix-html:firefox",
"copy-assets:chrome": "cp -r public/* dist/ 2>/dev/null || true",
"copy-assets:firefox": "cp -r public/* dist-firefox/ 2>/dev/null || true",
"copy-manifest:chrome": "cp public/manifest.json dist/manifest.json",
"copy-manifest:firefox": "cp public/manifest.firefox.json dist-firefox/manifest.json",
"copy-scripts:chrome": "cp public/content.js dist/content.js && cp public/background.js dist/background.js",
"copy-scripts:firefox": "cp public/content.js dist-firefox/content.js && cp public/background.firefox.js dist-firefox/background.js",
"fix-html:chrome": "if [ -f dist/src/popup.html ]; then mv dist/src/popup.html dist/popup.html && rm -rf dist/src; fi",
"fix-html:firefox": "if [ -f dist-firefox/src/popup.html ]; then mv dist-firefox/src/popup.html dist-firefox/popup.html && rm -rf dist-firefox/src; fi"
},
"dependencies": {
"firebase": "^10.7.1"
},
"devDependencies": {
"vite": "^5.0.0"
},
"keywords": [
"chrome-extension",
"leetcode",
"social",
"coding",
"tracker"
],
"author": "dev & co-dev",
"license": "MIT"
}