-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.scripts.json
26 lines (26 loc) · 1.71 KB
/
package.scripts.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
{
"lint": "pnpm pes lint:css pnpm pes lint:js",
"lint:css": "stylelint src/**/*.css",
"lint:js": "eslint src --ext .js",
"lint-fix": "pnpm pes lint-fix:css pnpm pes lint-fix:js",
"lint-fix:css": "stylelint src/**/*.css --fix",
"lint-fix:js": "eslint src --fix",
"rm-dist": "rimraf dist",
"rm-c": "rimraf dist/chrome",
"rm-f": "rimraf dist/firefox",
"build": "pnpm pes lint-fix && pnpm pes rm-dist && pnpm pes build-c && pnpm pes build-f && pnpm pes build-bepp",
"build-c": "pnpm pes build-c-man && pnpm pes build-c-comp",
"build-c-man": "parcel build src/chrome/manifest.json --dist-dir dist/chrome --no-content-hash --no-source-maps --no-cache --detailed-report 0 --cache-dir dist/cache",
"build-c-comp": "web-ext build --source-dir=./dist/chrome --artifacts-dir=dist/comp --filename=chrome-{name}-{version}.zip",
"build-f": "pnpm pes build-f-man && pnpm pes build-f-comp",
"build-f-man": "parcel build src/firefox/manifest.json --dist-dir dist/firefox --no-content-hash --no-source-maps --no-cache --detailed-report 0 --cache-dir dist/cache",
"build-f-comp": "web-ext build --source-dir=./dist/firefox --artifacts-dir=dist/comp --filename=firefox-{name}-{version}.zip",
"build-bepp": "pnpm exec bepp build --time",
"dev": "pnpm pes web-ext-c",
"dev-c": "pnpm pes rm-c && pnpm pes server-c",
"dev-f": "pnpm pes rm-f && pnpm pes server-f",
"server-c": "parcel watch src/chrome/manifest.json --dist-dir dist/chrome --no-cache --no-hmr --cache-dir dist/cache",
"server-f": "parcel watch src/firefox/manifest.json --dist-dir dist/firefox --no-cache --no-hmr --cache-dir dist/cache",
"web-ext-c": "web-ext run -t chromium --source-dir ./dist/chrome",
"web-ext-f": "web-ext run -t firefox-desktop --source-dir ./dist/firefox"
}