-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from eric2788/develop
v2.0.3 updates
- Loading branch information
Showing
93 changed files
with
7,710 additions
and
4,534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Build And Test Extensions | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
push: | ||
branches: [develop] | ||
paths: | ||
|
@@ -30,7 +32,6 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[run ci]')) }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -39,7 +40,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
version: 9 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -69,7 +70,7 @@ jobs: | |
run: grep -r --include "*.spec.ts" "@scoped" && echo "please remove @scoped from tests" && exit 1 || echo "No @scoped tests found" | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
version: 9 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -105,6 +106,7 @@ jobs: | |
if-no-files-found: ignore | ||
e2e-test: | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(fromJSON('["schedule", "pull_request", "workflow_dispatch"]'), github.event_name) || (github.event_name == 'push' && contains(github.event.head_commit.message, '[run ci]')) }} | ||
needs: [build, test] | ||
strategy: | ||
fail-fast: false | ||
|
@@ -125,7 +127,7 @@ jobs: | |
run: unzip build/${{ matrix.browser }}-mv3-prod.zip -d build/extension | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
version: 9 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ name: Test Only @scoped | |
on: | ||
push: | ||
branches: | ||
- 'hotfix/**' | ||
- 'feature/**' | ||
- '*/*' | ||
- '!master' | ||
- '!develop' | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
|
@@ -18,6 +19,34 @@ on: | |
default: 'false' | ||
|
||
jobs: | ||
fast-build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
browser: [chrome, edge, chromium] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Build And Package Extensions | ||
run: pnpm build --zip --target=${{ matrix.browser }}-mv3 | ||
env: | ||
DEBUG: true | ||
# upload to github artifacts for each browser with matrix | ||
- name: Upload to GitHub Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.browser }}-mv3 | ||
path: build/ | ||
fast-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -28,7 +57,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
version: 9 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -51,7 +80,8 @@ jobs: | |
--grep=@scoped \ | ||
--pass-with-no-tests \ | ||
--global-timeout=3600000 \ | ||
--max-failures=2 | ||
--max-failures=1 \ | ||
--retries=3 | ||
env: | ||
DEBUG: true | ||
fast-e2e-test: | ||
|
@@ -65,7 +95,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
version: 9 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -93,7 +123,8 @@ jobs: | |
--pass-with-no-tests \ | ||
--global-timeout=3600000 \ | ||
--timeout=60000 \ | ||
--max-failures=5 | ||
--max-failures=1 \ | ||
--retries=3 | ||
env: | ||
DEBUG: true | ||
- name: Upload Test Results | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
version: 9 | ||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ npm-debug.log* | |
# local env files | ||
.env* | ||
.vscode/ | ||
.hintrc | ||
|
||
out/ | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "bilibili-vup-stream-enhancer", | ||
"displayName": "Bilibili Vup Stream Enhancer", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "管人观众专用直播增强扩展", | ||
"author": "Eric Lam <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -27,6 +27,7 @@ | |
"@ffmpeg/ffmpeg": "^0.12.10", | ||
"@ffmpeg/util": "^0.12.1", | ||
"@material-tailwind/react": "^2.1.9", | ||
"@mlc-ai/web-llm": "^0.2.73", | ||
"@plasmohq/messaging": "^0.6.2", | ||
"@plasmohq/storage": "^1.9.3", | ||
"@react-hooks-library/core": "^0.5.2", | ||
|
@@ -36,10 +37,11 @@ | |
"dexie-react-hooks": "^1.1.7", | ||
"hash-wasm": "^4.11.0", | ||
"hls.js": "^1.5.8", | ||
"markdown-to-jsx": "^7.5.0", | ||
"media-chrome": "^2.2.5", | ||
"mpegts.js": "^1.7.3", | ||
"n-danmaku": "^2.2.1", | ||
"plasmo": "^0.85.2", | ||
"plasmo": "^0.89.3", | ||
"react": "18.2.0", | ||
"react-contexify": "^6.0.0", | ||
"react-dom": "18.2.0", | ||
|
@@ -55,14 +57,16 @@ | |
"devDependencies": { | ||
"@ffmpeg/types": "^0.12.2", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.2.1", | ||
"@playwright/test": "^1.42.1", | ||
"@playwright/test": "^1.48.0", | ||
"@types/brotli": "^1.3.4", | ||
"@types/chrome": "^0.0.254", | ||
"@types/glob": "^8.1.0", | ||
"@types/node": "20.9.0", | ||
"@types/react": "18.2.37", | ||
"@types/react-dom": "18.2.15", | ||
"@types/semver": "^7.5.8", | ||
"@webgpu/types": "^0.1.49", | ||
"async-mutex": "^0.5.0", | ||
"dotenv": "^16.4.5", | ||
"esbuild": "^0.20.2", | ||
"gify-parse": "^1.0.7", | ||
|
@@ -72,7 +76,7 @@ | |
"postcss": "^8.4.38", | ||
"prettier": "^3.2.5", | ||
"run-script-os": "^1.1.6", | ||
"typescript": "^5.4.3", | ||
"typescript": "^5.6.3", | ||
"ws": "^8.16.0" | ||
}, | ||
"manifest": { | ||
|
@@ -82,7 +86,8 @@ | |
"*://api.live.bilibili.com/*", | ||
"*://live.bilibili.com/*", | ||
"*://*.bilivideo.com/*", | ||
"*://*.ericlamm.xyz/*" | ||
"*://*.ericlamm.xyz/*", | ||
"*://*.cloudflare.com/*" | ||
], | ||
"permissions": [ | ||
"notifications", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.