dm5-cli

dm5-cli
1,419
Install
npm install dm5-cli
Latest Version:1.0.42
License:ISC
Last Updated:Apr 22, 2022
Links: npm
Maintainer: zhr85210078

dm5-cli

The official CLI of dm5

How to install

npm install dm5-cli -g

or

yarn global add dm5-cli

Help

dm5-cli start -h

or

dm5-cli start --help

Options

  Options:
  -p, --path                    executive file directory (exp: `.\node_modules\.bin\vue-cli-service`)
  -t, --target                  build target library file (exp: `lib`)
  -n, --name                    name in library mode (exp: `**`)
  -d, --dest                    specify output directory (exp: `dist_dm5`)
  -u, --ui                      Vue UI library (exp: `element-ui`/`ant-design-vue`)
  -a, --alias                   Vue UI library alias (exp: `element`/`antd`)
  -f, --file                    User components (Optional) (exp: `./src/components/**.vue`)

Exp

dm5-cli start -n dm5_vuedemo

dm5-cli start -n dm5_vuetify -u vuetify

dm5-cli start -n dm5_element -u element-ui

dm5-cli start -n dm5_antd -u ant-design-vue

dm5-cli start -n dm5_iview -u iview

dm5-cli start -n dm5_d3 -u d3

dm5-cli start -n dm5_vant -u vant -a vant

dm5-cli start -n dm5_vuetify -u vuetify -f ./src/components/**.vue

Question

1.If you find Node.JS Error- process.env.NODE_TLS_REJECT_UNAUTHORIZED

Please execute the following instructions

set NODE_TLS_REJECT_UNAUTHORIZED=0

2.If your want to detach resource file, please add the following configuration in Vue.config.js.

configureWebpack: {
    optimization: {
      splitChunks: {
        cacheGroups: {
          vendors: {
            name: "vendors",
            test: /[\\/]node_modules[\\/]/,
            chunks: "all",
            priority: 100
          }
        }
      }
    }
  }

3.mixin.js download

In your main.js folder add code

import './mixin';

4.How to use methods in mixin.js

Firstly, replace APP_KEY and SECURITY_KEY with true values in mixin.js

Besides, add the following code to every Vue file in the local component project

inject: window.schemabase ? ['model', 'callApi', 'togglePeoplePicker','$dm'] : [],

Start up

Related Packages

@mingto/mt-cli

明途脚手架工具

2,568
cli
mgo-cli

create a vue3 webapp by demand

2,096
cli
@vue/babel-preset-app

babel-preset-app for vue-cli

28,669,765 29,510
@vue/cli-service

local service for vue-cli projects

28,072,157 29,510
@vue/cli

Command line interface for rapid Vue.js development

2,080,617 29,510

Version History

Version Released License
1.0.42 ISC
1.0.41 ISC
1.0.40 ISC
1.0.39 ISC
1.0.38 ISC