@undp/create-app 0.2.14 → 0.2.16
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/bin/generateFiles/generatePackageJson.js +12 -30
- package/bin/generateFiles/generateViteConfig.js +2 -4
- package/bin/index.js +1 -1
- package/bin/promptUser.js +21 -2
- package/bin/templates/next/auth/biome.json +67 -0
- package/bin/templates/next/basic/biome.json +67 -0
- package/bin/templates/vite/basic/biome.json +67 -0
- package/bin/templates/vite/query/biome.json +67 -0
- package/bin/templates/vite/query/src/App.tsx +1 -1
- package/bin/templates/vite/query+router/biome.json +67 -0
- package/bin/templates/vite/query+router/src/App.tsx +1 -1
- package/bin/templates/vite/query+router/src/components/Header.tsx +1 -1
- package/bin/templates/vite/query+router/src/routes/queryDemo.tsx +5 -5
- package/bin/templates/vite/router/biome.json +67 -0
- package/bin/templates/vite/router/src/App.tsx +1 -1
- package/bin/templates/vite/router/src/routes/about.tsx +5 -5
- package/bin/templates/viteWithLanguage/basic/README.md +75 -0
- package/bin/templates/viteWithLanguage/basic/biome.json +67 -0
- package/bin/templates/viteWithLanguage/basic/index.html +13 -0
- package/bin/templates/viteWithLanguage/basic/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/basic/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/basic/src/App.tsx +95 -0
- package/bin/templates/viteWithLanguage/basic/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/basic/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/basic/src/locales/en/common.json +6 -0
- package/bin/templates/viteWithLanguage/basic/src/locales/es/common.json +6 -0
- package/bin/templates/viteWithLanguage/basic/src/locales/fr/common.json +6 -0
- package/bin/templates/viteWithLanguage/basic/src/main.tsx +15 -0
- package/bin/templates/viteWithLanguage/basic/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/basic/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/basic/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/basic/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/basic/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/basic/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/basic/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/basic/vite.config.ts +58 -0
- package/bin/templates/viteWithLanguage/query/README.md +80 -0
- package/bin/templates/viteWithLanguage/query/biome.json +67 -0
- package/bin/templates/viteWithLanguage/query/index.html +13 -0
- package/bin/templates/viteWithLanguage/query/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Tanstack-logo.png +0 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/query/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query/src/App.tsx +125 -0
- package/bin/templates/viteWithLanguage/query/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query/src/constants.ts +16 -0
- package/bin/templates/viteWithLanguage/query/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/query/src/integration/tanstack-query.tsx +28 -0
- package/bin/templates/viteWithLanguage/query/src/locales/en/common.json +8 -0
- package/bin/templates/viteWithLanguage/query/src/locales/es/common.json +8 -0
- package/bin/templates/viteWithLanguage/query/src/locales/fr/common.json +8 -0
- package/bin/templates/viteWithLanguage/query/src/main.tsx +24 -0
- package/bin/templates/viteWithLanguage/query/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/query/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/query/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/query/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/query/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/query/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/query/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/query/vite.config.ts +58 -0
- package/bin/templates/viteWithLanguage/query+router/README.md +111 -0
- package/bin/templates/viteWithLanguage/query+router/biome.json +67 -0
- package/bin/templates/viteWithLanguage/query+router/index.html +13 -0
- package/bin/templates/viteWithLanguage/query+router/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Tanstack-logo.png +0 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/query+router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query+router/src/App.tsx +75 -0
- package/bin/templates/viteWithLanguage/query+router/src/Icons.tsx +74 -0
- package/bin/templates/viteWithLanguage/query+router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/query+router/src/components/Footer.tsx +16 -0
- package/bin/templates/viteWithLanguage/query+router/src/components/Header.tsx +70 -0
- package/bin/templates/viteWithLanguage/query+router/src/constants.ts +16 -0
- package/bin/templates/viteWithLanguage/query+router/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/query+router/src/integration/tanstack-query.tsx +28 -0
- package/bin/templates/viteWithLanguage/query+router/src/locales/en/common.json +13 -0
- package/bin/templates/viteWithLanguage/query+router/src/locales/es/common.json +13 -0
- package/bin/templates/viteWithLanguage/query+router/src/locales/fr/common.json +14 -0
- package/bin/templates/viteWithLanguage/query+router/src/main.tsx +95 -0
- package/bin/templates/viteWithLanguage/query+router/src/routes/queryDemo.tsx +78 -0
- package/bin/templates/viteWithLanguage/query+router/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/query+router/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/query+router/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/query+router/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/query+router/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/query+router/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/query+router/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/query+router/vite.config.ts +58 -0
- package/bin/templates/viteWithLanguage/router/README.md +106 -0
- package/bin/templates/viteWithLanguage/router/biome.json +67 -0
- package/bin/templates/viteWithLanguage/router/index.html +13 -0
- package/bin/templates/viteWithLanguage/router/public/favicon.ico +0 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Tailwind_CSS_Logo.svg +1 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Tanstack-logo.png +0 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Vitejs-logo.svg +15 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/Zustand-logo.svg +266 -0
- package/bin/templates/viteWithLanguage/router/public/imgs/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/router/src/App.tsx +74 -0
- package/bin/templates/viteWithLanguage/router/src/Icons.tsx +74 -0
- package/bin/templates/viteWithLanguage/router/src/assets/undp-logo-blue.svg +1 -0
- package/bin/templates/viteWithLanguage/router/src/components/Footer.tsx +16 -0
- package/bin/templates/viteWithLanguage/router/src/components/Header.tsx +70 -0
- package/bin/templates/viteWithLanguage/router/src/constants.ts +16 -0
- package/bin/templates/viteWithLanguage/router/src/i18n.ts +31 -0
- package/bin/templates/viteWithLanguage/router/src/locales/en/common.json +11 -0
- package/bin/templates/viteWithLanguage/router/src/locales/es/common.json +11 -0
- package/bin/templates/viteWithLanguage/router/src/locales/fr/common.json +11 -0
- package/bin/templates/viteWithLanguage/router/src/main.tsx +89 -0
- package/bin/templates/viteWithLanguage/router/src/routes/about.tsx +58 -0
- package/bin/templates/viteWithLanguage/router/src/stores/counter.ts +23 -0
- package/bin/templates/viteWithLanguage/router/src/styles/fonts.css +213 -0
- package/bin/templates/viteWithLanguage/router/src/styles/style.css +3 -0
- package/bin/templates/viteWithLanguage/router/src/vite-env.d.ts +1 -0
- package/bin/templates/viteWithLanguage/router/tailwind.config.js +7 -0
- package/bin/templates/viteWithLanguage/router/tsconfig.json +29 -0
- package/bin/templates/viteWithLanguage/router/tsconfig.node.json +9 -0
- package/bin/templates/viteWithLanguage/router/vite.config.ts +58 -0
- package/package.json +1 -1
- package/bin/templates/next/auth/.prettierrc +0 -10
- package/bin/templates/next/auth/eslint.config.mjs +0 -103
- package/bin/templates/next/basic/.prettierrc +0 -10
- package/bin/templates/next/basic/eslint.config.mjs +0 -103
- package/bin/templates/vite/basic/.prettierrc +0 -10
- package/bin/templates/vite/basic/eslint.config.mjs +0 -97
- package/bin/templates/vite/query/.prettierrc +0 -10
- package/bin/templates/vite/query/eslint.config.mjs +0 -97
- package/bin/templates/vite/query+router/.prettierrc +0 -10
- package/bin/templates/vite/query+router/eslint.config.mjs +0 -97
- package/bin/templates/vite/router/.prettierrc +0 -10
- package/bin/templates/vite/router/eslint.config.mjs +0 -97
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
|
|
3
|
+
"vcs": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"clientKind": "git",
|
|
6
|
+
"useIgnoreFile": true
|
|
7
|
+
},
|
|
8
|
+
"files": {
|
|
9
|
+
"ignoreUnknown": true,
|
|
10
|
+
"includes": ["**/*.{js,jsx,ts,tsx,css}"]
|
|
11
|
+
},
|
|
12
|
+
"formatter": {
|
|
13
|
+
"enabled": true,
|
|
14
|
+
"indentStyle": "space",
|
|
15
|
+
"indentWidth": 2,
|
|
16
|
+
"lineWidth": 100,
|
|
17
|
+
"bracketSameLine": false
|
|
18
|
+
},
|
|
19
|
+
"linter": {
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"rules": {
|
|
22
|
+
"recommended": true,
|
|
23
|
+
"suspicious": {
|
|
24
|
+
"noExplicitAny": "warn",
|
|
25
|
+
"noUnassignedVariables": "warn",
|
|
26
|
+
"noUnusedExpressions": "warn",
|
|
27
|
+
"noConsole": {
|
|
28
|
+
"level": "warn",
|
|
29
|
+
"options": {
|
|
30
|
+
"allow": ["assert", "error", "info", "warn"]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"noArrayIndexKey": "error"
|
|
34
|
+
},
|
|
35
|
+
"a11y": {
|
|
36
|
+
"useAltText": "error",
|
|
37
|
+
"useValidAnchor": "error"
|
|
38
|
+
},
|
|
39
|
+
"style": {
|
|
40
|
+
"useConst": "error",
|
|
41
|
+
"useSelfClosingElements": "error",
|
|
42
|
+
"useConsistentCurlyBraces": "error",
|
|
43
|
+
"useImportType": "warn"
|
|
44
|
+
},
|
|
45
|
+
"correctness": {
|
|
46
|
+
"noUnusedVariables": "error",
|
|
47
|
+
"noUndeclaredVariables": "error"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"javascript": {
|
|
52
|
+
"formatter": {
|
|
53
|
+
"quoteStyle": "single",
|
|
54
|
+
"jsxQuoteStyle": "single",
|
|
55
|
+
"semicolons": "always",
|
|
56
|
+
"trailingCommas": "all"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"assist": {
|
|
60
|
+
"enabled": true,
|
|
61
|
+
"actions": {
|
|
62
|
+
"source": {
|
|
63
|
+
"organizeImports": "on"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/undp-logo-blue.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>My Vite + Tailwind + UNDP App</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 54 33"><g clip-path="url(#prefix__clip0)"><path fill="#38bdf8" fill-rule="evenodd" d="M27 0c-7.2 0-11.7 3.6-13.5 10.8 2.7-3.6 5.85-4.95 9.45-4.05 2.054.513 3.522 2.004 5.147 3.653C30.744 13.09 33.808 16.2 40.5 16.2c7.2 0 11.7-3.6 13.5-10.8-2.7 3.6-5.85 4.95-9.45 4.05-2.054-.513-3.522-2.004-5.147-3.653C36.756 3.11 33.692 0 27 0zM13.5 16.2C6.3 16.2 1.8 19.8 0 27c2.7-3.6 5.85-4.95 9.45-4.05 2.054.514 3.522 2.004 5.147 3.653C17.244 29.29 20.308 32.4 27 32.4c7.2 0 11.7-3.6 13.5-10.8-2.7 3.6-5.85 4.95-9.45 4.05-2.054-.513-3.522-2.004-5.147-3.653C23.256 19.31 20.192 16.2 13.5 16.2z" clip-rule="evenodd"/></g><defs><clipPath id="prefix__clip0"><path fill="#fff" d="M0 0h54v32.4H0z"/></clipPath></defs></svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
|
|
3
|
+
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop stop-color="#41D1FF"/>
|
|
7
|
+
<stop offset="1" stop-color="#BD34FE"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
|
|
10
|
+
<stop stop-color="#FFEA83"/>
|
|
11
|
+
<stop offset="0.0833333" stop-color="#FFDD35"/>
|
|
12
|
+
<stop offset="1" stop-color="#FFA800"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|