package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "@nutui/nutui",
  3. "version": "3.0.0",
  4. "description": "一套轻量级移动端Vue组件库",
  5. "typings": "dist/types/index.d.ts",
  6. "main": "dist/nutui.js",
  7. "files": [
  8. "dist",
  9. "README.md",
  10. "package.json",
  11. "LICENSE",
  12. "CHANGELOG.md"
  13. ],
  14. "scripts": {
  15. "dev": "nutui-cli dev",
  16. "build": "nutui-cli build",
  17. "build:site": "nutui-cli build-site",
  18. "clean": "nutui-cli clean",
  19. "add": "nutui-cli add",
  20. "lint": "nutui-cli lint",
  21. "test": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config node_modules/@nutui/cli/dist_cli/webpack/test.config.js --require node_modules/@nutui/cli/dist_cli/test/setup.js src/packages/**/__test__/**.spec.js",
  22. "coveralls": "cat ./coverage/lcov.info | coveralls",
  23. "test:watch": "npm run test --watch",
  24. "prettier:check": "prettier -l src/**/*.{js,vue,scss}",
  25. "prettier:fix": "prettier --write src/**/*.{js,vue,scss}",
  26. "upload:test": "node test_script/upload.js"
  27. },
  28. "repository": {
  29. "type": "git",
  30. "url": "https://github.com/jdf2e/nutui.git"
  31. },
  32. "eslintConfig": {
  33. "root": true,
  34. "extends": [
  35. "./eslint-config.js"
  36. ]
  37. },
  38. "husky": {
  39. "hooks": {
  40. "pre-commit": "lint-staged",
  41. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  42. }
  43. },
  44. "lint-staged": {
  45. "src/**/*.{js,vue,scss}": [
  46. "prettier --write src/**/*.{js,vue,scss}",
  47. "git add"
  48. ]
  49. },
  50. "stylelint": {
  51. "extends": [
  52. "./stylelint-config.js"
  53. ]
  54. },
  55. "keywords": [
  56. "nutui",
  57. "nutui2",
  58. "vue",
  59. "webpack",
  60. "vue component",
  61. "jdc",
  62. "jdcfe"
  63. ],
  64. "author": "jdcfe",
  65. "license": "MIT",
  66. "dependencies": {
  67. "@babel/plugin-proposal-object-rest-spread": "^7.9.5",
  68. "@babel/plugin-syntax-jsx": "^7.8.3",
  69. "@babel/plugin-transform-runtime": "^7.9.6",
  70. "@commitlint/cli": "^8.0.0",
  71. "@commitlint/config-conventional": "^8.0.0",
  72. "@vue/composition-api": "^0.5.0",
  73. "babel-plugin-istanbul": "^6.0.0",
  74. "gsap": "^3.2.6",
  75. "vue-lazyload": "^1.3.3",
  76. "vue-qr": "^2.2.1"
  77. },
  78. "peerDependencies": {
  79. "vue": "^2.6.10"
  80. },
  81. "devDependencies": {
  82. "@babel/plugin-syntax-dynamic-import": "^7.8.3",
  83. "@babel/plugin-transform-object-assign": "^7.8.3",
  84. "@nutui/cli": "^0.2.0",
  85. "@typescript-eslint/eslint-plugin": "^2.16.0",
  86. "@typescript-eslint/parser": "^2.16.0",
  87. "babel-plugin-transform-object-rest-spread": "^6.26.0",
  88. "eslint-plugin-import": "^2.20.0",
  89. "eslint-plugin-vue": "^6.1.2",
  90. "husky": "^3.0.0",
  91. "prettier": "^2.0.5",
  92. "stylelint-config-standard": "^19.0.0"
  93. },
  94. "nyc": {
  95. "include": [
  96. "src/packages/**/*.vue"
  97. ],
  98. "reporter": [
  99. "lcov",
  100. "text"
  101. ],
  102. "instrument": false,
  103. "sourceMap": false
  104. }
  105. }