Nutella with Pepperoni and Mushrooms

    dm5-cli

    1.0.42 • Public • Published

    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

    Keywords

    Install

    npm i dm5-cli

    DownloadsWeekly Downloads

    2

    Version

    1.0.42

    License

    ISC

    Unpacked Size

    2.53 MB

    Total Files

    10

    Last publish

    Collaborators

    • zhr85210078
    • alicejzheng