crm-service
v0.1.35
Published
CRM front end basic service
Downloads
4
Readme
cmp-service
A Vue 2 / Webpack 5 service.
By CRM FE Team.
Architecture
Default as below, You may change the src dir via crm.config.js
├─ public // default template. (index.html can be set separately for each folder under src/pages)
├─ crm.config.js // service configuration.
├─ src
│ ├─ assets // assets such as images or font files.
│ ├─ components // reusable 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