qts-vue-cli
TypeScript icon, indicating that this package has built-in type declarations

1.0.10-beta.1 • Public • Published

qts-vue-cli

介绍

qts-vue-cli 基于 vue 的脚手架

安装教程

npm 安装

$ npm i -g qts-vue-cli

yarn 安装

$ yarn global add qts-vue-cli

使用说明

create 创建项目

qts-cli create xxx
// 或者
qts-cli create xxx --dir xx/xx/xx

qts-cli create -h //查看帮助

进入项目

cd xxx
// 或者
cd xx/xx/xx/xxx

启动服务

npm run start

qts-cli serve -h //查看帮助

打包

npm run build

qts-cli build -h //查看帮助

上传服务器

npm run deploy

// package.json

{
  "deploy": "qts-cli deploy dist/** -c deployConfig.js -r /opt/webapps/xxx/app/static"
}

// deployConfig.js
module.export = {
  host: "118.31.250.124",
  user: "root",
  pass: "3Henniubi",
  port: 22
};

查看帮助

qts-cli -h
// 或者
qts-cli create/serve/build -h

查看版本

qts-cli -V

提交说明

会在代码提交之前 检查暂存区

对暂存区执行 lintpretty,并对改动 git add

并且验证 commit msg 的格式:

'type(scope?): some message';

请参考:commitlint

type:

  • 'build' 改变了 build 工具
  • 'ci'
  • 'chore' 构建过程或辅助工具的变动
  • 'docs' 文档
  • 'feat' 新功能(feature)
  • 'fix' 修补 bug
  • 'perf' 提升性能
  • 'refactor' 重构代码
  • 'revert' 回滚
  • 'style' 格式
  • 'test' 增加测试

Readme

Keywords

none

Package Sidebar

Install

npm i qts-vue-cli

Weekly Downloads

0

Version

1.0.10-beta.1

License

MIT

Unpacked Size

65.4 kB

Total Files

71

Last publish

Collaborators

  • li13