crm-service

0.1.35 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i crm-service

Weekly Downloads

18

Version

0.1.35

License

none

Unpacked Size

33.9 kB

Total Files

27

Last publish

Collaborators

  • dreamboat