package.json 3.0 KB
Newer Older
Z
zhuzhida 已提交
1 2
{
  "name": "@nutui/nutui",
richard_1015's avatar
richard_1015 已提交
3
  "version": "3.0.0-beta.7",
Z
zhuzhida 已提交
4
  "npm": {
richard_1015's avatar
richard_1015 已提交
5
    "tag": "beta"
Z
zhuzhida 已提交
6 7
  },
  "description": "一套京东风格的轻量级移动端 Vue 组件库",
richard_1015's avatar
richard_1015 已提交
8 9 10
  "main": "dist/nutui.umd.js",
  "module": "dist/nutui.es.js",
  "style": "dist/style.css",
richard_1015's avatar
richard_1015 已提交
11
  "typings": "dist/index.d.ts",
Z
zhuzhida 已提交
12 13 14 15 16 17 18 19 20
  "keywords": [
    "nutui",
    "nutui2",
    "nutui3",
    "vue",
    "vue3",
    "webpack",
    "vue component",
    "vue3 component",
richard_1015's avatar
richard_1015 已提交
21
    "vite",
Z
zhuzhida 已提交
22 23 24 25 26
    "jdc",
    "jdcfe"
  ],
  "author": "jdcfe",
  "license": "MIT",
richard_1015's avatar
richard_1015 已提交
27 28 29 30
  "publishConfig": {
    "access": "public",
    "registry": "https://registry.npmjs.org/"
  },
Z
zhuzhida 已提交
31 32 33 34 35 36 37 38
  "files": [
    "dist",
    "README.md",
    "package.json",
    "LICENSE",
    "CHANGELOG.md"
  ],
  "scripts": {
richard_1015's avatar
richard_1015 已提交
39
    "checked": "npm run generate:file && tsc",
richard_1015's avatar
richard_1015 已提交
40 41
    "dev": "npm run checked && vite --open",
    "build:site": "npm run checked && vite build",
richard_1015's avatar
richard_1015 已提交
42
    "build:gh-pages": "npm run checked && vite build --base=/nutui/",
richard_1015's avatar
richard_1015 已提交
43
    "build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
richard_1015's avatar
richard_1015 已提交
44
    "build": "npm run checked && vite build --config vite.config.build.ts && npm run generate:types && npm run generate:themes",
richard_1015's avatar
richard_1015 已提交
45
    "build:disperse": "vite build --config vite.config.build.disperse.ts",
richard_1015's avatar
richard_1015 已提交
46
    "serve": "vite preview",
richard_1015's avatar
richard_1015 已提交
47
    "upload": "yarn build:site:oss && node ./jd/upload.js",
richard_1015's avatar
richard_1015 已提交
48
    "add": "node jd/createComponentMode.js",
49
    "publish:beta": "npm publish --tag=beta",
richard_1015's avatar
richard_1015 已提交
50
    "generate:file": "node jd/generate-nutui.js",
richard_1015's avatar
richard_1015 已提交
51 52
    "generate:types": "node jd/generate-types.js",
    "generate:themes": "node jd/generate-themes.js"
Z
zhuzhida 已提交
53 54
  },
  "dependencies": {
richard_1015's avatar
richard_1015 已提交
55
    "axios": "^0.21.0",
Y
yangxiaolu3 已提交
56
    "gsap": "^3.6.0",
richard_1015's avatar
richard_1015 已提交
57 58 59
    "sass": "^1.32.8",
    "vue": "^3.0.5",
    "vue-router": "^4.0.4"
Z
zhuzhida 已提交
60 61
  },
  "devDependencies": {
richard_1015's avatar
richard_1015 已提交
62 63
    "@commitlint/cli": "^10.0.0",
    "@commitlint/config-conventional": "^10.0.0",
richard_1015's avatar
richard_1015 已提交
64
    "@types/node": "^14.14.31",
richard_1015's avatar
richard_1015 已提交
65
    "@vitejs/plugin-vue": "^1.1.5",
richard_1015's avatar
richard_1015 已提交
66
    "@vue/compiler-sfc": "^3.0.5",
Z
zhuzhida 已提交
67 68 69 70 71
    "@vue/eslint-config-prettier": "^6.0.0",
    "@vue/eslint-config-typescript": "^5.0.2",
    "eslint": "^6.7.2",
    "eslint-plugin-prettier": "^3.1.3",
    "eslint-plugin-vue": "^7.0.0-0",
xiaozhumaopao's avatar
xiaozhumaopao 已提交
72
    "front-matter": "^4.0.2",
richard_1015's avatar
richard_1015 已提交
73
    "fs-extra": "^9.1.0",
xiaozhumaopao's avatar
xiaozhumaopao 已提交
74
    "highlight.js": "^10.3.1",
75 76
    "husky": "^4.3.0",
    "lint-staged": "^10.5.0",
Z
zhuzhida 已提交
77
    "prettier": "^1.19.1",
xiaozhumaopao's avatar
xiaozhumaopao 已提交
78
    "transliteration": "^2.2.0",
richard_1015's avatar
richard_1015 已提交
79
    "typescript": "^4.1.5",
richard_1015's avatar
richard_1015 已提交
80
    "vite": "^2.1.2",
richard_1015's avatar
richard_1015 已提交
81
    "vite-plugin-md": "^0.6.1"
Z
zhuzhida 已提交
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/vue3-essential",
      "eslint:recommended",
      "@vue/typescript/recommended",
      "@vue/prettier",
      "@vue/prettier/@typescript-eslint"
    ],
    "parserOptions": {
      "ecmaVersion": 2020
    },
    "rules": {
99 100
      "vue/no-unused-components": "off",
      "no-debugger": "off"
Z
zhuzhida 已提交
101 102
    }
  },
103 104 105 106 107 108 109 110 111
  "husky": {
    "hooks": {
      "pre-commit": "node ./jd/verifymail.js && lint-staged",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  },
  "lint-staged": {
    "*.{ts,js,vue,scss}": "prettier --write"
  },
Z
zhuzhida 已提交
112 113 114
  "repository": {
    "type": "git",
    "url": "https://github.com/jdf2e/nutui.git"
richard_1015's avatar
richard_1015 已提交
115
  }
116
}