mirror of
https://gitee.com/maimengcloud/xm-ui-web.git
synced 2025-12-30 10:12:26 +00:00
优化
This commit is contained in:
7
install-datav-patch.js
Normal file
7
install-datav-patch.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const path = require('path')
|
||||
const fs = require('fs')
|
||||
|
||||
const libPackagePath = path.join(__dirname, 'src/plugins/datav/patch/package.json')
|
||||
const modulesPackagePath = path.join(__dirname, 'node_modules/@dataview/datav-vue3/package.json')
|
||||
|
||||
fs.writeFileSync(modulesPackagePath, fs.readFileSync(libPackagePath))
|
||||
@@ -22,7 +22,8 @@
|
||||
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
|
||||
"lint:format": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
||||
"lint:style": "stylelint --fix \"./src/**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
||||
"lint:lint-staged": "lint-staged -c "
|
||||
"lint:lint-staged": "lint-staged -c ",
|
||||
"postinstall": "node install-datav-patch.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dataview/datav-vue3": "0.0.0-test.1672506674342",
|
||||
|
||||
77
src/plugins/datav/patch/package.json
Normal file
77
src/plugins/datav/patch/package.json
Normal file
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"name": "@dataview/datav-vue3",
|
||||
"version": "0.0.0-test.1672506674342",
|
||||
"description": "Vue3 Large screen data display component library",
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./es/index.mjs",
|
||||
"types": "./es/index.d.ts",
|
||||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
"dev": "ts-node scripts/dev/init.ts && vite --config scripts/dev/vite.config.ts",
|
||||
"clear": "rm es cjs umd -rf",
|
||||
"build": "yarn clear && yarn build:es && yarn build:umd",
|
||||
"build:es": "vite build --config scripts/build/vite.config.ts",
|
||||
"build:umd": "vite build --config scripts/build/vite.config.umd.ts",
|
||||
"check": "yarn lint && yarn lint:type && yarn lint:format",
|
||||
"lint": "eslint --fix --ext .ts,.tsx src",
|
||||
"lint:type": "ts-node docs/.vuepress/init && tsc --project ./tsconfig.json --noEmit",
|
||||
"lint:format": "prettier --check \"src/**/*.ts\" \"src/**/*.tsx\" \"src/**/*.less\"",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.tsx\" \"src/**/*.less\"",
|
||||
"test:run": "vitest run",
|
||||
"docs:dev": "ts-node docs/.vuepress/init && vuepress dev docs",
|
||||
"docs:build": "yarn build:es && vuepress build docs",
|
||||
"version:test": "ts-node scripts/release/version-generator --type=test"
|
||||
},
|
||||
"files": [
|
||||
"es",
|
||||
"lib",
|
||||
"umd"
|
||||
],
|
||||
"keywords": [
|
||||
"datav"
|
||||
],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "17.0.2",
|
||||
"@commitlint/config-conventional": "17.0.2",
|
||||
"@types/less": "^3.0.3",
|
||||
"@types/lodash-es": "^4.17.6",
|
||||
"@types/node": "^18.7.18",
|
||||
"@types/prettier": "^2.7.2",
|
||||
"@types/semver": "^7.3.13",
|
||||
"@typescript-eslint/eslint-plugin": "^5.36.1",
|
||||
"@typescript-eslint/parser": "^5.36.1",
|
||||
"@vitejs/plugin-vue": "^3.1.0",
|
||||
"@vitejs/plugin-vue-jsx": "^2.0.0",
|
||||
"@vue/eslint-config-prettier": "^7.0.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.1",
|
||||
"@vuepress/client": "^2.0.0-beta.60",
|
||||
"eslint": "^8.23.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-vue": "^9.4.0",
|
||||
"execa": "5.1.1",
|
||||
"fs-extra": "^11.1.0",
|
||||
"glob": "^8.0.3",
|
||||
"husky": "^8.0.1",
|
||||
"less": "^4.1.3",
|
||||
"ora": "5.4.1",
|
||||
"prettier": "^2.7.1",
|
||||
"semver": "^7.3.8",
|
||||
"ts-morph": "^17.0.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.8.3",
|
||||
"vite": "^4.0.0",
|
||||
"vite-plugin-dts": "^1.7.1",
|
||||
"vue": "^3.2.39",
|
||||
"vuepress": "^2.0.0-beta.60"
|
||||
},
|
||||
"dependencies": {
|
||||
"@jiaminghi/color": "^0.1.1",
|
||||
"classnames": "^2.3.2",
|
||||
"lodash-es": "^4.17.21"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": ">=3.2.0"
|
||||
}
|
||||
}
|
||||
8
src/plugins/datav/patch/ install-datav-patch.js
Normal file
8
src/plugins/datav/patch/ install-datav-patch.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const path = require('path')
|
||||
const fs = require('fs')
|
||||
|
||||
const libPackagePath = path.join(__dirname, 'src/datav/patch/package.json')
|
||||
const modulesPackagePath = path.join(__dirname, 'node_modules/@dataview/datav-vue3/package.json')
|
||||
|
||||
fs.writeFileSync(modulesPackagePath, fs.readFileSync(libPackagePath))
|
||||
|
||||
Reference in New Issue
Block a user