cozy-gear
v0.1.17
Published
CRM front end basic service
Downloads
20
Readme
cmp-service
A Vue 2 / Webpack 5 service.
By CRM FE Team.
Architecture
├─ public // static assets.
├─ service // commands and webpack configurations.
├─ src
│ ├─ assets // assets such as images or font files.
│ ├─ components // universal Vue components.
│ └─ pages // pages. !important
│ ├─ page1
│ │ ├─ router // routers config in each page.
│ │ ├─ store // Vuex store modules.
│ │ └─ components // components
│ ├─ page2
│ │ ├─ router // routers config in each page.
│ │ ├─ store // Vuex store modules.
│ │ └─ components // components
TODO
- [x] 更多可操作参数
Commands
# get package from npm
npm i crm-service -D
# first time
npm run init
# Start development server.
npm run dev
"scripts": {
"init": "node_modules/.bin/crm-service init",
"dev": "node_modules/.bin/crm-service development"
}
# Compile production bundle.
npm run build
npm run build:uat
npm run build:staging
npm run build:prod