@uf-cli/create-ufront
v0.1.24
Published
```bash Create a new Vite project in TypeScript. With no arguments, start the CLI in interactive mode.
Downloads
4
Readme
create-ufront
Create a new Vite project in TypeScript.
With no arguments, start the CLI in interactive mode.
Options:
-t, --template NAME use a specific template 选择模版
-h, --help display this help message 帮助信息
-v, --version display the version number 显示版本号
-c, --ci initialize a CI-specific project 初始化时是否添加CI项目
--contianer-port set the container port for the project 设置容器端口
--add-ci add ci file in exist project 添加CI配置到已存在项目
Available templates:
vue-ts vue
vis-vue-ts screen
nuxt-ts siteScaffolding Your First Vite Project
With NPM:
npm create @uf-cli/ufront@latestWith Yarn:
yarn create @uf-cli/ufrontWith PNPM:
pnpm create @uf-cli/ufront# npm 7+, extra double-dash is needed:
npm create @uf-cli/ufront@latest my-vue-app -- --template vue-ts --ci --container-port 8022
# yarn
yarn create @uf-cli/ufront my-vue-app --template vue-ts --ci --container-port 8022
# pnpm
pnpm create @uf-cli/ufront my-vue-app --template vue-ts --ci --container-port 8022
# Bun
bun create @uf-cli/ufront my-vue-app --template vue-ts --ci --container-port 8022Currently supported template presets include:
vue-tsvis-vue-tsnuxt-tscustom-nuxt-ts
starting a project from a template
cd my-project
npm install
npm run devgitlab-ci
# add ci files to exist project
npm create @uf-cli/ufront -- --add-ci