package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "name": "miniprogram-simulate",
  3. "version": "1.5.7",
  4. "description": "tools for miniprogram custom component unit test",
  5. "main": "index.js",
  6. "types": "index.d.ts",
  7. "scripts": {
  8. "dev": "webpack --watch",
  9. "build": "webpack",
  10. "karma": "npm run build && karma start",
  11. "test": "jest --bail",
  12. "coverage": "jest --coverage --bail",
  13. "codecov": "jest --coverage && codecov",
  14. "lint": "eslint \"src/**/*.js\" --fix && eslint \"test/**/*.js\" --fix"
  15. },
  16. "jest": {
  17. "testEnvironment": "jsdom",
  18. "testURL": "https://jest.test",
  19. "testMatch": [
  20. "**/test/**/*.test.js"
  21. ],
  22. "collectCoverageFrom": [
  23. "src/*.js"
  24. ],
  25. "moduleDirectories": [
  26. "node_modules",
  27. "src"
  28. ]
  29. },
  30. "keywords": [
  31. "miniprogram",
  32. "custom component",
  33. "unit test"
  34. ],
  35. "repository": {
  36. "type": "git",
  37. "url": "https://github.com/wechat-miniprogram/miniprogram-simulate.git"
  38. },
  39. "author": "wechat-miniprogram",
  40. "license": "MIT",
  41. "devDependencies": {
  42. "chai": "^4.2.0",
  43. "codecov": "^3.7.0",
  44. "eslint": "^5.16.0",
  45. "eslint-config-airbnb-base": "13.1.0",
  46. "eslint-plugin-import": "^2.18.2",
  47. "eslint-plugin-node": "^7.0.1",
  48. "eslint-plugin-promise": "^3.8.0",
  49. "jest": "^26.0.1",
  50. "karma": "^3.1.4",
  51. "karma-chai": "^0.1.0",
  52. "karma-chrome-launcher": "^2.2.0",
  53. "karma-dirname-preprocessor": "latest",
  54. "karma-filemap-preprocessor": "latest",
  55. "karma-mocha": "^1.3.0",
  56. "karma-webpack": "^3.0.5",
  57. "mocha": "^5.2.0",
  58. "pretty-format": "^26.0.1",
  59. "webpack": "^4.41.2",
  60. "webpack-cli": "^3.3.10"
  61. },
  62. "dependencies": {
  63. "csso": "^3.5.1",
  64. "j-component": "^1.4.6",
  65. "less": "^3.10.3",
  66. "miniprogram-compiler": "latest",
  67. "postcss": "^7.0.23"
  68. }
  69. }