|
|
@ -22,25 +22,18 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
"scripts": { |
|
|
|
"scripts": { |
|
|
|
"commit": "czg", |
|
|
|
"commit": "czg", |
|
|
|
"bootstrap": "pnpm install", |
|
|
|
|
|
|
|
"serve": "pnpm dev", |
|
|
|
|
|
|
|
"dev": "vite", |
|
|
|
"dev": "vite", |
|
|
|
"front": "vite --mode front", |
|
|
|
|
|
|
|
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts", |
|
|
|
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts", |
|
|
|
"build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode test && esno ./build/script/postBuild.ts", |
|
|
|
"build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode test && esno ./build/script/postBuild.ts", |
|
|
|
"build:static": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode static && esno ./build/script/postBuild.ts", |
|
|
|
"build:static": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode static && esno ./build/script/postBuild.ts", |
|
|
|
"build:no-cache": "pnpm store prune && pnpm build", |
|
|
|
"build:no-cache": "pnpm store prune && pnpm build", |
|
|
|
"report": "cross-env REPORT=true pnpm build", |
|
|
|
"report": "cross-env REPORT=true pnpm build", |
|
|
|
"type:check": "vue-tsc --noEmit --skipLibCheck", |
|
|
|
"type:check": "vue-tsc --noEmit --skipLibCheck", |
|
|
|
"preview": "pnpm build && vite preview", |
|
|
|
"preview": "vite preview", |
|
|
|
"preview:dist": "vite preview", |
|
|
|
|
|
|
|
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite", |
|
|
|
|
|
|
|
"clean:lib": "rimraf node_modules", |
|
|
|
|
|
|
|
"lint": "eslint .", |
|
|
|
"lint": "eslint .", |
|
|
|
"lint:fix": "eslint . --fix", |
|
|
|
"lint:fix": "eslint . --fix", |
|
|
|
"lint:stylelint": "stylelint \"**/*.{vue,css,less,scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/", |
|
|
|
"lint:stylelint": "stylelint \"**/*.{vue,css,less,scss}\" --fix --cache --cache-location node_modules/.cache/stylelint/", |
|
|
|
"lint:lint-staged": "lint-staged", |
|
|
|
"lint:lint-staged": "lint-staged", |
|
|
|
"reinstall": "rimraf pnpm-lock.yaml && rimraf node_modules && npm run bootstrap", |
|
|
|
|
|
|
|
"prepare": "husky install", |
|
|
|
"prepare": "husky install", |
|
|
|
"gen:icon": "esno ./build/generate/icon/index.ts" |
|
|
|
"gen:icon": "esno ./build/generate/icon/index.ts" |
|
|
|
}, |
|
|
|
}, |
|
|
@ -82,7 +75,7 @@ |
|
|
|
"xlsx": "^0.18.5" |
|
|
|
"xlsx": "^0.18.5" |
|
|
|
}, |
|
|
|
}, |
|
|
|
"devDependencies": { |
|
|
|
"devDependencies": { |
|
|
|
"@antfu/eslint-config": "^1.1.1", |
|
|
|
"@antfu/eslint-config": "^2.6.1", |
|
|
|
"@commitlint/cli": "^18.4.1", |
|
|
|
"@commitlint/cli": "^18.4.1", |
|
|
|
"@commitlint/config-conventional": "^18.4.0", |
|
|
|
"@commitlint/config-conventional": "^18.4.0", |
|
|
|
"@iconify/json": "^2.2.141", |
|
|
|
"@iconify/json": "^2.2.141", |
|
|
@ -104,7 +97,7 @@ |
|
|
|
"cz-git": "^1.7.1", |
|
|
|
"cz-git": "^1.7.1", |
|
|
|
"czg": "^1.7.1", |
|
|
|
"czg": "^1.7.1", |
|
|
|
"dotenv": "^16.3.1", |
|
|
|
"dotenv": "^16.3.1", |
|
|
|
"eslint": "^8.53.0", |
|
|
|
"eslint": "^8.56.0", |
|
|
|
"esno": "^4.0.0", |
|
|
|
"esno": "^4.0.0", |
|
|
|
"fs-extra": "^11.1.1", |
|
|
|
"fs-extra": "^11.1.1", |
|
|
|
"husky": "^8.0.3", |
|
|
|
"husky": "^8.0.3", |
|
|
@ -115,7 +108,6 @@ |
|
|
|
"postcss": "^8.4.31", |
|
|
|
"postcss": "^8.4.31", |
|
|
|
"postcss-html": "^1.5.0", |
|
|
|
"postcss-html": "^1.5.0", |
|
|
|
"postcss-less": "^6.0.0", |
|
|
|
"postcss-less": "^6.0.0", |
|
|
|
"prettier": "^3.1.0", |
|
|
|
|
|
|
|
"rimraf": "^5.0.5", |
|
|
|
"rimraf": "^5.0.5", |
|
|
|
"rollup": "^4.4.0", |
|
|
|
"rollup": "^4.4.0", |
|
|
|
"rollup-plugin-visualizer": "^5.9.2", |
|
|
|
"rollup-plugin-visualizer": "^5.9.2", |
|
|
@ -143,21 +135,12 @@ |
|
|
|
"*.{js,jsx,ts,tsx}": [ |
|
|
|
"*.{js,jsx,ts,tsx}": [ |
|
|
|
"eslint --fix" |
|
|
|
"eslint --fix" |
|
|
|
], |
|
|
|
], |
|
|
|
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [ |
|
|
|
|
|
|
|
"prettier --write--parser json" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"package.json": [ |
|
|
|
|
|
|
|
"prettier --write" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"*.vue": [ |
|
|
|
"*.vue": [ |
|
|
|
"eslint --fix", |
|
|
|
"eslint --fix", |
|
|
|
"stylelint --fix" |
|
|
|
"stylelint --fix" |
|
|
|
], |
|
|
|
], |
|
|
|
"*.{scss,less,styl,html}": [ |
|
|
|
"*.{scss,less,styl,html}": [ |
|
|
|
"stylelint --fix" |
|
|
|
"stylelint --fix" |
|
|
|
], |
|
|
|
|
|
|
|
"*.md": [ |
|
|
|
|
|
|
|
"prettier --write" |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
"config": { |
|
|
|
"config": { |
|
|
|