forked from Qortal/q-blog
16 lines
609 B
Bash
Executable File
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."
|