English | 中文
# pnpm
pnpm create @tomjs/app
# yarn
yarn create @tomjs/app
# npm
npm create @tomjs/app@latest
Then generate the project based on the prompts.
You can also directly specify the project name, template.
# pnpm
pnpm create @tomjs/app my-app --template vue
# yarn
yarn create @tomjs/app my-app --template vue
# npm 7+, extra double-dash is needed:
npm create @tomjs/app@latest my-app -- --template vue
Parameters:
-
-t --template
: specify the template -
--git
:git repository setting
Support templates:
- vue
- react
- electron-vue
- electron-react
- node
- vscode
- vscode-vue
- vscode-react