Skip to content

Commit

Permalink
feat: support create-next-app
Browse files Browse the repository at this point in the history
  • Loading branch information
yrming committed Dec 31, 2023
1 parent 0868d76 commit 53a64c5
Show file tree
Hide file tree
Showing 8 changed files with 375 additions and 158 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Kickstart your project with a Starter Template in VSCode
- [Create Vue](https://github.com/vuejs/create-vue) - The recommended way to start a Vite-powered Vue project.
- [Vitesse](https://github.com/antfu/vitesse) - Opinionated starter template.
- [Vitesse Lite](https://github.com/antfu/vitesse-lite) - Lightweight version of Vitesse.
- [Create Next App](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) - The easiest way to get started with Next.js.
- [Starter TS](https://github.com/antfu/starter-ts) - Starter template for TypeScript library.
- [Vitesse WebExt](https://github.com/antfu/vitesse-webext) - WebExtension Vite Starter Template.
- ...
Expand Down
48 changes: 46 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"publisher": "YRM",
"name": "starter-templates",
"displayName": "Starter Templates",
"version": "0.5.0",
"version": "0.6.0",
"description": "Kickstart your project with a Starter Template in VSCode",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -118,6 +118,50 @@
"scope": "window"
}
}
},
{
"title": "Create Next App(Official)",
"order": 3,
"properties": {
"starterTemplates.createNextApp.needsTypeScript": {
"type": "boolean",
"default": true,
"markdownDescription": "Would you like to use TypeScript?",
"scope": "window"
},
"starterTemplates.createNextApp.needsEslint": {
"type": "boolean",
"default": true,
"markdownDescription": "Would you like to use ESLint?",
"scope": "window"
},
"starterTemplates.createNextApp.needsTailwind": {
"type": "boolean",
"default": true,
"markdownDescription": "Would you like to use Tailwind CSS?",
"scope": "window"
},
"starterTemplates.createNextApp.needsSrcDirectory": {
"type": "boolean",
"default": true,
"markdownDescription": "Would you like to use `src/` directory?",
"scope": "window"
},
"starterTemplates.createNextApp.needsAppRouter": {
"type": "boolean",
"default": true,
"markdownDescription": "Would you like to use App Router? (recommended)",
"scope": "window"
},
"starterTemplates.createNextApp.customizeTheDefaultImportAlias": {
"type": "string",
"default": "@/*",
"pattern": "^.+\\/\\*$",
"minLength": 3,
"description": "What import alias would you like configured? (Import alias must follow the pattern <prefix>/*)",
"scope": "window"
}
}
}
]
},
Expand All @@ -143,7 +187,7 @@
"@vscode/test-electron": "^2.3.8",
"degit": "^2.8.4",
"eslint": "^8.54.0",
"execa": "^5.1.1",
"execa": "^8.0.1",
"nypm": "^0.3.3",
"tsup": "^8.0.1",
"typescript": "^5.3.2",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions resources/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 53a64c5

Please sign in to comment.