Skip to content

Commit 73461fc

Browse files
committed
feat(ui-kit): initialize UI kit CLI config with basic setup and entry file
1 parent 6817871 commit 73461fc

File tree

6 files changed

+101
-0
lines changed

6 files changed

+101
-0
lines changed

internal/ui-kit/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

internal/ui-kit/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

internal/ui-kit/package.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "ui-kit",
3+
"type": "module",
4+
"version": "0.0.1",
5+
"private": true,
6+
"description": "UI Primitives Template",
7+
"publishConfig": {
8+
"registry": "https://registry.npmjs.org/",
9+
"main": "./dist/index.js",
10+
"module": "./dist/index.js",
11+
"types": "./dist/index.d.ts",
12+
"exports": {
13+
".": {
14+
"import": {
15+
"types": "./dist/index.d.ts",
16+
"default": "./dist/index.js"
17+
},
18+
"require": {
19+
"types": "./dist/index.d.ts",
20+
"default": "./dist/index.js"
21+
}
22+
}
23+
}
24+
},
25+
"sideEffects": false,
26+
"exports": {
27+
".": "./src/index.ts"
28+
},
29+
"main": "src/index.ts",
30+
"module": "src/index.ts",
31+
"types": "src/index.ts",
32+
"files": ["dist"],
33+
"scripts": {
34+
"build": "tsdown"
35+
},
36+
"peerDependencies": {
37+
"@types/react": "*",
38+
"@types/react-dom": "*",
39+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
40+
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
41+
},
42+
"peerDependenciesMeta": {
43+
"@types/react": {
44+
"optional": true
45+
},
46+
"@types/react-dom": {
47+
"optional": true
48+
}
49+
},
50+
"devDependencies": {
51+
"@types/react": "19.1.0",
52+
"@types/react-dom": "19.1.1",
53+
"react": "19.1.0",
54+
"react-dom": "19.1.1",
55+
"tsdown": "0.12.9",
56+
"typescript": "5.8.2"
57+
}
58+
}

internal/ui-kit/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function fn() {
2+
return '';
3+
}

internal/ui-kit/tsconfig.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"jsx": "preserve",
5+
"jsxImportSource": "vue",
6+
"lib": ["DOM", "ESNext"],
7+
"baseUrl": ".",
8+
"module": "ESNext",
9+
"moduleResolution": "bundler",
10+
"resolveJsonModule": true,
11+
"types": ["node"],
12+
"strict": true,
13+
"strictNullChecks": true,
14+
"noUnusedLocals": true,
15+
"declaration": true,
16+
"emitDeclarationOnly": true,
17+
"outDir": "./dist",
18+
"allowSyntheticDefaultImports": true,
19+
"esModuleInterop": true,
20+
"forceConsistentCasingInFileNames": true,
21+
"isolatedModules": true,
22+
"verbatimModuleSyntax": true,
23+
"skipLibCheck": true
24+
},
25+
"include": ["src/**/*"],
26+
"exclude": ["node_modules", "dist"]
27+
}

internal/ui-kit/tsdown.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'tsdown';
2+
3+
export default defineConfig({
4+
clean: true,
5+
dts: true,
6+
entry: ['src/index.ts'],
7+
minify: false,
8+
platform: 'neutral',
9+
shims: true,
10+
sourcemap: false
11+
});

0 commit comments

Comments
 (0)