Skip to content

Commit 70a1db7

Browse files
committed
feat: 0.4.0 features
2 parents d877ac2 + 5520852 commit 70a1db7

File tree

158 files changed

+6639
-620
lines changed

Some content is hidden

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

158 files changed

+6639
-620
lines changed

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
node_modules
22
dist
3-
app-js
4-
app-ts
5-
app-js-tw
6-
app-ts-tw
7-
app-fr
8-
app-fr-tw
3+
app-*
94
my-app
105
.DS_Store
116

README.md

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ To help accelerate the migration away from `create-react-app` we created the `cr
88

99
To maintain compatability with `create-react-app` you can build a new application by running:
1010

11-
| Command | Description |
12-
| -------------------------------------------------------------- | --------------------------- |
13-
| `npx create-tsrouter-app@latest my-app` | Create a new app |
14-
| `npx create-tsrouter-app@latest my-app --template file-router` | Create a new file based app |
15-
| `npx create-tsrouter-app@latest my-app --template typescript` | Create a new TypeScript app |
16-
| `npx create-tsrouter-app@latest my-app --template javascript` | Create a new JavaScript app |
17-
| `npx create-tsrouter-app@latest my-app --tailwind` | Add Tailwind CSS support |
11+
| Command | Description |
12+
| -------------------------------------------------------------------------------- | ------------------------------------------------- |
13+
| `npx create-tsrouter-app@latest my-app` | Create a new app |
14+
| `npx create-tsrouter-app@latest my-app --template file-router` | Create a new file based app |
15+
| `npx create-tsrouter-app@latest my-app --template typescript` | Create a new TypeScript app using the Code Router |
16+
| `npx create-tsrouter-app@latest my-app --tailwind` | Add Tailwind CSS support |
17+
| `npx create-tsrouter-app@latest my-app --framework solid` | Create a Solid app |
18+
| `npx create-tsrouter-app@latest my-app --framework solid --template file-router` | Create a Solid app with file-router |
1819

1920
If you don't specify a project name, the CLI will walk you through an interactive setup process:
2021

@@ -43,8 +44,9 @@ Available options:
4344

4445
- `--template <type>`: Choose between `file-router`, `typescript`, or `javascript`
4546
- `--tailwind`: Enable Tailwind CSS
46-
- `--package-manager`: Specify your preferred package manager (`npm`, `yarn`, `pnpm`, or `bun`)
47+
- `--package-manager`: Specify your preferred package manager (`npm`, `yarn`, `pnpm`, `bun`, or `deno`)
4748
- `--no-git`: Do not initialize a git repository
49+
- `--add-ons`: Enable add-on selection or specify add-ons to install
4850

4951
When using flags, the CLI will display which options were provided and only prompt for the remaining choices.
5052

@@ -88,10 +90,40 @@ Enable Tailwind CSS either through the interactive CLI or by adding the `--tailw
8890

8991
### Package Manager
9092

91-
Choose your preferred package manager (`npm`, `bun`, `yarn`, or `pnpm`) either through the interactive CLI or using the `--package-manager` flag.
93+
Choose your preferred package manager (`npm`, `bun`, `yarn`, `pnpm`, or `deno`) either through the interactive CLI or using the `--package-manager` flag.
9294

9395
Extensive documentation on using the TanStack Router, migrating to a File Base Routing approach, as well as integrating [@tanstack/react-query](https://tanstack.com/query/latest) and [@tanstack/store](https://tanstack.com/store/latest) can be found in the generated `README.md` for your project.
9496

97+
## Add-ons (experimental)
98+
99+
You can enable add-on selection:
100+
101+
```bash
102+
npx create-tsrouter-app@latest --add-ons
103+
```
104+
105+
This will prompt you to select the add-ons you want to enable during application creation.
106+
107+
You can enable specific add-ons directly by adding a comma separated list of add-on names to the `--add-ons` flag. For example:
108+
109+
```bash
110+
npx create-tsrouter-app@latest my-app --add-ons shadcn,tanstack-query
111+
```
112+
113+
You can get a list of all available add-ons by running:
114+
115+
```bash
116+
npx create-tsrouter-app@latest --list-add-ons
117+
```
118+
119+
This will display a list of all available add-ons for React that are compatible with the Code Router.
120+
121+
```bash
122+
npx create-tsrouter-app@latest --list-add-ons --framework solid --template file-router
123+
```
124+
125+
Will get you a list of all available add-ons for Solid that are compatible with the File Router.
126+
95127
# Contributing
96128

97129
Check out the [Contributing](CONTRIBUTING.md) guide.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"start": "tsc && node dist/index.js",
1010
"test": "npm run test:lint",
1111
"cipublish": "node scripts/publish.js",
12-
"test:lint": "eslint ./src"
12+
"test:lint": "eslint ./src",
13+
"mcp": "tsc && npx @modelcontextprotocol/inspector dist/index.js --mcp"
1314
},
1415
"repository": {
1516
"type": "git",
@@ -31,9 +32,13 @@
3132
"packageManager": "[email protected]",
3233
"dependencies": {
3334
"@clack/prompts": "^0.10.0",
35+
"@modelcontextprotocol/sdk": "^1.6.0",
36+
"chalk": "^5.4.1",
3437
"commander": "^13.1.0",
3538
"ejs": "^3.1.10",
36-
"execa": "^9.5.2"
39+
"execa": "^9.5.2",
40+
"prettier": "^3.5.0",
41+
"zod": "^3.24.2"
3742
},
3843
"devDependencies": {
3944
"@tanstack/config": "^0.16.2",
@@ -42,7 +47,6 @@
4247
"eslint": "^9.20.0",
4348
"eslint-plugin-react-hooks": "^5.1.0",
4449
"eslint-plugin-unused-imports": "^4.1.4",
45-
"prettier": "^3.5.0",
4650
"typescript": "^5.6.3"
4751
}
4852
}

0 commit comments

Comments
 (0)