|
@@ -19,11 +19,13 @@
|
|
|
"log": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
|
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
|
|
|
"clean:lib": "rimraf node_modules",
|
|
|
- "lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
|
|
|
+ "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
|
|
|
"lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
|
|
|
- "lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
|
|
+ "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
|
|
"lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js",
|
|
|
"lint:pretty": "pretty-quick --staged",
|
|
|
+ "test:unit": "jest",
|
|
|
+ "test:unit-coverage": "jest --coverage",
|
|
|
"test:gzip": "http-server dist --cors --gzip -c-1",
|
|
|
"test:br": "http-server dist --cors --brotli -c-1",
|
|
|
"reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap",
|
|
@@ -71,6 +73,7 @@
|
|
|
"@types/fs-extra": "^9.0.11",
|
|
|
"@types/inquirer": "^7.3.1",
|
|
|
"@types/intro.js": "^3.0.1",
|
|
|
+ "@types/jest": "^26.0.23",
|
|
|
"@types/lodash-es": "^4.17.4",
|
|
|
"@types/mockjs": "^1.0.3",
|
|
|
"@types/node": "^15.12.2",
|
|
@@ -84,7 +87,9 @@
|
|
|
"@vitejs/plugin-vue": "^1.2.3",
|
|
|
"@vitejs/plugin-vue-jsx": "^1.1.5",
|
|
|
"@vue/compiler-sfc": "3.0.11",
|
|
|
+ "@vue/test-utils": "^2.0.0-rc.6",
|
|
|
"autoprefixer": "^10.2.6",
|
|
|
+ "babel-jest": "^27.0.2",
|
|
|
"commitizen": "^4.2.4",
|
|
|
"conventional-changelog-cli": "^2.1.1",
|
|
|
"cross-env": "^7.0.3",
|
|
@@ -92,6 +97,7 @@
|
|
|
"eslint": "^7.28.0",
|
|
|
"eslint-config-prettier": "^8.3.0",
|
|
|
"eslint-define-config": "^1.0.8",
|
|
|
+ "eslint-plugin-jest": "^24.3.6",
|
|
|
"eslint-plugin-prettier": "^3.4.0",
|
|
|
"eslint-plugin-vue": "^7.11.1",
|
|
|
"esno": "^0.7.3",
|
|
@@ -100,6 +106,7 @@
|
|
|
"husky": "^6.0.0",
|
|
|
"inquirer": "^8.1.1",
|
|
|
"is-ci": "^3.0.0",
|
|
|
+ "jest": "^27.0.4",
|
|
|
"less": "^4.1.1",
|
|
|
"lint-staged": "^11.0.0",
|
|
|
"postcss": "^8.3.5",
|
|
@@ -111,6 +118,7 @@
|
|
|
"stylelint-config-prettier": "^8.0.2",
|
|
|
"stylelint-config-standard": "^22.0.0",
|
|
|
"stylelint-order": "^4.1.0",
|
|
|
+ "ts-jest": "^27.0.3",
|
|
|
"ts-node": "^10.0.0",
|
|
|
"typescript": "4.3.3",
|
|
|
"vite": "2.3.7",
|
|
@@ -125,6 +133,7 @@
|
|
|
"vite-plugin-theme": "^0.8.1",
|
|
|
"vite-plugin-windicss": "^1.0.4",
|
|
|
"vue-eslint-parser": "^7.6.0",
|
|
|
+ "vue-jest": "^5.0.0-alpha.10",
|
|
|
"vue-tsc": "^0.1.7"
|
|
|
},
|
|
|
"resolutions": {
|