1.0.0 • Published 5 years ago
ooojs v1.0.0
ooojs
how to install?
npm install -g ooojsCreate a project
Currently ooojs only supports vue, cli has already configured it for you
- Common directory structure
- axios
- vue-router
- vuex
- vue.config.js Create project
ooojs create <project>[^project]: Your project name For example: ooojs create demoAutomatically pull the z-vue-template project template, automatically open http://localhost:8080/, start the project
Create components
ooojs addcpn <component>[^component]: Your component name For example: ooojs addcpn HelloWoldCreate a page
Routes are automatically configured during page creation
ooojs addpage <profile>[^profile]: Your page name For example: ooojs addpage profileooojs
如何安装?
npm install -g ooojs创建项目
目前ooojs仅支持vue,cli已经帮你配置了
- 常用的目录结构
- axios
- vue-router
- vuex
- vue.config.js 创建项目
ooojs create <project>[^project]: 你的项目名称 例如: ooojs create demo自动拉取z-vue-template项目模板,自动打开 http://localhost:8080/、启动项目
创建组件
ooojs addcpn <component>[^component]: 你的组件名称 例如: ooojs addcpn HelloWold创建页面
创建页面过程中会自动配置路由
ooojs addpage <profile>[^profile]: 你的页面名称 例如: ooojs addpage profile1.0.0
5 years ago