Skip to content

Commit 10a18d4

Browse files
committed
chore: example custom cli
1 parent c839c9b commit 10a18d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1143
-123
lines changed

cli/create-start-app/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ cli({
1212
appName: 'TanStack Start',
1313
forcedMode: 'file-router',
1414
forcedAddOns: ['start'],
15+
craCompatible: true,
1516
})

cli/create-tanstack-app/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ cli({
1111
name: 'create-tanstack-app',
1212
appName: 'TanStack',
1313
defaultTemplate: 'file-router',
14+
craCompatible: true,
1415
})

cli/create-tanstack/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ cli({
1111
name: 'create-tanstack',
1212
appName: 'TanStack',
1313
defaultTemplate: 'file-router',
14+
craCompatible: true,
1415
})

cli/create-tsrouter-app/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ registerSolid()
1010
cli({
1111
name: 'create-tsrouter-app',
1212
appName: 'TanStack',
13+
craCompatible: true,
1314
})
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { component$ } from '@builder.io/qwik'
2+
import type { DocumentHead } from '@builder.io/qwik-city'
3+
import { ThumbsUpIcon } from 'qwik-feather-icons'
4+
5+
export default component$(() => {
6+
return (
7+
<>
8+
<h1 class="text-3xl font-bold underline p-5">Hi 👋</h1>
9+
<div>
10+
<ThumbsUpIcon />
11+
</div>
12+
</>
13+
)
14+
})
15+
16+
export const head: DocumentHead = {
17+
title: 'Feather Icons',
18+
meta: [
19+
{
20+
name: 'description',
21+
content: 'Feather Icons',
22+
},
23+
],
24+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Feather Icons",
3+
"description": "Add Feather Icons to your application.",
4+
"phase": "add-on",
5+
"modes": ["default"],
6+
"type": "add-on",
7+
"link": "https://github.com/egmaleta/qwik-feather-icons",
8+
"routes": [
9+
{
10+
"url": "/demo-feather",
11+
"name": "Feather Icons",
12+
"path": "src/routes/demo-feather/index.tsx",
13+
"jsName": "FeatherIconsDemo"
14+
}
15+
]
16+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"devDependencies": {
3+
"qwik-feather-icons": "^1.2.1"
4+
}
5+
}
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "create-qwik-app",
3+
"version": "0.15.2",
4+
"description": "CTA Qwik Builder",
5+
"bin": "./dist/index.js",
6+
"type": "module",
7+
"scripts": {
8+
"build": "tsc",
9+
"dev": "tsc --watch",
10+
"start": "node dist/index.js"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/TanStack/create-router-app.git"
15+
},
16+
"homepage": "https://tanstack.com/router",
17+
"funding": {
18+
"type": "github",
19+
"url": "https://github.com/sponsors/tannerlinsley"
20+
},
21+
"keywords": [
22+
"qwik",
23+
"create-tanstack-app",
24+
"tanstack",
25+
"create-qwik-app"
26+
],
27+
"author": "Jack Herrington <[email protected]>",
28+
"license": "MIT",
29+
"packageManager": "[email protected]",
30+
"dependencies": {
31+
"@tanstack/cta-cli": "workspace:*",
32+
"@tanstack/cta-engine": "workspace:*"
33+
},
34+
"devDependencies": {
35+
"@types/node": "^22.13.4",
36+
"typescript": "^5.6.3"
37+
}
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
**/*.log
2+
**/.DS_Store
3+
*.
4+
.vscode/settings.json
5+
.history
6+
.yarn
7+
bazel-*
8+
bazel-bin
9+
bazel-out
10+
bazel-qwik
11+
bazel-testlogs
12+
dist
13+
dist-dev
14+
lib
15+
lib-types
16+
etc
17+
external
18+
node_modules
19+
temp
20+
tsc-out
21+
tsdoc-metadata.json
22+
target
23+
output
24+
rollup.config.js
25+
build
26+
.cache
27+
.vscode
28+
.rollup.cache
29+
dist
30+
tsconfig.tsbuildinfo
31+
vite.config.ts
32+
*.spec.tsx
33+
*.spec.ts
34+
.netlify
35+
pnpm-lock.yaml
36+
package-lock.json
37+
yarn.lock
38+
server

0 commit comments

Comments
 (0)