create-table-app 0.0.2 → 0.0.3
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/package.json +11 -10
- package/templates/default/package.json +5 -5
- package/templates/default/src/App.tsx +6 -0
- package/templates/default/src/app/movie/[id]/page.tsx +2 -2
- package/templates/default/src/app/page.tsx +2 -2
- package/templates/default/src/main.tsx +2 -13
- package/templates/default/src/routes.ts +6 -0
- package/templates/default/src/vite-env.d.ts +1 -0
- package/templates/default/tsconfig.json +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-table-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Create a new Table.js Smart TV app in one command",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-table-app": "./dist/index.mjs"
|
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
"dist",
|
|
10
10
|
"templates"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsup",
|
|
14
|
-
"dev": "tsup --watch",
|
|
15
|
-
"typecheck": "tsc --noEmit",
|
|
16
|
-
"clean": "rm -rf dist"
|
|
17
|
-
},
|
|
18
12
|
"keywords": [
|
|
19
13
|
"smart-tv",
|
|
20
14
|
"create-app",
|
|
@@ -38,10 +32,17 @@
|
|
|
38
32
|
"prompts": "^2.4.2"
|
|
39
33
|
},
|
|
40
34
|
"devDependencies": {
|
|
41
|
-
"@table/tsconfig": "workspace:*",
|
|
42
35
|
"@types/fs-extra": "^11.0.4",
|
|
43
36
|
"@types/prompts": "^2.4.9",
|
|
44
37
|
"tsup": "^8.5.1",
|
|
45
|
-
"typescript": "^6.0.2"
|
|
38
|
+
"typescript": "^6.0.2",
|
|
39
|
+
"@table-js/platform": "0.0.3",
|
|
40
|
+
"@table-js/tsconfig": "0.0.3"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"dev": "tsup --watch",
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"clean": "rm -rf dist"
|
|
46
47
|
}
|
|
47
|
-
}
|
|
48
|
+
}
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@table-js/core": "latest",
|
|
14
14
|
"@table-js/ui": "latest",
|
|
15
|
-
"react": "^19.2.
|
|
16
|
-
"react-dom": "^19.2.
|
|
15
|
+
"react": "^19.2.3",
|
|
16
|
+
"react-dom": "^19.2.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@table-js/
|
|
20
|
-
"@types/react": "^19.2.
|
|
21
|
-
"@types/react-dom": "^19.2.
|
|
19
|
+
"@table-js/platform": "latest",
|
|
20
|
+
"@types/react": "^19.2.3",
|
|
21
|
+
"@types/react-dom": "^19.2.3",
|
|
22
22
|
"@vitejs/plugin-react": "^6.0.1",
|
|
23
23
|
"@tailwindcss/vite": "^4.2.2",
|
|
24
24
|
"tailwindcss": "^4.2.2",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Focusable, useParams, useRouter } from '@table/core'
|
|
1
|
+
import { Focusable, useParams, useRouter } from '@table-js/core'
|
|
2
2
|
|
|
3
3
|
interface MovieParams {
|
|
4
4
|
id: string
|
|
@@ -26,4 +26,4 @@ export default function MoviePage() {
|
|
|
26
26
|
<h1 className="text-5xl font-bold">Movie #{id}</h1>
|
|
27
27
|
</div>
|
|
28
28
|
)
|
|
29
|
-
}
|
|
29
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Focusable, FocusGroup, useRouter } from '@table/core'
|
|
1
|
+
import { Focusable, FocusGroup, useRouter } from '@table-js/core'
|
|
2
2
|
|
|
3
3
|
const movies = [
|
|
4
4
|
{ id: '1', title: 'Inception' },
|
|
@@ -34,4 +34,4 @@ export default function HomePage() {
|
|
|
34
34
|
</FocusGroup>
|
|
35
35
|
</div>
|
|
36
36
|
)
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
import { StrictMode } from 'react'
|
|
2
2
|
import { createRoot } from 'react-dom/client'
|
|
3
|
-
import {
|
|
3
|
+
import { App } from './App'
|
|
4
4
|
import './styles/globals.css'
|
|
5
5
|
|
|
6
|
-
const routes = defineRoutes([
|
|
7
|
-
{
|
|
8
|
-
path: '/',
|
|
9
|
-
component: () => import('./app/page'),
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
path: '/movie/[id]',
|
|
13
|
-
component: () => import('./app/movie/[id]/page'),
|
|
14
|
-
},
|
|
15
|
-
])
|
|
16
|
-
|
|
17
6
|
createRoot(document.getElementById('root')!).render(
|
|
18
7
|
<StrictMode>
|
|
19
|
-
<
|
|
8
|
+
<App />
|
|
20
9
|
</StrictMode>,
|
|
21
10
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "@table-js/tsconfig/base.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"outDir": "./dist",
|
|
5
|
-
"rootDir": "./src",
|
|
6
3
|
"target": "ES2022",
|
|
7
|
-
"
|
|
4
|
+
"module": "ESNext",
|
|
8
5
|
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"exactOptionalPropertyTypes": true,
|
|
10
|
+
"noUncheckedIndexedAccess": true,
|
|
11
|
+
"noImplicitReturns": true,
|
|
12
|
+
"noFallthroughCasesInSwitch": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"skipLibCheck": true,
|
|
9
15
|
"allowImportingTsExtensions": true,
|
|
10
16
|
"noEmit": true
|
|
11
17
|
},
|
|
12
18
|
"include": ["src", "vite.config.ts"]
|
|
13
|
-
}
|
|
19
|
+
}
|