@postxl/generators 1.16.0 → 1.17.1

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.
@@ -6,19 +6,9 @@ VITE_PUBLIC_BASE_URL=http://localhost:3000
6
6
  #VITE_PUBLIC_API_URL=http://host.docker.internal:3001
7
7
  #VITE_PUBLIC_BASE_URL=http://host.docker.internal:3000
8
8
 
9
- # MapBox Access Token
10
- VITE_PUBLIC_MAPBOX_ACCESS_TOKEN=TOKEN_HERE
11
-
12
- # MapBox Disable Tansitions (used for e2e tests)
13
- VITE_PUBLIC_MAPBOX_DISABLE_TRANSITIONS=false
14
-
15
9
  # Use Test Assets (used for e2e tests)
16
10
  VITE_PUBLIC_USE_TEST_ASSETS=true
17
11
 
18
- # Enable Analytics
19
- VITE_PUBLIC_ENABLE_ANALYTICS=false
20
- VITE_PUBLIC_ANALYTICS_SCRIPT_URL=https://assets.adobedtm.com/3d4679b20136/041ff0ef4060/launch-471cb01e8dd6-development.min.js
21
-
22
12
  # Enable tanstack dev tools (for dev mode enabled by default)
23
13
  #VITE_ENABLE_DEV_TOOLS=true
24
14
 
@@ -88,13 +88,8 @@ The app is configured via Vite environment variables (see `src/lib/config.ts`).
88
88
  - `VITE_ENABLE_DEV_TOOLS` - Enable TanStack Router and Query DevTools (boolean, auto-enabled with `pnpm dev`)
89
89
 
90
90
  **Testing & E2E:**
91
- - `VITE_PUBLIC_MAPBOX_DISABLE_TRANSITIONS` - Disable map transitions for E2E tests (boolean)
92
91
  - `VITE_PUBLIC_USE_TEST_ASSETS` - Use test assets instead of production assets (boolean)
93
92
 
94
- **Analytics (Optional):**
95
- - `VITE_PUBLIC_ENABLE_ANALYTICS` - Enable analytics tracking (boolean)
96
- - `VITE_PUBLIC_ANALYTICS_SCRIPT_URL` - Analytics script URL (string)
97
-
98
93
  **Example `.env.local`** (do not commit secrets):
99
94
 
100
95
  ```bash
@@ -112,8 +107,6 @@ VITE_PUBLIC_CHECK_LOGIN_IFRAME=false
112
107
  VITE_AUTH=true
113
108
  VITE_ENABLE_DEV_TOOLS=true
114
109
 
115
- # Analytics (optional)
116
- VITE_PUBLIC_ENABLE_ANALYTICS=false
117
110
  ```
118
111
 
119
112
  > **Note:** Boolean environment variables are parsed in `src/lib/config.ts` via JSON parsing and support special Docker placeholders. See the config file for implementation details.
@@ -6,11 +6,7 @@ const APP_CONFIG_SCHEMA = z.object({
6
6
  keycloakURL: z.string(),
7
7
  keycloakRealm: z.string(),
8
8
  keycloakClientId: z.string(),
9
- mapBoxAccessToken: z.string(),
10
- mapBoxDisableTransitions: z.boolean().optional().default(false),
11
9
  useTestAssets: z.boolean().optional().default(false),
12
- enableAnalytics: z.boolean().optional().default(false),
13
- analyticsScriptUrl: z.string().optional(),
14
10
  AUTH: z.boolean().optional().default(true),
15
11
  enableDevTools: z.boolean().optional().default(false),
16
12
  checkLoginIframe: z.boolean().optional().default(true),
@@ -23,7 +19,7 @@ const APP_CONFIG_SCHEMA = z.object({
23
19
  * As the parser expects booleans, we need to manually convert them to `false` during the build.
24
20
  */
25
21
  const DOCKER_BUILD_PLACEHOLDERS_BOOLEAN = new Set(
26
- ['VITE_PUBLIC_USE_AUTH', 'VITE_PUBLIC_ENABLE_ANALYTICS', 'VITE_PUBLIC_ENABLE_AI'].map((key) => `PLACEHOLDER_${key}`),
22
+ ['VITE_PUBLIC_USE_AUTH', 'VITE_PUBLIC_ENABLE_AI'].map((key) => `PLACEHOLDER_${key}`),
27
23
  )
28
24
 
29
25
  export const APP_CONFIG = APP_CONFIG_SCHEMA.parse({
@@ -32,11 +28,7 @@ export const APP_CONFIG = APP_CONFIG_SCHEMA.parse({
32
28
  keycloakURL: viteenv(import.meta.env.VITE_PUBLIC_KEYCLOAK_URL),
33
29
  keycloakRealm: viteenv(import.meta.env.VITE_PUBLIC_KEYCLOAK_REALM),
34
30
  keycloakClientId: viteenv(import.meta.env.VITE_PUBLIC_KEYCLOAK_CLIENT_ID),
35
- mapBoxAccessToken: viteenv(import.meta.env.VITE_PUBLIC_MAPBOX_ACCESS_TOKEN),
36
- mapBoxDisableTransitions: viteenv(import.meta.env.VITE_PUBLIC_MAPBOX_DISABLE_TRANSITIONS),
37
31
  useTestAssets: viteenv(import.meta.env.VITE_PUBLIC_USE_TEST_ASSETS),
38
- enableAnalytics: viteenv(import.meta.env.VITE_PUBLIC_ENABLE_ANALYTICS),
39
- analyticsScriptUrl: viteenv(import.meta.env.VITE_PUBLIC_ANALYTICS_SCRIPT_URL),
40
32
  AUTH: viteenv(import.meta.env.VITE_AUTH),
41
33
  enableDevTools: viteenv(import.meta.env.VITE_ENABLE_DEV_TOOLS),
42
34
  checkLoginIframe: viteenv(import.meta.env.VITE_PUBLIC_CHECK_LOGIN_IFRAME),
@@ -17,12 +17,13 @@ import { analyzer } from 'vite-bundle-analyzer'
17
17
  import svgr from 'vite-plugin-svgr'
18
18
  import tsconfigPaths from 'vite-tsconfig-paths'
19
19
  const dirname = typeof __dirname === 'undefined' ? path.dirname(fileURLToPath(import.meta.url)) : __dirname
20
+ const isE2EMode = process.env.VITE_PUBLIC_USE_TEST_ASSETS === 'true'
20
21
 
21
22
  // More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
22
23
 
23
24
  export default defineConfig({
24
25
  server: {
25
- open: true,
26
+ open: !isE2EMode,
26
27
  host: '127.0.0.1',
27
28
  port: 3000,
28
29
  allowedHosts: ['app.postxl.com', 'host.docker.internal'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postxl/generators",
3
- "version": "1.16.0",
3
+ "version": "1.17.1",
4
4
  "description": "Code generators for PXL - generates backend, frontend, Prisma schemas, and more",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -46,8 +46,8 @@
46
46
  "exceljs": "^4.4.0",
47
47
  "@postxl/generator": "^1.3.5",
48
48
  "@postxl/schema": "^1.6.0",
49
- "@postxl/ui-components": "^1.5.1",
50
- "@postxl/utils": "^1.3.3"
49
+ "@postxl/utils": "^1.3.3",
50
+ "@postxl/ui-components": "^1.5.2"
51
51
  },
52
52
  "devDependencies": {},
53
53
  "wallaby": {