@ttt-productions/ui-core 0.1.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.
- package/README.md +53 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# TTT Packages
|
|
2
|
+
|
|
3
|
+
Shared packages for TTT Productions and Q-Sports projects.
|
|
4
|
+
|
|
5
|
+
## Packages
|
|
6
|
+
|
|
7
|
+
- `@ttt/ui-core` - Shared UI components (shadcn-based)
|
|
8
|
+
|
|
9
|
+
## Development
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Install dependencies
|
|
13
|
+
npm install
|
|
14
|
+
|
|
15
|
+
# Build all packages
|
|
16
|
+
npm run build
|
|
17
|
+
|
|
18
|
+
# Clean build artifacts
|
|
19
|
+
npm run clean
|
|
20
|
+
|
|
21
|
+
# Type check
|
|
22
|
+
npm run typecheck
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Publishing
|
|
26
|
+
|
|
27
|
+
Packages are automatically published to npm when you push a version tag:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Update package version(s)
|
|
31
|
+
cd packages/ui-core
|
|
32
|
+
npm version patch # or minor, major
|
|
33
|
+
|
|
34
|
+
# Commit and tag
|
|
35
|
+
git add .
|
|
36
|
+
git commit -m "Release v1.0.1"
|
|
37
|
+
git tag v1.0.1
|
|
38
|
+
git push origin main --tags
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Usage in TTT Productions
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npm install @ttt/ui-core
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
import { Button } from '@ttt/ui-core';
|
|
49
|
+
|
|
50
|
+
export default function MyComponent() {
|
|
51
|
+
return <Button>Click me</Button>;
|
|
52
|
+
}
|
|
53
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ttt-productions/ui-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared UI components for TTT Productions projects",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"clean": "rm -rf dist",
|
|
14
|
+
"typecheck": "tsc --noEmit",
|
|
15
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"react",
|
|
19
|
+
"ui",
|
|
20
|
+
"components",
|
|
21
|
+
"shadcn",
|
|
22
|
+
"ttt"
|
|
23
|
+
],
|
|
24
|
+
"author": "DJ (TTT Productions)",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/ttt-productions/ttt-packages.git",
|
|
29
|
+
"directory": "packages/ui-core"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^19.0.0",
|
|
33
|
+
"react-dom": "^19.0.0"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
37
|
+
"class-variance-authority": "^0.7.0",
|
|
38
|
+
"clsx": "^2.1.1",
|
|
39
|
+
"tailwind-merge": "^2.5.2"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@types/react": "^19.0.0",
|
|
43
|
+
"@types/react-dom": "^19.0.0",
|
|
44
|
+
"react": "^19.2.0",
|
|
45
|
+
"react-dom": "^19.2.0",
|
|
46
|
+
"typescript": "^5.8.3"
|
|
47
|
+
}
|
|
48
|
+
}
|