Skip to content

Commit d72efe7

Browse files
committed
feat: make Kit Framework templates the default
1 parent f4feb0f commit d72efe7

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"create-solana-dapp": minor
3+
---
4+
5+
Make Kit Framework templates the default choice instead of Gill.
6+
7+
- Kit Framework is now the first and recommended option
8+
- Removed Node.js template option
9+
- Web3.js templates moved to bottom and marked as deprecated
10+
- Updated `--minimal` flag to use Kit's `nextjs` template

src/utils/get-args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { runVersionCheck } from './run-version-check'
1515
import { Template } from './template'
1616
import { PackageManager } from './vendor/package-manager'
1717

18-
const minimalTemplateName = 'gill-next-tailwind-minimal'
18+
const minimalTemplateName = 'nextjs-anchor'
1919

2020
export async function getArgs(argv: string[], app: AppInfo, pm: PackageManager = 'npm'): Promise<GetArgsResult> {
2121
// Get the result from the command line

src/utils/get-menu-config.ts

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,11 @@ import { MenuConfig } from './template-schema'
44
export function getMenuConfig(): MenuConfig {
55
return [
66
{
7-
description: 'A React framework by Vercel',
8-
groups: ['templates', 'legacy', 'gill', 'web3js'],
9-
id: 'next',
10-
keywords: ['nextjs'],
11-
name: 'Next.js',
12-
},
13-
{
14-
description: "JavaScript runtime built on Chrome's V8 engine",
15-
groups: ['templates', 'legacy', 'gill', 'web3js'],
16-
id: 'node',
17-
keywords: ['node'],
18-
name: 'Node.js',
19-
},
20-
{
21-
description: 'React with Vite and React Router',
22-
groups: ['templates', 'legacy', 'gill', 'web3js'],
23-
id: 'react-vite',
24-
keywords: ['react', 'vite'],
25-
name: 'React with Vite',
7+
description: 'Recommended - Uses @solana/kit and @solana/react-hooks',
8+
groups: ['kit'],
9+
id: 'kit',
10+
keywords: [],
11+
name: 'Kit Framework',
2612
},
2713
{
2814
description: 'Solana Mobile Templates based on Expo',
@@ -32,11 +18,18 @@ export function getMenuConfig(): MenuConfig {
3218
name: 'Solana Mobile',
3319
},
3420
{
35-
description: 'Templates created by the community (unsupported)',
21+
description: 'Templates created by the community',
3622
groups: ['community'],
3723
id: 'community',
3824
keywords: [],
3925
name: 'Community',
4026
},
27+
{
28+
description: 'Deprecated - Uses @solana/web3.js',
29+
groups: ['web3js'],
30+
id: 'web3js',
31+
keywords: [],
32+
name: 'Web3.js',
33+
},
4134
]
4235
}

0 commit comments

Comments
 (0)