package.json 2.51 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
3 4
  "private": true,
  "scripts": {
偏右's avatar
偏右 committed
5
    "precommit": "npm run lint-staged",
6
    "start": "roadhog server",
nikogu's avatar
nikogu committed
7
    "start:no-proxy": "NO_PROXY=true roadhog server",
8
    "build": "roadhog build",
9
    "site": "roadhog-api-doc static",
nikogu's avatar
nikogu committed
10 11
    "lint:style": "stylelint \"src/**/*.less\" --syntax less",
    "lint": "eslint --ext .js src mock tests && npm run lint:style",
afc163's avatar
afc163 committed
12
    "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
偏右's avatar
偏右 committed
13 14
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
偏右's avatar
偏右 committed
15 16
    "test": "jest",
    "test:all": "node ./tests/run-tests.js"
17 18 19
  },
  "dependencies": {
    "antd": "next",
afc163's avatar
afc163 committed
20
    "classnames": "^2.2.5",
21 22 23 24 25
    "dva": "^1.2.1",
    "lodash": "^4.17.4",
    "numeral": "^2.0.6",
    "prop-types": "^15.5.10",
    "qs": "^6.5.0",
afc163's avatar
afc163 committed
26
    "react": "^15.6.2",
27
    "react-document-title": "^2.0.3",
afc163's avatar
afc163 committed
28
    "react-dom": "^15.6.2"
29 30
  },
  "devDependencies": {
afc163's avatar
afc163 committed
31
    "babel-eslint": "^8.0.1",
偏右's avatar
偏右 committed
32
    "babel-jest": "^21.0.0",
33 34 35 36 37
    "babel-plugin-dva-hmr": "^0.3.2",
    "babel-plugin-import": "^1.2.1",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-plugin-transform-runtime": "^6.9.0",
    "babel-runtime": "^6.9.2",
偏右's avatar
偏右 committed
38
    "cross-port-killer": "^1.0.1",
afc163's avatar
afc163 committed
39 40
    "enzyme": "^3.1.0",
    "enzyme-adapter-react-15": "^1.0.2",
niko's avatar
niko committed
41
    "eslint": "^4.8.0",
afc163's avatar
afc163 committed
42
    "eslint-config-airbnb": "^16.0.0",
43 44
    "eslint-plugin-babel": "^4.0.0",
    "eslint-plugin-import": "^2.2.0",
afc163's avatar
afc163 committed
45
    "eslint-plugin-jsx-a11y": "^6.0.0",
nikogu's avatar
nikogu committed
46
    "eslint-plugin-markdown": "^1.0.0-beta.6",
47
    "eslint-plugin-react": "^7.0.1",
afc163's avatar
afc163 committed
48
    "gh-pages": "^1.0.0",
afc163's avatar
afc163 committed
49
    "husky": "^0.14.3",
偏右's avatar
偏右 committed
50
    "jest": "^21.0.1",
偏右's avatar
偏右 committed
51
    "lint-staged": "^4.3.0",
52
    "mockjs": "^1.0.1-beta3",
偏右's avatar
偏右 committed
53
    "nightmare": "^2.10.0",
afc163's avatar
afc163 committed
54
    "react-test-renderer": "^15.6.2",
55 56
    "redbox-react": "^1.3.2",
    "roadhog": "^1.0.2",
nikogu's avatar
nikogu committed
57
    "roadhog-api-doc": "^0.1.8",
nikogu's avatar
nikogu committed
58
    "stylelint": "^8.1.0",
nikogu's avatar
nikogu committed
59
    "stylelint-config-standard": "^17.0.0"
偏右's avatar
偏右 committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
  },
  "babel": {
    "presets": [
      "es2015",
      "stage-0",
      "react"
    ],
    "plugins": [
      "transform-decorators-legacy"
    ]
  },
  "jest": {
    "setupFiles": [
      "<rootDir>/tests/setupTests.js"
    ],
    "testMatch": [
      "**/?(*.)(spec|test|e2e).js?(x)"
    ],
    "setupTestFrameworkScriptFile": "<rootDir>/tests/jasmine.js",
    "moduleFileExtensions": [
      "js",
      "jsx"
    ],
    "moduleNameMapper": {
      "\\.(css|less)$": "<rootDir>/tests/styleMock.js"
    }
偏右's avatar
偏右 committed
86 87 88 89 90
  },
  "lint-staged": {
    "**/*.{js,jsx}": "lint-staged:js",
    "**/*.less": "stylelint --syntax less",
    "src/**/demo/*.md": "lint-staged:demo"
91 92
  }
}