package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "webview-ui",
  3. "version": "0.1.0",
  4. "private": true,
  5. "type": "module",
  6. "scripts": {
  7. "dev": "vite",
  8. "build": "tsc -b && vite build",
  9. "preview": "vite preview",
  10. "lint": "eslint src --ext ts,tsx",
  11. "test": "jest",
  12. "storybook": "storybook dev -p 6006",
  13. "build-storybook": "storybook build"
  14. },
  15. "dependencies": {
  16. "@radix-ui/react-slot": "^1.1.1",
  17. "@tailwindcss/vite": "^4.0.0",
  18. "@vscode/webview-ui-toolkit": "^1.4.0",
  19. "class-variance-authority": "^0.7.1",
  20. "clsx": "^2.1.1",
  21. "debounce": "^2.1.1",
  22. "fast-deep-equal": "^3.1.3",
  23. "fzf": "^0.5.2",
  24. "react": "^18.3.1",
  25. "react-dom": "^18.3.1",
  26. "react-remark": "^2.1.0",
  27. "react-textarea-autosize": "^8.5.3",
  28. "react-use": "^17.5.1",
  29. "react-virtuoso": "^4.7.13",
  30. "rehype-highlight": "^7.0.0",
  31. "shell-quote": "^1.8.2",
  32. "styled-components": "^6.1.13",
  33. "tailwind-merge": "^2.6.0",
  34. "tailwindcss": "^4.0.0",
  35. "tailwindcss-animate": "^1.0.7",
  36. "vscrui": "^0.2.0"
  37. },
  38. "devDependencies": {
  39. "@chromatic-com/storybook": "^3.2.4",
  40. "@storybook/addon-essentials": "^8.5.2",
  41. "@storybook/addon-interactions": "^8.5.2",
  42. "@storybook/addon-onboarding": "^8.5.2",
  43. "@storybook/blocks": "^8.5.2",
  44. "@storybook/react": "^8.5.2",
  45. "@storybook/react-vite": "^8.5.2",
  46. "@storybook/test": "^8.5.2",
  47. "@testing-library/jest-dom": "^5.17.0",
  48. "@testing-library/react": "^13.4.0",
  49. "@testing-library/user-event": "^13.5.0",
  50. "@types/jest": "^27.5.2",
  51. "@types/node": "^18.0.0",
  52. "@types/react": "^18.3.18",
  53. "@types/react-dom": "^18.3.5",
  54. "@types/shell-quote": "^1.7.5",
  55. "@types/testing-library__jest-dom": "^5.14.5",
  56. "@types/vscode-webview": "^1.57.5",
  57. "@typescript-eslint/eslint-plugin": "^6.21.0",
  58. "@typescript-eslint/parser": "^6.21.0",
  59. "@vitejs/plugin-react": "^4.3.4",
  60. "eslint": "^8.57.0",
  61. "eslint-plugin-react": "^7.33.2",
  62. "eslint-plugin-react-hooks": "^4.6.0",
  63. "eslint-plugin-storybook": "^0.11.2",
  64. "identity-obj-proxy": "^3.0.0",
  65. "jest": "^27.5.1",
  66. "jest-environment-jsdom": "^27.5.1",
  67. "jest-simple-dot-reporter": "^1.0.5",
  68. "storybook": "^8.5.2",
  69. "ts-jest": "^27.1.5",
  70. "typescript": "^4.9.5",
  71. "vite": "6.0.11"
  72. },
  73. "jest": {
  74. "testEnvironment": "jsdom",
  75. "setupFilesAfterEnv": [
  76. "@testing-library/jest-dom/extend-expect"
  77. ],
  78. "preset": "ts-jest",
  79. "reporters": [
  80. [
  81. "jest-simple-dot-reporter",
  82. {}
  83. ]
  84. ],
  85. "moduleNameMapper": {
  86. "\\.(css|less|scss|sass)$": "identity-obj-proxy",
  87. "^vscrui$": "<rootDir>/src/__mocks__/vscrui.ts",
  88. "^@vscode/webview-ui-toolkit/react$": "<rootDir>/src/__mocks__/@vscode/webview-ui-toolkit/react.ts"
  89. },
  90. "transformIgnorePatterns": [
  91. "/node_modules/(?!(rehype-highlight|react-remark|unist-util-visit|unist-util-find-after|vfile|unified|bail|is-plain-obj|trough|vfile-message|unist-util-stringify-position|mdast-util-from-markdown|mdast-util-to-string|micromark|decode-named-character-reference|character-entities|markdown-table|zwitch|longest-streak|escape-string-regexp|unist-util-is|hast-util-to-text|@vscode/webview-ui-toolkit|@microsoft/fast-react-wrapper|@microsoft/fast-element|@microsoft/fast-foundation|@microsoft/fast-web-utilities|exenv-es6|vscrui)/)"
  92. ],
  93. "transform": {
  94. "^.+\\.(ts|tsx)$": [
  95. "ts-jest",
  96. {
  97. "tsconfig": {
  98. "jsx": "react-jsx"
  99. }
  100. }
  101. ]
  102. },
  103. "moduleDirectories": [
  104. "node_modules",
  105. "src"
  106. ],
  107. "testMatch": [
  108. "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
  109. "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
  110. ]
  111. }
  112. }