package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "name": "tdesign-miniprogram",
  3. "purename": "tdesign",
  4. "version": "0.7.3",
  5. "description": "tdesign-miniprogram",
  6. "title": "tdesign-miniprogram",
  7. "main": "miniprogram_dist/index.js",
  8. "miniprogram": "miniprogram_dist",
  9. "keywords": [
  10. "tdesign",
  11. "miniprogram"
  12. ],
  13. "scripts": {
  14. "start": "npm run dev",
  15. "dev": "cross-env NODE_ENV=development gulp dev --gulpfile script/gulpfile.js --cwd ./",
  16. "build": "cross-env NODE_ENV=production gulp build --gulpfile script/gulpfile.js --cwd ./",
  17. "build:dist": "gulp --gulpfile script/gulpfile.dist.js --cwd ./",
  18. "build:example": "gulp --gulpfile script/gulpfile.example.js --cwd ./",
  19. "build:assets": "cross-env NODE_ENV=production gulp assets:build --gulpfile script/gulpfile.dist.js --cwd ./",
  20. "update:icons": "node script/update-icons.js",
  21. "lintfix": "eslint '{src,example}/**/*.{js,ts}' --fix",
  22. "lint": "eslint '{src,example}/**/*.{js,ts}'",
  23. "format": "prettier {src,example,script}/**/*.{js,ts,wxss,less,wxml,html,json,md,wxs} --write",
  24. "site": "cd site && vite build",
  25. "site:dev": "cd site && vite",
  26. "site:intranet": "cd site && vite build --mode intranet",
  27. "site:prerender": "node script/prerender.mjs",
  28. "test": "jest -c jest.unit.config.js && jest -c jest.e2e.config.js",
  29. "test:unit": "jest -c jest.unit.config.js",
  30. "test:e2e": "jest -c jest.e2e.config.js",
  31. "prepare": "husky install",
  32. "generate": "gulp generate --gulpfile script/gulpfile.js --cwd ./",
  33. "changelog": "node script/generate-changelog.js",
  34. "robot": "publish-cli robot-msg"
  35. },
  36. "author": "tdesign",
  37. "license": "MIT",
  38. "devDependencies": {
  39. "@babel/core": "^7.12.10",
  40. "@babel/preset-env": "^7.12.11",
  41. "@babel/preset-typescript": "^7.12.7",
  42. "@commitlint/cli": "^16.0.2",
  43. "@commitlint/config-conventional": "^16.0.0",
  44. "@rollup/plugin-node-resolve": "^13.0.5",
  45. "@types/jest": "^27.0.3",
  46. "@typescript-eslint/eslint-plugin": "^5.6.0",
  47. "@typescript-eslint/parser": "^5.6.0",
  48. "@vitejs/plugin-vue": "^1.4.0",
  49. "@vitejs/plugin-vue-jsx": "^1.1.7",
  50. "@vue/compiler-sfc": "^3.2.4",
  51. "babel-jest": "^26.6.3",
  52. "commitizen": "^4.2.4",
  53. "cross-env": "^7.0.2",
  54. "cz-conventional-changelog": "^3.3.0",
  55. "del": "^5.1.0",
  56. "eslint": "^7.0.0",
  57. "eslint-config-airbnb-base": "^14.2.1",
  58. "eslint-config-prettier": "^6.11.0",
  59. "eslint-plugin-import": "^2.24.2",
  60. "eslint-plugin-prettier": "^4.0.0",
  61. "gray-matter": "^4.0.3",
  62. "gulp": "^4.0.2",
  63. "gulp-changed": "^4.0.2",
  64. "gulp-less": "^5.0.0",
  65. "gulp-mp-npm": "^1.9.7",
  66. "gulp-plumber": "^1.2.1",
  67. "gulp-rename": "^2.0.0",
  68. "gulp-replace": "^1.0.0",
  69. "gulp-replace-task": "^2.0.1",
  70. "gulp-sourcemaps": "^2.6.5",
  71. "gulp-typescript": "^6.0.0-alpha.1",
  72. "husky": "^7.0.4",
  73. "jest": "^26.6.3",
  74. "jest-html-reporter": "^3.3.0",
  75. "less": "^4.1.1",
  76. "lint-staged": "^10.0.0-1",
  77. "miniprogram-api-typings": "^3.4.4",
  78. "miniprogram-automator": "^0.10.0",
  79. "miniprogram-simulate": "^1.2.8",
  80. "npm-run-all": "^4.1.5",
  81. "playwright": "^1.19.1",
  82. "prettier": "^2.0.5",
  83. "prismjs": "^1.24.1",
  84. "standard-changelog": "^2.0.27",
  85. "stylelint": "^13.13.1",
  86. "tdesign-publish-cli": "^0.0.9",
  87. "tdesign-site-components": "^0.6.1",
  88. "typescript": "^4.5.2",
  89. "vite": "^2.7.6",
  90. "vite-plugin-tdoc": "^2.0.1",
  91. "vue": "^3.2.4",
  92. "vue-router": "^4.0.11"
  93. },
  94. "config": {
  95. "commitizen": {
  96. "path": "./node_modules/cz-conventional-changelog"
  97. }
  98. },
  99. "lint-staged": {
  100. "{src,example,script}/**/*.{js,ts,wxml,html,json,wxs,less}": [
  101. "prettier --write"
  102. ],
  103. "{src,example}/**/*.{js,ts}": [
  104. "eslint --fix"
  105. ]
  106. },
  107. "dependencies": {
  108. "dayjs": "^1.10.7"
  109. }
  110. }