Skip to content

Commit 8269e76

Browse files
committed
fix: initial add experimentation
2 parents 9daab9e + f6124a4 commit 8269e76

File tree

115 files changed

+5729
-1058
lines changed

Some content is hidden

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

115 files changed

+5729
-1058
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: 🤔 Feature Requests & Questions
4-
url: https://github.com/tanstack/router/discussions
4+
url: https://github.com/tanstack/create-tsrouter-app/discussions
55
about: Please ask and answer questions here.
66
- name: 💬 Community Chat
77
url: https://discord.gg/mQd7egN

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
fetch-depth: 0
3030
- name: Setup Tools
3131
uses: tanstack/config/.github/setup@main
32+
- name: Test
33+
run: pnpm test
3234
- name: Build
3335
run: pnpm build
3436
- name: Publish

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Create React App for TanStack Router
22

3-
This CLI applications builds Tanstack Router applications that are the functional equivalent of [Create React App](https://create-react-app.dev/).
3+
This CLI application builds Tanstack Router applications that are the functional equivalent of [Create React App](https://create-react-app.dev/).
44

55
To help accelerate the migration away from `create-react-app` we created the `create-tsrouter-app` CLI which is a plug-n-play replacement for CRA.
66

@@ -30,6 +30,7 @@ This will start an interactive CLI that guides you through the setup process, al
3030
- TypeScript support
3131
- Tailwind CSS integration
3232
- Package manager
33+
- Toolchain
3334
- Git initialization
3435

3536
## Command Line Options
@@ -45,6 +46,7 @@ Available options:
4546
- `--template <type>`: Choose between `file-router`, `typescript`, or `javascript`
4647
- `--tailwind`: Enable Tailwind CSS
4748
- `--package-manager`: Specify your preferred package manager (`npm`, `yarn`, `pnpm`, `bun`, or `deno`)
49+
- `--toolchain`: Specify your toolchain solution for formatting/linting (`biome`)
4850
- `--no-git`: Do not initialize a git repository
4951
- `--add-ons`: Enable add-on selection or specify add-ons to install
5052

@@ -94,6 +96,12 @@ Choose your preferred package manager (`npm`, `bun`, `yarn`, `pnpm`, or `deno`)
9496

9597
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.
9698

99+
### Toolchain
100+
101+
Choose your preferred solution for formatting and linting either through the interactive CLI or using the `--toolchain` flag.
102+
103+
Setting this flag to `biome` will configure it as your toolchain of choice, adding a `biome.json` to the root of the project. Consult the [biome documentation](https://biomejs.dev/guides/getting-started/) for further customization.
104+
97105
## Add-ons (experimental)
98106

99107
You can enable add-on selection:

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"scripts": {
88
"build": "tsc",
99
"start": "tsc && node dist/index.js",
10-
"test": "npm run test:lint",
10+
"test": "npm run test:lint && vitest --run",
11+
"test:watch": "vitest",
1112
"cipublish": "node scripts/publish.js",
1213
"test:lint": "eslint ./src",
1314
"mcp": "tsc && npx @modelcontextprotocol/inspector dist/index.js --mcp"
@@ -37,12 +38,16 @@
3738
"commander": "^13.1.0",
3839
"ejs": "^3.1.10",
3940
"execa": "^9.5.2",
41+
"express": "^4.21.2",
42+
"memfs": "^4.17.0",
4043
"prettier": "^3.5.0",
44+
"vitest": "^3.0.8",
4145
"zod": "^3.24.2"
4246
},
4347
"devDependencies": {
4448
"@tanstack/config": "^0.16.2",
4549
"@types/ejs": "^3.1.5",
50+
"@types/express": "^5.0.0",
4651
"@types/node": "^22.13.4",
4752
"eslint": "^9.20.0",
4853
"eslint-plugin-react-hooks": "^5.1.0",

0 commit comments

Comments
 (0)