vue-cli-plugin-kg

1.2.0ย โ€ขย Publicย โ€ขย Published

vue-cli-plugin-kg

kg plugin for vue-cli

using plugin system to build suyun project, this allows our project to stay up-to-date for the long run. without the need for separate upgrade webpack, babel, and other tools.

full document

Features supported

  • convert pixel unit to rem unit for mobile project
  • deploy project to suyun's server
  • create mock for REST API's
  • global resoure
  • css stylelint
  • css sprites
  • ...

Pre-work

By curl command to save the preset file to a local, new project is created so that subsequent reads

curl -sSL http://git.kg-inc.cn/snippets/16/raw > ~/.vuerc 

Create project

create a project to load a preset file to eliminate the tedious steps to manually select the configuration item

# projectName
vue create --preset kg <projectName>

Update project(created project)

It is recommended to commit your project's current state before running curl, since the command will invoke the plugin's file generator and potentially make changes to your existing files.

curl -sSL http://git.kg-inc.cn/snippets/18/raw | bash

After the command is completed in the command line lists the changes file

Injected Commands

  • vue-cli-service deploy [options]

options

  • --source <specify local directory>
    • e.g. --source dist/sandbox
  • --mode <specify server environment>
    • e.g. --mode online
  • --region <specify region of Aliyun OSS>
    • e.g. --region oss-cn-beijing

Readme

Keywords

Package Sidebar

Install

npm i vue-cli-plugin-kg

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

31 kB

Total Files

26

Last publish

Collaborators

  • hanhanww