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