Skip to content

Instantly share code, notes, and snippets.

@devamitranjan
Created June 19, 2024 17:27
Show Gist options
  • Save devamitranjan/adeb414ae0bc8259097a963fdc875dd1 to your computer and use it in GitHub Desktop.
Save devamitranjan/adeb414ae0bc8259097a963fdc875dd1 to your computer and use it in GitHub Desktop.
package json file for the vite with jsdom
{
"name": "my-package",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
"start:mock": "VITE_MOCK_SERVER=true vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "jest",
"ci-test": "jest --coverage"
},
"dependencies": {
"@xstate/react": "^4.1.1",
"classnames": "^2.5.1",
"jspdf": "^2.5.1",
"qrcode": "^1.5.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-otp-input": "^2.4.0",
"xstate": "^5.13.0"
},
"devDependencies": {
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/qrcode": "^1.5.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-otp-input": "^2.0.5",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^4.2.1",
"babel-jest": "^29.7.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"msw": "^2.3.0",
"prettier": "^3.1.1",
"sass": "^1.77.4",
"sass-loader": "^14.2.1",
"snyk": "^1.991.0",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"typescript": "^5.2.2",
"undici": "^6.19.2",
"uuid-v4": "^0.1.0",
"vite": "^5.2.0",
"vite-plugin-html": "^3.2.2",
"vite-plugin-svgr": "^4.2.0"
},
"msw": {
"workerDirectory": [
"public"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment