2019-05-24 14:41:33 +08:00
|
|
|
{
|
2019-05-24 20:09:35 +08:00
|
|
|
"name": "naive-ui",
|
2021-04-19 22:05:43 +08:00
|
|
|
"version": "2.7.0",
|
2020-05-16 22:01:25 +08:00
|
|
|
"description": "A Vue UI Framework. Caring About Styles, Themed, Batteries Included, Not Rather Slow.",
|
2020-02-12 13:44:53 +08:00
|
|
|
"main": "lib/index.js",
|
|
|
|
"module": "es/index.js",
|
2019-05-24 14:41:33 +08:00
|
|
|
"scripts": {
|
2020-07-08 21:06:48 +08:00
|
|
|
"start": "npm run dev",
|
2021-02-18 23:48:04 +08:00
|
|
|
"dev": "npm run clean && npm run gen-version && cross-env NODE_ENV=development vite",
|
2021-02-18 23:31:02 +08:00
|
|
|
"build:js": "npm run gen-version && npm run clean && tsc -b --force tsconfig.esm.json && tsc -b --force tsconfig.cjs.json && node scripts/post-build",
|
|
|
|
"build:package": "npm run gen-version && npm run clean && node scripts/pre-build/deprecated-build-icons.js && tsc -b --force tsconfig.esm.json && tsc -b --force tsconfig.cjs.json && node scripts/post-build",
|
2021-03-31 11:14:48 +08:00
|
|
|
"build:site": "./scripts/pre-build-site/pre-build-site.sh && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
|
2021-02-19 14:01:48 +08:00
|
|
|
"clean": "rm -rf site lib es node_modules/naive-ui themes/**/es themes/**/lib",
|
2021-02-18 23:48:04 +08:00
|
|
|
"release:package": "npm run build:package && npm publish --tag next",
|
2021-04-01 18:23:11 +08:00
|
|
|
"release:site": "cross-env TUSIMPLE=true npm run build:site && node build-doc/generate-deploy-sh.js && sudo bash build-doc/deploy-doc.sh",
|
2021-02-03 00:48:31 +08:00
|
|
|
"lint": "npm run lint:code && npm run lint:type",
|
2021-02-18 23:48:04 +08:00
|
|
|
"lint:type": "tsc -b --force tsconfig.esm.json",
|
2021-02-04 15:28:04 +08:00
|
|
|
"lint:code": "eslint --fix \"{src,build,scripts,demo}/**/*.{ts,tsx,js,vue,md}\"",
|
2020-12-12 15:03:05 +08:00
|
|
|
"format": "npm run format:code && npm run format:md",
|
|
|
|
"format:code": "prettier --write \"(src|demo)/**/*.(vue|js)\"",
|
|
|
|
"format:md": "prettier --write --parser markdown --prose-wrap never \"demo/**/*.md\"",
|
2021-02-17 15:28:20 +08:00
|
|
|
"test": "cross-env NODE_ENV=test jest --coverage=false",
|
|
|
|
"test:cov": "cross-env NODE_ENV=test jest",
|
2021-02-03 21:38:43 +08:00
|
|
|
"gen-version": "node scripts/gen-version",
|
2021-02-18 23:48:04 +08:00
|
|
|
"build:site:ts": "./scripts/pre-build-site/pre-build-site.sh && cross-env TUSIMPLE=true NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
|
|
|
|
"deprecated:build:icons": "npm run clean && node scripts/pre-build/deprecated-build-icons.js"
|
2019-05-24 14:41:33 +08:00
|
|
|
},
|
2020-11-03 11:53:37 +08:00
|
|
|
"author": "07akioni",
|
2020-03-02 22:41:52 +08:00
|
|
|
"license": "MIT",
|
2019-06-13 17:28:05 +08:00
|
|
|
"publishConfig": {
|
2019-07-01 10:09:32 +08:00
|
|
|
"registry": "***REMOVED***"
|
2019-06-13 17:28:05 +08:00
|
|
|
},
|
2020-02-11 20:57:35 +08:00
|
|
|
"files": [
|
2021-02-03 00:48:31 +08:00
|
|
|
"compat",
|
2020-02-12 17:10:34 +08:00
|
|
|
"es",
|
2020-02-11 20:57:35 +08:00
|
|
|
"lib",
|
2020-02-12 17:10:34 +08:00
|
|
|
"README.md"
|
2020-02-11 20:57:35 +08:00
|
|
|
],
|
2020-12-12 01:51:52 +08:00
|
|
|
"lint-staged": {
|
2020-12-12 15:03:05 +08:00
|
|
|
"*.js": [
|
|
|
|
"prettier --write",
|
|
|
|
"eslint --fix"
|
|
|
|
],
|
2021-01-15 19:08:31 +08:00
|
|
|
"*.ts": [
|
|
|
|
"prettier --write",
|
|
|
|
"eslint --fix"
|
|
|
|
],
|
2021-01-16 15:25:28 +08:00
|
|
|
"*.tsx": [
|
|
|
|
"prettier --write",
|
|
|
|
"eslint --fix"
|
|
|
|
],
|
2020-12-12 01:51:52 +08:00
|
|
|
"*.vue": [
|
2020-12-12 13:47:04 +08:00
|
|
|
"prettier --parser=vue --write",
|
|
|
|
"eslint --fix"
|
2020-12-12 01:51:52 +08:00
|
|
|
],
|
2020-12-12 15:33:41 +08:00
|
|
|
"*.css": [
|
2020-12-16 02:16:59 +08:00
|
|
|
"prettier --write"
|
2020-12-12 15:33:41 +08:00
|
|
|
],
|
2020-12-12 15:03:05 +08:00
|
|
|
"*.md": [
|
2020-12-12 15:33:41 +08:00
|
|
|
"prettier --write --parser markdown --prose-wrap never",
|
|
|
|
"eslint --fix"
|
2020-12-12 15:03:05 +08:00
|
|
|
]
|
2020-12-12 01:51:52 +08:00
|
|
|
},
|
2019-05-24 14:41:33 +08:00
|
|
|
"devDependencies": {
|
2021-01-13 18:20:47 +08:00
|
|
|
"@babel/generator": "^7.12.11",
|
|
|
|
"@babel/parser": "^7.12.11",
|
2020-12-16 10:57:40 +08:00
|
|
|
"@babel/preset-env": "^7.12.10",
|
2021-02-17 14:55:44 +08:00
|
|
|
"@babel/preset-react": "^7.12.13",
|
|
|
|
"@babel/preset-typescript": "^7.12.16",
|
2021-01-13 18:20:47 +08:00
|
|
|
"@babel/traverse": "^7.12.12",
|
2021-02-17 19:32:50 +08:00
|
|
|
"@rollup/plugin-babel": "^5.3.0",
|
|
|
|
"@types/estree": "^0.0.46",
|
|
|
|
"@types/jest": "^26.0.20",
|
2021-01-13 23:14:58 +08:00
|
|
|
"@types/lodash-es": "^4.17.4",
|
2021-02-17 19:32:50 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.15.1",
|
|
|
|
"@typescript-eslint/parser": "^4.15.1",
|
2021-03-21 15:31:34 +08:00
|
|
|
"@vicons/fluent": "^0.7.0",
|
|
|
|
"@vicons/ionicons4": "^0.7.0",
|
|
|
|
"@vicons/ionicons5": "^0.7.0",
|
2021-04-01 15:24:12 +08:00
|
|
|
"@vitejs/plugin-vue": "^1.2.1",
|
|
|
|
"@vue/compiler-sfc": "^3.0.10",
|
2021-02-17 19:32:50 +08:00
|
|
|
"@vue/eslint-config-standard": "^6.0.0",
|
2021-01-15 19:08:31 +08:00
|
|
|
"@vue/eslint-config-typescript": "^7.0.0",
|
2021-03-29 01:12:00 +08:00
|
|
|
"@vue/test-utils": "^2.0.0-rc.4",
|
2020-11-02 22:56:57 +08:00
|
|
|
"autoprefixer": "^9.8.6",
|
2020-11-03 15:10:29 +08:00
|
|
|
"babel-eslint": "^10.1.0",
|
2021-02-17 19:32:50 +08:00
|
|
|
"babel-jest": "^26.6.3",
|
2021-03-29 01:12:00 +08:00
|
|
|
"cross-env": "^7.0.3",
|
2019-12-30 13:15:14 +08:00
|
|
|
"cssnano": "^4.1.10",
|
2021-02-17 19:32:50 +08:00
|
|
|
"eslint": "^7.20.0",
|
2021-01-16 15:25:28 +08:00
|
|
|
"eslint-config-standard": "^16.0.2",
|
|
|
|
"eslint-config-standard-with-typescript": "^19.0.1",
|
2020-11-03 15:10:29 +08:00
|
|
|
"eslint-plugin-import": "^2.22.1",
|
2021-02-17 19:32:50 +08:00
|
|
|
"eslint-plugin-markdown": "^2.0.0",
|
2020-11-03 15:10:29 +08:00
|
|
|
"eslint-plugin-node": "^11.1.0",
|
2021-02-17 19:32:50 +08:00
|
|
|
"eslint-plugin-promise": "^4.3.1",
|
2021-01-16 15:25:28 +08:00
|
|
|
"eslint-plugin-standard": "^4.1.0",
|
2021-02-17 19:32:50 +08:00
|
|
|
"eslint-plugin-vue": "^7.6.0",
|
2020-12-06 22:04:36 +08:00
|
|
|
"fs-extra": "^9.0.1",
|
2020-12-12 01:51:52 +08:00
|
|
|
"husky": "^4.3.5",
|
2020-11-02 22:56:57 +08:00
|
|
|
"jest": "^26.6.2",
|
2020-12-12 01:51:52 +08:00
|
|
|
"lint-staged": "^10.5.3",
|
2020-11-03 13:04:24 +08:00
|
|
|
"lodash": "^4.17.20",
|
2021-03-29 01:12:00 +08:00
|
|
|
"marked": "^2.0.1",
|
2020-12-12 01:51:52 +08:00
|
|
|
"prettier": "^2.2.1",
|
2021-02-25 12:04:43 +08:00
|
|
|
"typescript": "^4.2.2",
|
2021-03-29 01:12:00 +08:00
|
|
|
"vite": "^2.1.3"
|
2019-05-24 14:41:33 +08:00
|
|
|
},
|
2019-05-24 20:09:35 +08:00
|
|
|
"dependencies": {
|
2021-04-15 02:09:49 +08:00
|
|
|
"@css-render/plugin-bem": "^0.13.6",
|
2021-03-29 01:12:00 +08:00
|
|
|
"async-validator": "^3.5.1",
|
2021-04-15 02:09:49 +08:00
|
|
|
"css-render": "^0.13.6",
|
2021-03-29 01:12:00 +08:00
|
|
|
"date-fns": "^2.19.0",
|
2021-04-05 19:03:09 +08:00
|
|
|
"evtd": "^0.2.0",
|
2021-03-29 01:12:00 +08:00
|
|
|
"highlight.js": "^10.7.1",
|
|
|
|
"lodash-es": "^4.17.21",
|
2021-04-20 02:36:31 +08:00
|
|
|
"seemly": "^0.1.35",
|
2021-01-31 22:39:16 +08:00
|
|
|
"treemate": "^0.2.4",
|
2021-04-05 19:03:09 +08:00
|
|
|
"vdirs": "^0.1.2",
|
2021-03-21 15:31:34 +08:00
|
|
|
"vfonts": "^0.1.0",
|
2021-04-06 01:59:53 +08:00
|
|
|
"vooks": "^0.2.0",
|
2021-04-01 15:24:12 +08:00
|
|
|
"vue": "^3.0.10",
|
2021-03-21 15:31:34 +08:00
|
|
|
"vue-router": "^4.0.5",
|
2021-03-20 01:49:16 +08:00
|
|
|
"vueuc": "^0.3.0"
|
2020-12-07 23:49:32 +08:00
|
|
|
},
|
2020-12-12 01:51:52 +08:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
2020-12-28 00:31:39 +08:00
|
|
|
},
|
|
|
|
"sideEffects": false
|
2021-01-13 18:20:47 +08:00
|
|
|
}
|