Skip to content

Commit

Permalink
### Further Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Jan 12, 2025
1 parent 275ffa0 commit 101631b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,21 +251,28 @@ and then skipped by forwarding by the ad length -0.1 seconds which will fix a lo

- ```npm install -g pnpm``` install pnpm
- ```pnpm install``` install all required packages
- ```pnpm build``` build the extension
- ```pnpm build``` build firefox and chrome zip files in dist folder
- ```pnpm web-ext``` run the extension in firefox
- ```pnpm chrome``` run the extension in chrome

### Commands
### Further Commands

```pnpm build``` build firefox and chrome zip files in dist folder

```pnpm web-ext``` run web-ext firefox
```pnpm dev``` hot build with sourcemaps and w/o minification for both
```pnpm dev:chrome``` hot build with sourcemaps and w/o minification for chrome
```pnpm dev:firefox``` hot build with sourcemaps and w/o minification for firefox

```npm run start-android``` start on firefox android

```npm run lint``` lint all files
```pnpm format``` run prettier on all files
```pnpm lint``` run esLint
```pnpm lint:manifest``` web-ext lint manifest files

### Author

```pnpm transDeepL``` translate .translation/deepl.EN.json and output them into the locales files directly
```pnpm hours``` calculate the hours spent on the project
```pnpm copyDocsFtoC``` copy the docs from the firefox folder to the chrome folder

```lint:manifest``` lint all the manifest files

## Open the Extension without web-ext

Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@
"name": "streaming-enhanced",
"version": "1.1.55",
"scripts": {
"start": "concurrently \"npm run dev:firefox\" \"web-ext run --source-dir dist/firefox --keep-profile-changes --firefox-profile=test --profile-create-if-missing\"",
"web-ext": "web-ext run",
"firefox": "web-ext run --keep-profile-changes --firefox-profile=test --profile-create-if-missing",
"chrome": "web-ext run --source-dir dist/chrome/ -t chromium",
"start-android": "adb devices && web-ext run --source-dir dist/firefox -t firefox-android --firefox-apk org.mozilla.firefox --adb-device 38091FDJH002WH",
"build": "npm run build:chrome && npm run build:firefox && npm run hours",
"start-android": "adb devices && web-ext run -t firefox-android --firefox-apk org.mozilla.firefox --adb-device 38091FDJH002WH",
"build": "npm run build:chrome && npm run build:firefox",
"build:chrome": "cross-env NODE_ENV=production vite build -c vite.chrome.config.ts",
"build:firefox": "cross-env NODE_ENV=production vite build -c vite.firefox.config.ts",
"dev": "concurrently \"npm run dev:chrome\" \"npm run dev:firefox\"",
"dev:chrome": "cross-env NODE_ENV=development vite build --mode development --watch -c vite.chrome.config.ts",
"dev:firefox": "cross-env NODE_ENV=development vite build --mode development --watch -c vite.firefox.config.ts",
"format": "prettier --write .",
"launch": "tsx scripts/launch.ts",
"launch:all": "tsx scripts/launch.ts --all",
"lint": "eslint . --fix --cache",
"lint:manifest": "web-ext lint",
"typecheck": "vue-tsc --noEmit",
Expand Down

0 comments on commit 101631b

Please sign in to comment.