Gathering detailed insights and metrics for ey-template-vue3-hook
Gathering detailed insights and metrics for ey-template-vue3-hook
Gathering detailed insights and metrics for ey-template-vue3-hook
Gathering detailed insights and metrics for ey-template-vue3-hook
npm install ey-template-vue3-hook
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
此项目基于@ibizlab/template 封装开发,使用 handlerbas.js 引擎对 Ibiz 平台生成的模型进行解析,同时结合基础文件,共同构建生成基于 Vite + Vue + Typescript 的 Vue3 项目。
1、使用提供的 package.json 内容,在指定的文件夹下执行yarn install
安装依赖
2、修改 package.json 中的脚本,指向本地的模型路径地址
1"generate": "template generate -m D:/Project/DemoSys/demo-boot/src/main/resources/static/remotemodel -o ./ --app Web --dev",
3、执行脚本yarn code
,生成项目代码
4、修改代理地址,通过yarn dev
启动项目
如果需要对当前项目中的发布逻辑进行调整,或增加特殊的发布文件,则用户可以本地构建 template 目录,在其中放置模板文件(.hbs),同时修改 package.json 中的 generate 脚本,增加[-t <模板地址>]
选项
1"generate": "template generate -m D:/Project/DemoSys/demo-boot/src/main/resources/static/remotemodel -t ./template -o ./ --app Web --dev",
package.json 内容
1{ 2 "name": "web", 3 "private": true, 4 "version": "0.0.0", 5 "type": "module", 6 "scripts": { 7 "copy": "node copy.cjs", 8 "lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --fix", 9 "format": "prettier --write ./*.{ts,js,cjs} ./**/*.{vue,ts,json} ./src/**/**/*.{vue,ts} ./src/**/**/**/*.{vue,ts}", 10 "dev": "npm run copy && vite --mode development", 11 "build": "npm run copy && vue-tsc --noEmit && vite build", 12 "preview": "vite preview", 13 "fix-memory-limit": "cross-env LIMIT=8102 increase-memory-limit", 14 "generate": "template generate -m ../model -o ./ --app Web --dev", 15 "code": "yarn && npm run generate && npm run format", 16 "test": "vitest", 17 "coverage": "vitest run --coverage" 18 }, 19 "dependencies": { 20 "@amap/amap-jsapi-loader": "^1.0.1", 21 "@ant-design/colors": "^6.0.0", 22 "@ant-design/icons-vue": "^6.1.0", 23 "@fullcalendar/core": "^5.11.2", 24 "@fullcalendar/daygrid": "^5.11.2", 25 "@fullcalendar/interaction": "^5.11.2", 26 "@fullcalendar/list": "^5.11.2", 27 "@fullcalendar/timegrid": "^5.11.2", 28 "@fullcalendar/vue3": "^5.11.2", 29 "@kangc/v-md-editor": "^2.3.15", 30 "@types/lodash": "^4.14.186", 31 "@vue/shared": "^3.2.33", 32 "ant-design-vue": "^3.2.12", 33 "axios": "^0.26.1", 34 "date-fns": "^2.29.3", 35 "dexie": "^3.2.2", 36 "echarts": "5.0.2", 37 "file-saver": "2.0.5", 38 "font-awesome": "^4.7.0", 39 "lodash": "^4.17.21", 40 "mavon-editor": "^2.9.1", 41 "pinia": "2.0.22", 42 "qs": "6.11.0", 43 "qx-util": "0.4.1", 44 "ramda": "^0.28.0", 45 "vue-amap": "^0.5.10", 46 "tinymce": "5.7.1", 47 "vue": "^3.2.37", 48 "vue-i18n": "^9.2.2", 49 "vue-router": "^4.0.14", 50 "vuedraggable": "^4.1.0", 51 "luckyexcel": "^1.0.1", 52 "xlsx": "0.16.9" 53 }, 54 "devDependencies": { 55 "ey-template-vue3": "^2.26.0", 56 "@types/echarts": "^4.9.7", 57 "@types/node": "^17.0.25", 58 "@types/prismjs": "^1.26.0", 59 "@types/qs": "^6.9.7", 60 "@types/ramda": "^0.28.15", 61 "@typescript-eslint/eslint-plugin": "^5.46.0", 62 "@typescript-eslint/parser": "^5.46.0", 63 "@vitejs/plugin-vue": "^3.1.0", 64 "@vitest/coverage-c8": "^0.26.2", 65 "@zougt/vite-plugin-theme-preprocessor": "^1.4.6", 66 "cross-env": "^7.0.3", 67 "eslint": "^8.29.0", 68 "eslint-config-prettier": "^8.5.0", 69 "eslint-plugin-prettier": "^4.2.1", 70 "eslint-plugin-vue": "^9.8.0", 71 "increase-memory-limit": "^1.0.7", 72 "jsdom": "^20.0.3", 73 "cp-file": "9.1.0", 74 "glob": "^8.0.3", 75 "less": "^4.1.2", 76 "prettier": "^2.8.1", 77 "typescript": "^4.6.4", 78 "unplugin-auto-import": "^0.11.2", 79 "unplugin-vue-components": "^0.22.11", 80 "vite": "^3.1.0", 81 "vite-plugin-html": "^2.1.1", 82 "vite-plugin-progress": "^0.0.6", 83 "vitest": "^0.26.2", 84 "@vue/test-utils": "^2.3.1", 85 "vue-tsc": "^1.0.9" 86 } 87}
No vulnerabilities found.
No security vulnerabilities found.