@jtl-software/cloud-app-template-frontend-react 0.0.13 → 0.0.15

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @jtl/cloud-app-template-frontend-react
2
2
 
3
+ ## 0.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#48](https://github.com/jtl-software/cloud-apps-cli/pull/48) [`5b1b22b`](https://github.com/jtl-software/cloud-apps-cli/commit/5b1b22b6943ec7e37cf701305b0da9eb846c906a) Thanks [@tobilen](https://github.com/tobilen)! - Add link to proceed to the hub. Open the app when run with npm run dev
8
+
9
+ ## 0.0.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [#46](https://github.com/jtl-software/cloud-apps-cli/pull/46) [`53e27ae`](https://github.com/jtl-software/cloud-apps-cli/commit/53e27ae5fa378292191a8fa30769b8275ba51ed9) Thanks [@tobilen](https://github.com/tobilen)! - Pin to newest Node LTS Version
14
+
3
15
  ## 0.0.13
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@jtl-software/cloud-app-template-frontend-react",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
+ "engines": {
9
+ "node": ">=24"
10
+ },
8
11
  "description": "React + Vite + Tailwind frontend template for JTL Platform cloud apps",
9
12
  "cloudAppTemplate": {
10
13
  "type": "frontend",
package/vite.config.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { defineConfig } from 'vite';
2
- import react from '@vitejs/plugin-react-swc';
3
- import tailwindcss from '@tailwindcss/vite';
4
- import path from 'path';
5
- import { createRequire } from 'node:module';
1
+ import { defineConfig } from "vite";
2
+ import react from "@vitejs/plugin-react-swc";
3
+ import tailwindcss from "@tailwindcss/vite";
4
+ import path from "path";
5
+ import { createRequire } from "node:module";
6
6
 
7
7
  const require = createRequire(import.meta.url);
8
8
 
@@ -10,9 +10,13 @@ const require = createRequire(import.meta.url);
10
10
  export default defineConfig({
11
11
  server: {
12
12
  port: 3004,
13
+ // Vite delegates to the OS opener (`open`/`start`/`xdg-open`), which
14
+ // reuses an existing tab on the dev URL when the browser supports it
15
+ // (Chrome, Safari, Edge) instead of opening a new one.
16
+ open: true,
13
17
  proxy: {
14
- '/api': {
15
- target: 'http://localhost:3005',
18
+ "/api": {
19
+ target: "http://localhost:3005",
16
20
  changeOrigin: true,
17
21
  },
18
22
  },
@@ -20,7 +24,10 @@ export default defineConfig({
20
24
  plugins: [tailwindcss(), react()],
21
25
  resolve: {
22
26
  alias: {
23
- '/assets': path.join(path.dirname(require.resolve('@jtl-software/platform-ui-react')), 'assets'),
27
+ "/assets": path.join(
28
+ path.dirname(require.resolve("@jtl-software/platform-ui-react")),
29
+ "assets",
30
+ ),
24
31
  },
25
32
  },
26
33
  });