@undp/create-app 0.2.16 → 0.2.18

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/README.md CHANGED
@@ -16,7 +16,8 @@
16
16
  - 🎨 Preconfigured for **UNDP’s Design System**
17
17
  - ⚡️ Optional integration with **Tanstack query** for data fetching
18
18
  - 📊 Optional integration with **@undp/data-viz** for interactive data visualization
19
- - ✨ **ESLint** + **Prettier** preconfigured for consistent code style
19
+ - 🌐 Optional integration with **i18next** for internationalization
20
+ - ✨ **Biome** preconfigured for consistent code style
20
21
 
21
22
  ---
22
23
 
@@ -72,9 +72,11 @@ export function generatePackageJson(config) {
72
72
  const devDependencies = config.framework.includes('vite') ? {
73
73
  "@biomejs/biome": "^2.4.12",
74
74
  "@tailwindcss/postcss": "^4.1.17",
75
+ "@tailwindcss/vite": "^4.3.0",
75
76
  "@types/node": "^24.10.0",
76
77
  "@types/react": "^19.2.7",
77
78
  "@types/react-dom": "^19.2.3",
79
+ "@vitejs/plugin-react": "^6.0.2",
78
80
  "autoprefixer": "^10.4.21",
79
81
  "babel-plugin-react-compiler": "^1.0.0",
80
82
  "postcss": "^8.5.6",
@@ -87,10 +89,8 @@ export function generatePackageJson(config) {
87
89
  "tailwindcss-animate": "^1.0.7",
88
90
  "typescript": "^5.9.3",
89
91
  "typescript-eslint": "^8.46.3",
90
- "vite": "^7.2.2",
91
- "vite-plugin-static-copy": "^3.1.4",
92
- "@vitejs/plugin-react": "^5.1.2",
93
- "@tailwindcss/vite": "^4.1.17"
92
+ "vite": "^8.0.13",
93
+ "vite-plugin-static-copy": "^4.1.0"
94
94
  } : {
95
95
  "@biomejs/biome": "^2.4.12",
96
96
  "@tailwindcss/postcss": "^4.1.17",
@@ -125,14 +125,14 @@ export function generatePackageJson(config) {
125
125
  build: 'next build',
126
126
  start: 'next start',
127
127
  clean: 'rimraf node_modules && rimraf .next && rimraf package-lock.json',
128
- lint: 'npx eslint --fix && npx prettier . --write'
128
+ lint: "biome check . --write"
129
129
  } : {
130
130
  dev: 'vite',
131
131
  build: 'tsc && vite build',
132
132
  preview: 'vite preview',
133
133
  clean: 'rimraf node_modules && rimraf dist && rimraf package-lock.json',
134
134
  'install:build': 'npm install && tsc && vite build',
135
- lint: 'npx eslint --fix && npx prettier . --write'
135
+ lint: "biome check . --write"
136
136
  },
137
137
  dependencies: dependencies,
138
138
  devDependencies: devDependencies
@@ -8,6 +8,6 @@
8
8
  "footnote":"Footnote can be added here",
9
9
  "home":"Home",
10
10
  "query":"Query demo",
11
- "dataLoading_one": "Data loaded successfully. {{length}} element in the query.",
12
- "dataLoading_other": "Data loaded successfully. {{length}} elements in the query."
11
+ "dataLoading_one": "Data loaded successfully. {{count}} element in the query.",
12
+ "dataLoading_other": "Data loaded successfully. {{count}} elements in the query."
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/create-app",
3
- "version": "0.2.16",
3
+ "version": "0.2.18",
4
4
  "description": "UNDP's project scaffolding tool",
5
5
  "bin": {
6
6
  "create-undp-app": "./bin/index.js"
@@ -1,27 +0,0 @@
1
- 'use client';
2
-
3
- import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
4
- import { ReactNode, useState } from 'react';
5
-
6
- export default function TanStackQueryProvider({
7
- children,
8
- }: {
9
- children: ReactNode;
10
- }) {
11
- // Create client only once
12
- const [queryClient] = useState(
13
- () =>
14
- new QueryClient({
15
- defaultOptions: {
16
- queries: {
17
- staleTime: 1000 * 60 * 60 * 24, // how long fetched data is considered “fresh” before it becomes “stale” 🡢 24 hrs
18
- gcTime: 1000 * 60 * 60 * 24, // how long inactive (unused) query data stays in memory before being deleted 🡢 24 hrs
19
- },
20
- },
21
- }),
22
- );
23
-
24
- return (
25
- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
26
- );
27
- }