@zhuyingfe/vue-cli-plugin-zhuying
v1.0.0
Published
🚚 zhuying plugin for vue-cli
Downloads
6
Readme
@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.
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
- e.g.
--mode <specify server environment>
- e.g.
--mode online
- e.g.
--region <specify region of Aliyun OSS>
- e.g.
--region oss-cn-beijing
- e.g.