@undp/create-app 0.7.0 → 0.9.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 (26) hide show
  1. package/bin/generateFiles/generatePackageJson.js +10 -6
  2. package/bin/generateFiles/generateStylesCss.js +2 -1
  3. package/bin/templates/next/auth/biome.json +7 -2
  4. package/bin/templates/next/basic/biome.json +7 -2
  5. package/bin/templates/vite/basic/biome.json +7 -2
  6. package/bin/templates/vite/basic/src/styles/style.css +3 -2
  7. package/bin/templates/vite/basic/tsconfig.json +1 -1
  8. package/bin/templates/vite/query/biome.json +7 -2
  9. package/bin/templates/vite/query/tsconfig.json +1 -1
  10. package/bin/templates/vite/query+router/biome.json +7 -2
  11. package/bin/templates/vite/query+router/tsconfig.json +1 -1
  12. package/bin/templates/vite/router/biome.json +7 -2
  13. package/bin/templates/vite/router/src/styles/style.css +3 -2
  14. package/bin/templates/viteWithLanguage/basic/biome.json +7 -2
  15. package/bin/templates/viteWithLanguage/basic/src/styles/style.css +3 -2
  16. package/bin/templates/viteWithLanguage/basic/tsconfig.json +1 -1
  17. package/bin/templates/viteWithLanguage/query/biome.json +7 -2
  18. package/bin/templates/viteWithLanguage/query/src/styles/style.css +3 -2
  19. package/bin/templates/viteWithLanguage/query/tsconfig.json +1 -1
  20. package/bin/templates/viteWithLanguage/query+router/biome.json +7 -2
  21. package/bin/templates/viteWithLanguage/query+router/src/styles/style.css +3 -3
  22. package/bin/templates/viteWithLanguage/query+router/tsconfig.json +1 -1
  23. package/bin/templates/viteWithLanguage/router/biome.json +7 -2
  24. package/bin/templates/viteWithLanguage/router/src/styles/style.css +3 -2
  25. package/bin/templates/viteWithLanguage/router/tsconfig.json +1 -1
  26. package/package.json +1 -1
