@zhuyingfe/vue-cli-plugin-zhuying

1.0.0ย โ€ขย Publicย โ€ขย Published

@zhuyingfe/vue-cli-plugin-zhuying

zhuying plugin for vue-cli

using plugin system to build zhuying 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 zhuying'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://106.12.78.51/snippets/1/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 zhuying <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://106.12.78.51/snippets/2/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 @zhuyingfe/vue-cli-plugin-zhuying

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

170 kB

Total Files

28

Last publish

Collaborators

  • limian
  • angusc