New checks - security.yml: dependency-review blocks PRs that add a high/critical advisory; actionlint + zizmor lint the workflows themselves (template injection, permissions, credential persistence, unpinned uses); OpenSSF Scorecard weekly and on main (published, not uploaded as alerts). - compliance.yml: REUSE lint over the whole repo (REUSE.toml + LICENSES/, no per-file headers) and Conventional-Commit PR titles. - rust.yml (src-tauri changes + weekly): rustfmt, clippy -D warnings, cargo test, and cargo-deny for RustSec advisories, licenses and sources. - ci.yml `check` gains: coverage thresholds (src/engine, worker), check:licenses, check:bundle, and a `wrangler deploy --dry-run`. Licensing - THIRD_PARTY_NOTICES.md is now generated from package.json, the installed packages and Cargo.toml/Cargo.lock (`npm run generate:third-party`); CI fails when it is stale or when anything bundled into the app carries a license outside the allowlist. It had drifted to React 18 / Vite 7 / Tailwind 3. - Vite's build.license emits the full text of every bundled package's license to /licenses/third-party.md (served publicly, before the gate). Bundle budget - scripts/check-bundle-size.ts measures what CLAUDE.md's "500KB" never defined: initial load (everything index.html references) <= 280 KB gzip (197 KB today) and no JS chunk over 500 KB raw. Coverage - @vitest/coverage-v8; thresholds sit just under today's numbers. The engine is at 89% lines / 64% functions — not the 100% CLAUDE.md claimed. Supply chain - Every third-party action pinned to a commit SHA (Dependabot updates the SHA and its version comment); checkout never persists credentials. - Release workflows: a `verify` job (typecheck, tests, version sync, Tauri alignment, tag == package version) gates the build; no dependency caches in release jobs; permissions granted per job. - Reusable Discord workflows receive only the secrets they declare instead of `secrets: inherit` (which exposed the Android signing keys to them). - Rust: cargo-deny found RUSTSEC-2026-0194/0195 (quick-xml DoS, via plist) that Dependabot had not raised; plist 1.10 brings quick-xml 0.41. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
81 lines
2.8 KiB
JSON
81 lines
2.8 KiB
JSON
{
|
|
"name": "yt-desc-gen",
|
|
"version": "0.38.0",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"lint": "eslint src/ tests/ scripts/ worker/ build-plugins/",
|
|
"lint:fix": "eslint src/ tests/ scripts/ worker/ build-plugins/ --fix",
|
|
"knip": "knip",
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck:all": "tsc --noEmit -p tsconfig.check.json",
|
|
"format": "prettier --write \"{src,tests,scripts,worker,build-plugins}/**/*.{ts,tsx,css}\"",
|
|
"format:check": "prettier --check \"{src,tests,scripts,worker,build-plugins}/**/*.{ts,tsx,css}\"",
|
|
"check:version": "tsx scripts/check-version-sync.ts",
|
|
"validate:locales": "tsx scripts/validate-locales.ts",
|
|
"generate:locale": "tsx scripts/generate-locale-template.ts",
|
|
"tauri": "tauri",
|
|
"tauri:dev": "tauri dev",
|
|
"tauri:build": "tauri build",
|
|
"generate:brand": "tsx scripts/generate-brand-assets.ts",
|
|
"cf:dev": "wrangler dev",
|
|
"cf:check": "wrangler deploy --dry-run --outdir .wrangler/dry-run",
|
|
"check:tauri": "tsx scripts/check-tauri-versions.ts",
|
|
"check:bundle": "tsx scripts/check-bundle-size.ts",
|
|
"check:licenses": "tsx scripts/third-party.ts",
|
|
"generate:third-party": "tsx scripts/third-party.ts --write"
|
|
},
|
|
"dependencies": {
|
|
"@tauri-apps/api": "^2.12.0",
|
|
"@tauri-apps/plugin-dialog": "^2.8.0",
|
|
"@tauri-apps/plugin-fs": "^2.6.0",
|
|
"@tauri-apps/plugin-opener": "^2.7.0",
|
|
"@tauri-apps/plugin-shell": "^2.4.0",
|
|
"clsx": "^2.1.1",
|
|
"i18next": "^26.4.2",
|
|
"i18next-resources-to-backend": "^1.2.3",
|
|
"lucide-react": "^0.577.0",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"react-hot-toast": "^2.6.1",
|
|
"react-i18next": "^17.0.15",
|
|
"react-router-dom": "^7.18.4",
|
|
"zustand": "^5.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@resvg/resvg-js": "2.6.2",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@tauri-apps/cli": "2.12.0",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@types/node": "^26.6.3",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"@vitest/coverage-v8": "^4.1.11",
|
|
"autoprefixer": "^10.6.1",
|
|
"eslint": "^10.11.0",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"knip": "^6.38.0",
|
|
"marked": "18.0.14",
|
|
"postcss": "^8.5.28",
|
|
"prettier": "^3.9.9",
|
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
"tailwindcss": "^4.3.3",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.71.0",
|
|
"vite": "^8.3.1",
|
|
"vitest": "^4.1.11",
|
|
"wrangler": "4.144.0"
|
|
}
|
|
}
|