@@ -15,7 +15,7 @@ export function generatePackageJson(config) {
15
15
  const typeScriptVer = `^${getLatestVersion("typescript")}`;
16
16
  const zustandVer = `^${getLatestVersion("zustand")}`;
17
17
  const tailwindcssVer = `^${getLatestVersion("tailwindcss")}`;
18
- const twAnimateCssVer = `^${getLatestVersion("tw-animate-css")}`;
18
+ const twAnimateCssVer = `^${getLatestVersion("tailwindcss-animate")}`;
19
19
  const dependenciesTemp =
20
20
  config.libraries.includes("peer") &&
21
21
  config.libraries.includes("@undp/data-viz")
@@ -27,7 +27,7 @@ export function generatePackageJson(config) {
27
27
  "dom-to-svg": "^0.12.2",
28
28
  "file-saver": "^2.0.5",
29
29
  handlebars: "^4.7.8",
30
- "maplibre-gl": "^5.16.0",
30
+ "maplibre-gl": "^6.9.0",
31
31
  marked: "^18.0.9",
32
32
  "math-expression-evaluator": "^2.0.7",
33
33
  pmtiles: "^4.3.0",
@@ -35,14 +35,12 @@ export function generatePackageJson(config) {
35
35
  "react-dom": "^19.2.3",
36
36
  "react-globe.gl": "^2.37.0",
37
37
  three: "^0.182.0",
38
- "tw-animate-css": twAnimateCssVer,
39
38
  zustand: zustandVer,
40
39
  }
41
40
  : {
42
41
  "@undp/design-system-react": designSystemVer,
43
42
  react: "^19.2.3",
44
43
  "react-dom": "^19.2.3",
45
- "tw-animate-css": twAnimateCssVer,
46
44
  zustand: zustandVer,
47
45
  };
48
46
 
@@ -86,7 +84,7 @@ export function generatePackageJson(config) {
86
84
  );
87
85
  const devDependencies = config.framework.includes("vite")
88
86
  ? {
89
- "@biomejs/biome": "^2.4.12",
87
+ "@biomejs/biome": "^2.5.15",
90
88
  "@tailwindcss/postcss": "^4.1.17",
91
89
  "@tailwindcss/vite": "^4.3.0",
92
90
  "@types/node": "^24.10.0",
@@ -98,13 +96,16 @@ export function generatePackageJson(config) {
98
96
  "postcss-nested": "^7.0.2",
99
97
  rimraf: "^6.1.0",
100
98
  "rollup-plugin-visualizer": "^6.0.5",
99
+ "tailwind-animate": "^0.2.10",
100
+ "tailwind-merge": "^3.4.0",
101
101
  tailwindcss: tailwindcssVer,
102
+ "tailwindcss-animate": twAnimateCssVer,
102
103
  typescript: typeScriptVer,
103
104
  vite: "^8.0.13",
104
105
  "vite-plugin-static-copy": "^4.1.0",
105
106
  }
106
107
  : {
107
- "@biomejs/biome": "^2.4.12",
108
+ "@biomejs/biome": "^2.5.15",
108
109
  "@tailwindcss/postcss": "^4.1.17",
109
110
  "@types/node": "^24.10.0",
110
111
  "@types/react": "^19.2.7",
@@ -113,7 +114,10 @@ export function generatePackageJson(config) {
113
114
  "postcss-nested": "^7.0.2",
114
115
  rimraf: "^6.1.0",
115
116
  "rollup-plugin-visualizer": "^6.0.5",
117
+ "tailwind-animate": "^0.2.10",
118
+ "tailwind-merge": "^3.4.0",
116
119
  tailwindcss: tailwindcssVer,
120
+ "tailwindcss-animate": twAnimateCssVer,
117
121
  typescript: typeScriptVer,
118
122
  };
119
123
  const sortedDevDependencies = Object.fromEntries(
@@ -1,7 +1,8 @@
1
1
  export function generateStylesCss(dataViz) {
2
2
  return `
3
3
  @import 'tailwindcss';
4
- @import '@undp/design-system-react/style.css';${
4
+ @import '@undp/design-system-react/style.css';
5
+ @import '@undp/design-system-react/theme.css';${
5
6
  dataViz
6
7
  ? `
7
8
  @import '@undp/data-viz/style.css';`
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,2 +1,3 @@
1
- @import 'tailwindcss';
2
- @import '@undp/design-system-react/style.css';
1
+ @import "tailwindcss";
2
+ @import "@undp/design-system-react/style.css";
3
+ @import "@undp/design-system-react/theme.css";
@@ -24,6 +24,6 @@
24
24
  }
25
25
  },
26
26
  "files": [],
27
- "include": ["src", "tailwind.config.js"],
27
+ "include": ["src"],
28
28
  "references": [{ "path": "./tsconfig.node.json" }]
29
29
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -24,6 +24,6 @@
24
24
  }
25
25
  },
26
26
  "files": [],
27
- "include": ["src", "tailwind.config.js"],
27
+ "include": ["src"],
28
28
  "references": [{ "path": "./tsconfig.node.json" }]
29
29
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -24,6 +24,6 @@
24
24
  }
25
25
  },
26
26
  "files": [],
27
- "include": ["src", "tailwind.config.js"],
27
+ "include": ["src"],
28
28
  "references": [{ "path": "./tsconfig.node.json" }]
29
29
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,2 +1,3 @@
1
- @import 'tailwindcss';
2
- @import '@undp/design-system-react/style.css';
1
+ @import "tailwindcss";
2
+ @import "@undp/design-system-react/style.css";
3
+ @import "@undp/design-system-react/theme.css";
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,2 +1,3 @@
1
- @import 'tailwindcss';
2
- @import '@undp/design-system-react/style.css';
1
+ @import "tailwindcss";
2
+ @import "@undp/design-system-react/style.css";
3
+ @import "@undp/design-system-react/theme.css";
@@ -24,6 +24,6 @@
24
24
  }
25
25
  },
26
26
  "files": [],
27
- "include": ["src", "tailwind.config.js"],
27
+ "include": ["src"],
28
28
  "references": [{ "path": "./tsconfig.node.json" }]
29
29
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,2 +1,3 @@
1
- @import 'tailwindcss';
2
- @import '@undp/design-system-react/style.css';
1
+ @import "tailwindcss";
2
+ @import "@undp/design-system-react/style.css";
3
+ @import "@undp/design-system-react/theme.css";
@@ -24,6 +24,6 @@
24
24
  }
25
25
  },
26
26
  "files": [],
27
- "include": ["src", "tailwind.config.js"],
27
+ "include": ["src"],
28
28
  "references": [{ "path": "./tsconfig.node.json" }]
29
29
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,3 +1,3 @@
1
- @import '@undp/design-system-react/style.css';
2
- @import 'tailwindcss';
3
- @config '../../tailwind.config.js';
1
+ @import "tailwindcss";
2
+ @import "@undp/design-system-react/style.css";
3
+ @import "@undp/design-system-react/theme.css";
@@ -24,6 +24,6 @@
24
24
  }
25
25
  },
26
26
  "files": [],
27
- "include": ["src", "tailwind.config.js"],
27
+ "include": ["src"],
28
28
  "references": [{ "path": "./tsconfig.node.json" }]
29
29
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -19,7 +19,7 @@
19
19
  "linter": {
20
20
  "enabled": true,
21
21
  "rules": {
22
- "recommended": true,
22
+ "preset": "recommended",
23
23
  "suspicious": {
24
24
  "noExplicitAny": "warn",
25
25
  "noUnassignedVariables": "warn",
@@ -66,5 +66,10 @@
66
66
  "organizeImports": "on"
67
67
  }
68
68
  }
69
+ },
70
+ "css": {
71
+ "parser": {
72
+ "tailwindDirectives": true
73
+ }
69
74
  }
70
75
  }
@@ -1,2 +1,3 @@
1
- @import '@undp/design-system-react/style.css';
2
- @import 'tailwindcss';
1
+ @import "tailwindcss";
2
+ @import "@undp/design-system-react/style.css";
3
+ @import "@undp/design-system-react/theme.css";
@@ -24,6 +24,6 @@
24
24
  }
25
25
  },
26
26
  "files": [],
27
- "include": ["src", "tailwind.config.js"],
27
+ "include": ["src"],
28
28
  "references": [{ "path": "./tsconfig.node.json" }]
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/create-app",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "UNDP's project scaffolding tool",
5
5
  "bin": {
6
6
  "create-undp-app": "./bin/index.js"