prox-cli 1.3.2

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 (63) hide show
  1. package/bin/index.js +137 -0
  2. package/package.json +21 -0
  3. package/templates/next@14/.editorconfig +16 -0
  4. package/templates/next@14/.eslintrc.json +10 -0
  5. package/templates/next@14/.husky/pre-commit +1 -0
  6. package/templates/next@14/.prettierrc +14 -0
  7. package/templates/next@14/.yarnrc.yml +1 -0
  8. package/templates/next@14/README.md +36 -0
  9. package/templates/next@14/commitlint.config.js +0 -0
  10. package/templates/next@14/components.json +25 -0
  11. package/templates/next@14/cypress/e2e/spec.cy.ts +5 -0
  12. package/templates/next@14/cypress/fixtures/example.json +5 -0
  13. package/templates/next@14/cypress/support/commands.ts +37 -0
  14. package/templates/next@14/cypress/support/e2e.ts +17 -0
  15. package/templates/next@14/cypress.config.ts +9 -0
  16. package/templates/next@14/documentation/readme +1 -0
  17. package/templates/next@14/next.config.mjs +4 -0
  18. package/templates/next@14/package-lock.json +13597 -0
  19. package/templates/next@14/package.json +66 -0
  20. package/templates/next@14/postcss.config.mjs +8 -0
  21. package/templates/next@14/public/fonts/GeistMonoVF.woff +0 -0
  22. package/templates/next@14/public/fonts/GeistVF.woff +0 -0
  23. package/templates/next@14/public/images/global/proxy-logo.svg +1 -0
  24. package/templates/next@14/public/images/readme +1 -0
  25. package/templates/next@14/src/app/favicon.ico +0 -0
  26. package/templates/next@14/src/app/layout.tsx +24 -0
  27. package/templates/next@14/src/app/page.tsx +14 -0
  28. package/templates/next@14/src/components/layouts/readme +1 -0
  29. package/templates/next@14/src/components/providers/index.tsx +17 -0
  30. package/templates/next@14/src/components/providers/modules/readme +1 -0
  31. package/templates/next@14/src/components/shared/readme +1 -0
  32. package/templates/next@14/src/components/skeletons/readme +1 -0
  33. package/templates/next@14/src/components/ui/button.tsx +60 -0
  34. package/templates/next@14/src/components/ui/readme +1 -0
  35. package/templates/next@14/src/components/ui/svgs/npm.tsx +13 -0
  36. package/templates/next@14/src/components/ui/svgs/npmWordmark.tsx +12 -0
  37. package/templates/next@14/src/components/welcome-component.tsx +37 -0
  38. package/templates/next@14/src/configuration/readme +1 -0
  39. package/templates/next@14/src/fonts/index.ts +13 -0
  40. package/templates/next@14/src/i18n/messages/ar.json +0 -0
  41. package/templates/next@14/src/i18n/messages/en.json +0 -0
  42. package/templates/next@14/src/i18n/navigation.ts +6 -0
  43. package/templates/next@14/src/i18n/request.ts +17 -0
  44. package/templates/next@14/src/i18n/routing.ts +14 -0
  45. package/templates/next@14/src/lib/actions/readme +1 -0
  46. package/templates/next@14/src/lib/api/readme +1 -0
  47. package/templates/next@14/src/lib/constants/readme +1 -0
  48. package/templates/next@14/src/lib/context/readme +1 -0
  49. package/templates/next@14/src/lib/hooks/readme +1 -0
  50. package/templates/next@14/src/lib/schema/readme +1 -0
  51. package/templates/next@14/src/lib/seo/readme +1 -0
  52. package/templates/next@14/src/lib/storage/local.storage.ts +54 -0
  53. package/templates/next@14/src/lib/storage/session.storage.ts +54 -0
  54. package/templates/next@14/src/lib/types/readme +1 -0
  55. package/templates/next@14/src/lib/utils/cn.util.ts +6 -0
  56. package/templates/next@14/src/lib/utils.ts +6 -0
  57. package/templates/next@14/src/middleware.ts +19 -0
  58. package/templates/next@14/src/store/readme +1 -0
  59. package/templates/next@14/src/styles/globals.css +78 -0
  60. package/templates/next@14/src/tests/e2e.spec.tsx +9 -0
  61. package/templates/next@14/tailwind.config.ts +63 -0
  62. package/templates/next@14/tsconfig.json +37 -0
  63. package/templates/next@14/vitest.config.mts +10 -0
