0.1.1 • Published 2 years ago
nycomponent v0.1.1
webcomponent
初始化项目:
npm init vite
# 等价于
npm create vite
# 使用yarn
yarn create vite
# 使用pnpm
pnpm create vite
直接创建vue项目模板
# npm 6.x
npm create vite vue-project-name --template vue
# npm 7+ 多一个--
npm create vite vue-project-name -- --template vue
# yarn
yarn create vite vue-project-name --template vue
# pnpm
pnpm create vite vue-project-name -- --template vue
直接创建包含typescript的vue项目模板
# npm 6.x
npm create vite vue-project-name --template vue-ts
# npm 7+ 多一个--
npm create vite vue-project-name -- --template vue-ts
# yarn
yarn create vite vue-project-name --template vue-ts
# pnpm
pnpm create vite vue-project-name -- --template vue-ts
Project setup
yarn install
Compiles and hot-reloads for development
yarn serve
Compiles and minifies for production
yarn build
Lints and fixes files
yarn lint