Files
q-blog/scripts/dev/install-dev-deps.sh
2025-08-16 21:21:57 -04:00

16 lines
609 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
PKG_MGR=""
if command -v pnpm >/dev/null 2>&1; then PKG_MGR="pnpm add -D"
elif command -v npm >/dev/null 2>&1; then PKG_MGR="npm i -D"
else echo "Install pnpm or npm first"; exit 1; fi
$PKG_MGR typescript @types/node @types/react @types/react-dom
$PKG_MGR eslint @eslint/js typescript-eslint eslint-plugin-react-hooks eslint-plugin-jsx-a11y
$PKG_MGR prettier eslint-config-prettier
$PKG_MGR vitest @vitest/coverage-v8 jsdom @testing-library/react @testing-library/user-event @testing-library/jest-dom
$PKG_MGR jest-axe axe-core
$PKG_MGR msw
echo "Dev deps installed."