@@ -0,0 +1,63 @@
1
+ import type { Config } from "tailwindcss";
2
+
3
+ const config: Config = {
4
+ darkMode: ["class"],
5
+ content: [
6
+ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
7
+ "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
8
+ "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
9
+ ],
10
+ theme: {
11
+ extend: {
12
+ colors: {
13
+ background: 'hsl(var(--background))',
14
+ foreground: 'hsl(var(--foreground))',
15
+ card: {
16
+ DEFAULT: 'hsl(var(--card))',
17
+ foreground: 'hsl(var(--card-foreground))'
18
+ },
19
+ popover: {
20
+ DEFAULT: 'hsl(var(--popover))',
21
+ foreground: 'hsl(var(--popover-foreground))'
22
+ },
23
+ primary: {
24
+ DEFAULT: 'hsl(var(--primary))',
25
+ foreground: 'hsl(var(--primary-foreground))'
26
+ },
27
+ secondary: {
28
+ DEFAULT: 'hsl(var(--secondary))',
29
+ foreground: 'hsl(var(--secondary-foreground))'
30
+ },
31
+ muted: {
32
+ DEFAULT: 'hsl(var(--muted))',
33
+ foreground: 'hsl(var(--muted-foreground))'
34
+ },
35
+ accent: {
36
+ DEFAULT: 'hsl(var(--accent))',
37
+ foreground: 'hsl(var(--accent-foreground))'
38
+ },
39
+ destructive: {
40
+ DEFAULT: 'hsl(var(--destructive))',
41
+ foreground: 'hsl(var(--destructive-foreground))'
42
+ },
43
+ border: 'hsl(var(--border))',
44
+ input: 'hsl(var(--input))',
45
+ ring: 'hsl(var(--ring))',
46
+ chart: {
47
+ '1': 'hsl(var(--chart-1))',
48
+ '2': 'hsl(var(--chart-2))',
49
+ '3': 'hsl(var(--chart-3))',
50
+ '4': 'hsl(var(--chart-4))',
51
+ '5': 'hsl(var(--chart-5))'
52
+ }
53
+ },
54
+ borderRadius: {
55
+ lg: 'var(--radius)',
56
+ md: 'calc(var(--radius) - 2px)',
57
+ sm: 'calc(var(--radius) - 4px)'
58
+ }
59
+ }
60
+ },
61
+ plugins: [require("tailwindcss-animate")],
62
+ };
63
+ export default config;
@@ -0,0 +1,37 @@
1
+ {
2
+ "compilerOptions": {
3
+ "lib": ["dom", "dom.iterable", "esnext"],
4
+ "allowJs": true,
5
+ "skipLibCheck": true,
6
+ "strict": true,
7
+ "noEmit": true,
8
+ "esModuleInterop": true,
9
+ "module": "esnext",
10
+ "moduleResolution": "bundler",
11
+ "resolveJsonModule": true,
12
+ "isolatedModules": true,
13
+ "jsx": "preserve",
14
+ "incremental": true,
15
+ "plugins": [
16
+ {
17
+ "name": "next"
18
+ }
19
+ ],
20
+ "paths": {
21
+ "@app/*": ["./src/app/*"],
22
+ "@components/*": ["./src/components/*"],
23
+ "@configuration/*": ["./src/configuration/*"],
24
+ "@fonts": ["./src/fonts/index.ts"],
25
+ "@i18n/*": ["./src/i18n/*"],
26
+ "@lib/*": ["./src/lib/*"],
27
+ "@services/*": ["./src/services/*"],
28
+ "@store/*": ["./src/store/*"],
29
+ "@styles/*": ["./src/styles/*"],
30
+ "@tests/*": ["./src/tests/*"],
31
+ "@public/*": ["./src/app/*"],
32
+ "@/*": ["./src/*"]
33
+ }
34
+ },
35
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
36
+ "exclude": ["node_modules"]
37
+ }
@@ -0,0 +1,10 @@
1
+ import react from "@vitejs/plugin-react";
2
+ import tsconfigPaths from "vite-tsconfig-paths";
3
+ import { defineConfig } from "vitest/config";
4
+
5
+ export default defineConfig({
6
+ plugins: [tsconfigPaths(), react()],
7
+ test: {
8
+ environment: "jsdom",
9
+ },
10
+ });