feat: estructura base OpenSpec + Skills + arquitectura limpia Capacitor+Dextie
This commit is contained in:
23
packages/ui/package.json
Normal file
23
packages/ui/package.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "@toldo/ui",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@toldo/core": "workspace:*",
|
||||
"@toldo/services": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "~6.0.3"
|
||||
}
|
||||
}
|
||||
8
packages/ui/src/components/Button.ts
Normal file
8
packages/ui/src/components/Button.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export interface ButtonProps {
|
||||
label: string;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export function createButton(props: ButtonProps): string {
|
||||
return `<button ${props.disabled ? 'disabled' : ''}>${props.label}</button>`;
|
||||
}
|
||||
1
packages/ui/src/index.ts
Normal file
1
packages/ui/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './components/Button';
|
||||
18
packages/ui/tsconfig.json
Normal file
18
packages/ui/tsconfig.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"declaration": true,
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"paths": {
|
||||
"@toldo/core": ["../core/src"],
|
||||
"@toldo/services": ["../services/src"]
|
||||
}
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user