diff --git a/README.md b/README.md index 24bbc6aa..8795274e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 9ed05fdc..26e585e0 100644 --- a/package.json +++ b/package.json @@ -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",