dm5-cli

    1.0.21 • Public • Published

    dm5-cli

    The official CLI of dm5

    How to install

    npm install dm5-cli -g

    or

    yarn global add dm5-cli

    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

    only one component in your project:

    windows:

    dm5-cli start --path .\node_modules\.bin\vue-cli-service --target lib --name antlist --dest dist_dm5 --ui ant-design-vue --alias antd

    mac:

    dm5-cli start --path ./node_modules/.bin/vue-cli-service --target lib --name antlist --dest dist_dm5 --ui ant-design-vue --alias antd

    more components in your project:

    windows:

    dm5-cli start --path .\node_modules\.bin\vue-cli-service --target lib --name antlist --dest dist_dm5 --ui ant-design-vue --alias antd --file ./src/components/antd-list.vue

    mac:

    dm5-cli start --path ./node_modules/.bin/vue-cli-service --target lib --name antlist --dest dist_dm5 --ui ant-design-vue --alias antd --file ./src/components/antd-list.vue

    Keywords

    Install

    npm i dm5-cli

    DownloadsWeekly Downloads

    129

    Version

    1.0.21

    License

    ISC

    Unpacked Size

    16.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar