@undp/create-app 0.1.0 → 0.1.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.
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# 🏗️ UNDP Create App CLI 
|
|
2
|
+
|
|
3
|
+
**`@undp/create-app`** is UNDP’s official **project scaffolding tool** for quickly bootstrapping frontend applications using **React**, **Vite**, and **TypeScript** — complete with sensible defaults for ESLint, Prettier, and UNDP’s Design System.
|
|
4
|
+
|
|
5
|
+
[NPM Package](https://www.npmjs.com/package/@undp/create-app)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🚀 Features
|
|
10
|
+
|
|
11
|
+
- ⚡ **Vite + React + TypeScript + TailwindCSS** setup out of the box
|
|
12
|
+
- 🧱 Preconfigured for UNDP’s Design System
|
|
13
|
+
- 🎨 Optional integrations (TanStack Query, TanStack Router, @undp/data-viz)
|
|
14
|
+
- 🧩 Automatically installs dependencies
|
|
15
|
+
- 🧼 ESLint + Prettier + Vite config ready
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 📦 Installation
|
|
20
|
+
|
|
21
|
+
You don’t need to install it globally — just use **npx**:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx @undp/create-app my-project
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
or install it globally
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install -g @undp/create-app
|
|
31
|
+
create-undp-app my-project
|
|
32
|
+
```
|
package/bin/generateFiles.js
CHANGED
|
@@ -44,7 +44,7 @@ export function generateFiles(config) {
|
|
|
44
44
|
|
|
45
45
|
// Config files
|
|
46
46
|
console.log(chalk.bold.yellow('\n⚙️ Creating configuration and tooling files...'));
|
|
47
|
-
copyTemplate('eslint.config.
|
|
47
|
+
copyTemplate('eslint.config.mjs', 'eslint.config.mjs', ['templates', 'configFiles']);
|
|
48
48
|
copyTemplate('.prettierrc', '.prettierrc', ['templates', 'configFiles']);
|
|
49
49
|
copyTemplate('vite.config.ts', config.addPostCSSScripts ? 'vite.config.ts.txt' : 'viteWithoutPostCss.config.ts.txt', ['templates', 'configFiles']);
|
|
50
50
|
fs.writeFileSync('src/vite-env.d.ts', `/// <reference types="vite/client" />`);
|
package/package.json
CHANGED
|
File without changes
|