create-reactivite 1.0.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +119 -98
  2. package/index.js +33 -1
  3. package/package.json +4 -3
  4. package/template/README.md +73 -73
  5. package/template/_gitignore +24 -0
  6. package/template/components.json +22 -22
  7. package/template/eslint.config.js +30 -23
  8. package/template/index.html +13 -13
  9. package/template/package.json +53 -53
  10. package/template/pnpm-lock.yaml +1281 -1856
  11. package/template/src/App.tsx +27 -27
  12. package/template/src/components/home-page-components/header.tsx +2 -2
  13. package/template/src/components/ui/accordion.tsx +64 -64
  14. package/template/src/components/ui/alert.tsx +66 -66
  15. package/template/src/components/ui/avatar.tsx +51 -51
  16. package/template/src/components/ui/badge.tsx +46 -46
  17. package/template/src/components/ui/button-group.tsx +83 -83
  18. package/template/src/components/ui/button.tsx +60 -60
  19. package/template/src/components/ui/calendar.tsx +210 -211
  20. package/template/src/components/ui/card.tsx +92 -92
  21. package/template/src/components/ui/checkbox.tsx +30 -30
  22. package/template/src/components/ui/collapsible.tsx +31 -31
  23. package/template/src/components/ui/dialog.tsx +141 -141
  24. package/template/src/components/ui/input.tsx +21 -21
  25. package/template/src/components/ui/select.tsx +185 -185
  26. package/template/src/components/ui/separator.tsx +26 -26
  27. package/template/src/components/ui/sonner.tsx +38 -38
  28. package/template/src/components/ui/spinner.tsx +16 -16
  29. package/template/src/components/ui/table.tsx +114 -114
  30. package/template/src/components/ui/toggle.tsx +45 -45
  31. package/template/src/components/ui/tooltip.tsx +59 -59
  32. package/template/src/lib/utils.ts +6 -6
  33. package/template/src/main.tsx +10 -10
  34. package/template/tsconfig.app.json +31 -28
  35. package/template/tsconfig.json +2 -4
  36. package/template/tsconfig.node.json +26 -26
  37. package/template2/.env.example +8 -0
  38. package/template2/.husky/pre-commit +4 -0
  39. package/template2/.prettierrc +5 -0
  40. package/template2/README.md +73 -0
  41. package/template2/__tests__/example.test.ts +20 -0
  42. package/template2/_gitignore +37 -0
  43. package/template2/app/[locale]/(private)/dashboard/page.tsx +52 -0
  44. package/template2/app/[locale]/(public)/login/page.tsx +83 -0
  45. package/template2/app/[locale]/layout.tsx +56 -0
  46. package/template2/app/[locale]/locales.ts +10 -0
  47. package/template2/app/[locale]/page.tsx +38 -0
  48. package/template2/app/api/clear-session/route.ts +10 -0
  49. package/template2/app/globals.css +127 -0
  50. package/template2/app/layout.tsx +7 -0
  51. package/template2/app/page.tsx +6 -0
  52. package/template2/components/AuthEventListener.tsx +22 -0
  53. package/template2/components/theme-provider.tsx +78 -0
  54. package/template2/components/ui/button.tsx +60 -0
  55. package/template2/components/ui/card.tsx +92 -0
  56. package/template2/components/ui/input.tsx +21 -0
  57. package/template2/components/ui/label.tsx +24 -0
  58. package/template2/components/ui/sonner.tsx +40 -0
  59. package/template2/components.json +22 -0
  60. package/template2/config/constants.ts +7 -0
  61. package/template2/config/env.ts +5 -0
  62. package/template2/contexts/translation-context.tsx +70 -0
  63. package/template2/eslint.config.mjs +18 -0
  64. package/template2/hoc/provider.tsx +27 -0
  65. package/template2/lib/paramsSerializer.ts +40 -0
  66. package/template2/lib/utils.ts +6 -0
  67. package/template2/locales/az.json +20 -0
  68. package/template2/locales/en.json +20 -0
  69. package/template2/next-env.d.ts +6 -0
  70. package/template2/next.config.ts +17 -0
  71. package/template2/orval.config.ts +66 -0
  72. package/template2/package.json +62 -0
  73. package/template2/pnpm-lock.yaml +6804 -0
  74. package/template2/postcss.config.mjs +7 -0
  75. package/template2/public/.gitkeep +0 -0
  76. package/template2/scripts/fix-generated-types.mjs +13 -0
  77. package/template2/services/generated/.gitkeep +2 -0
  78. package/template2/services/httpClient/httpClient.ts +70 -0
  79. package/template2/services/httpClient/orvalMutator.ts +10 -0
  80. package/template2/store/example-store.tsx +16 -0
  81. package/template2/store/user-store.tsx +29 -0
  82. package/template2/testing/msw/handlers/index.ts +6 -0
  83. package/template2/testing/msw/server.ts +4 -0
  84. package/template2/tsconfig.json +34 -0
  85. package/template2/tsconfig.tsbuildinfo +1 -0
  86. package/template2/vitest.config.ts +17 -0
  87. package/template2/vitest.setup.ts +7 -0
@@ -0,0 +1,17 @@
1
+ import { defineConfig } from "vitest/config";
2
+ import react from "@vitejs/plugin-react";
3
+ import path from "path";
4
+
5
+ export default defineConfig({
6
+ plugins: [react()],
7
+ test: {
8
+ environment: "jsdom",
9
+ globals: true,
10
+ setupFiles: ["./vitest.setup.ts"],
11
+ },
12
+ resolve: {
13
+ alias: {
14
+ "@": path.resolve(__dirname, "."),
15
+ },
16
+ },
17
+ });
@@ -0,0 +1,7 @@
1
+ import "@testing-library/jest-dom";
2
+ import { server } from "./testing/msw/server";
3
+ import { beforeAll, afterEach, afterAll } from "vitest";
4
+
5
+ beforeAll(() => server.listen({ onUnhandledRequest: "warn" }));
6
+ afterEach(() => server.resetHandlers());
7
+ afterAll(() => server.close());