Skip to content

Commit c305377

Browse files
committed
chore: Tidy up dev commands
1 parent 6e7d28d commit c305377

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
},
1111
"private": false,
1212
"scripts": {
13-
"prev:popup": "serve src/popup",
13+
"dev:chrome": "concurrently 'npm run build:w:chrome' 'npm run run:chrome'",
14+
"dev:firefox": "concurrently 'npm run build:w:firefox' 'npm run run:firefox'",
1415
"build:chrome": "cross-env ESB_TARGET_BROWSER=chrome node scripts/build.mjs",
1516
"build:firefox": "cross-env ESB_TARGET_BROWSER=firefox node scripts/build.mjs",
16-
"build:w": "cross-env ESB_WATCH=true node scripts/build.mjs",
17-
"run:chrome": "web-ext --target=chromium -s build-chrome run",
18-
"run:firefox": "web-ext --target=firefox -s build-firefox run",
17+
"build:w:chrome": "cross-env ESB_WATCH=true ESB_TARGET_BROWSER=chrome node scripts/build.mjs",
18+
"build:w:firefox": "cross-env ESB_WATCH=true ESB_TARGET_BROWSER=firefox node scripts/build.mjs",
19+
"run:chrome": "web-ext --target=chromium -s build run -u ./samples",
20+
"run:firefox": "web-ext --target=firefox-desktop -s build run -u ./samples",
21+
"prev:popup": "serve src/popup",
1922
"lint": "concurrently 'npm run lint:webext' 'npm run lint:ts:script'",
2023
"lint:ts:script": "tsc --noEmit -p src/popup/tsconfig.json",
2124
"lint:webext": "web-ext -s build lint",

samples/simple.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
<p>سلام this باید rtl باشد</p>
4+
</body>
5+
</html>

0 commit comments

Comments
 (0)