package.json 2.2 KB
Newer Older
1
{
A
afc163 已提交
2
  "name": "ant-design-pro",
3 4
  "private": true,
  "scripts": {
5
    "precommit": "npm run lint",
6
    "start": "roadhog server",
N
nikogu 已提交
7
    "start:no-proxy": "NO_PROXY=true roadhog server",
8
    "build": "roadhog build",
9
    "site": "roadhog-api-doc static",
N
nikogu 已提交
10 11
    "lint:style": "stylelint \"src/**/*.less\" --syntax less",
    "lint": "eslint --ext .js src mock tests && npm run lint:style",
A
afc163 已提交
12
    "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
偏右 已提交
13 14
    "test": "jest",
    "test:all": "node ./tests/run-tests.js"
15 16 17 18 19 20 21 22
  },
  "dependencies": {
    "antd": "next",
    "dva": "^1.2.1",
    "lodash": "^4.17.4",
    "numeral": "^2.0.6",
    "prop-types": "^15.5.10",
    "qs": "^6.5.0",
A
afc163 已提交
23
    "react": "^15.6.1",
24
    "react-document-title": "^2.0.3",
A
afc163 已提交
25
    "react-dom": "^15.6.1"
26 27 28
  },
  "devDependencies": {
    "babel-eslint": "^7.1.1",
偏右 已提交
29
    "babel-jest": "^21.0.0",
30 31 32 33 34
    "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",
偏右 已提交
35 36
    "cross-port-killer": "^1.0.1",
    "enzyme": "^2.9.1",
N
niko 已提交
37
    "eslint": "^4.8.0",
A
afc163 已提交
38
    "eslint-config-airbnb": "^16.0.0",
39 40
    "eslint-plugin-babel": "^4.0.0",
    "eslint-plugin-import": "^2.2.0",
A
afc163 已提交
41
    "eslint-plugin-jsx-a11y": "^6.0.0",
N
nikogu 已提交
42
    "eslint-plugin-markdown": "^1.0.0-beta.6",
43
    "eslint-plugin-react": "^7.0.1",
A
afc163 已提交
44
    "gh-pages": "^1.0.0",
45
    "husky": "^0.13.4",
偏右 已提交
46
    "jest": "^21.0.1",
47
    "mockjs": "^1.0.1-beta3",
偏右 已提交
48 49
    "nightmare": "^2.10.0",
    "react-test-renderer": "^15.6.1",
50 51
    "redbox-react": "^1.3.2",
    "roadhog": "^1.0.2",
N
nikogu 已提交
52
    "roadhog-api-doc": "^0.1.8",
N
nikogu 已提交
53
    "stylelint": "^8.1.0",
N
nikogu 已提交
54
    "stylelint-config-standard": "^17.0.0"
偏右 已提交
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
  },
  "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"
    }
81 82
  }
}