dm5-cli
| Install | |
|---|---|
npm install dm5-cli |
|
| Latest Version: | 1.0.42 |
| License: | ISC |
| Last Updated: | Apr 22, 2022 |
| Links: | npm |
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
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 | |
| 1.0.37 | ISC | |
| 1.0.36 | ISC | |
| 1.0.35 | ISC | |
| 1.0.34 | ISC | |
| 1.0.33 | ISC | |
| 1.0.32 | ISC | |
| 1.0.31 | ISC | |
| 1.0.30 | ISC | |
| 1.0.29 | ISC | |
| 1.0.28 | ISC | |
| 1.0.27 | ISC | |
| 1.0.26 | ISC | |
| 1.0.25 | ISC | |
| 1.0.24 | ISC | |
| 1.0.23 | ISC | |
| 1.0.22 | ISC | |
| 1.0.21 | ISC | |
| 1.0.20 | ISC | |
| 1.0.19 | ISC | |
| 1.0.18 | ISC | |
| 1.0.17 | ISC | |
| 1.0.16 | ISC | |
| 1.0.15 | ISC | |
| 1.0.14 | ISC | |
| 1.0.13 | ISC |
Showing the latest 30 of 43. See every release on npm