package.json 3.42 KB
Newer Older
1
{
afc163's avatar
afc163 committed
2
  "name": "ant-design-pro",
nikogu's avatar
nikogu committed
3
  "version": "0.3.1",
偏右's avatar
偏右 committed
4
  "description": "An out-of-box UI solution for enterprise applications",
5 6
  "private": true,
  "scripts": {
偏右's avatar
偏右 committed
7
    "precommit": "npm run lint-staged",
8
    "start": "roadhog server",
afc163's avatar
afc163 committed
9
    "start:no-proxy": "cross-env NO_PROXY=true roadhog server",
10
    "build": "roadhog build",
nikogu's avatar
nikogu committed
11
    "site": "roadhog-api-doc static && gh-pages -d dist",
afc163's avatar
afc163 committed
12
    "analyze": "roadhog build --analyze",
nikogu's avatar
nikogu committed
13 14
    "lint:style": "stylelint \"src/**/*.less\" --syntax less",
    "lint": "eslint --ext .js src mock tests && npm run lint:style",
afc163's avatar
afc163 committed
15
    "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
偏右's avatar
偏右 committed
16 17
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
偏右's avatar
偏右 committed
18 19
    "test": "jest",
    "test:all": "node ./tests/run-tests.js"
20 21
  },
  "dependencies": {
niko's avatar
niko committed
22
    "@antv/data-set": "^0.8.0",
afc163's avatar
afc163 committed
23
    "antd": "^3.0.0",
afc163's avatar
afc163 committed
24
    "babel-polyfill": "^6.26.0",
afc163's avatar
afc163 committed
25
    "babel-runtime": "^6.9.2",
niko's avatar
niko committed
26 27
    "bizcharts": "^3.1.0-beta.4",
    "bizcharts-plugin-slider": "^2.0.1",
afc163's avatar
afc163 committed
28
    "classnames": "^2.2.5",
29
    "dva": "^2.1.0",
jiang's avatar
jiang committed
30
    "enquire-js": "^0.1.1",
afc163's avatar
afc163 committed
31
    "fastclick": "^1.0.6",
32
    "lodash": "^4.17.4",
afc163's avatar
afc163 committed
33
    "lodash-decorators": "^4.4.1",
afc163's avatar
afc163 committed
34
    "moment": "^2.19.1",
35
    "numeral": "^2.0.6",
ddcat1115's avatar
ddcat1115 committed
36
    "omit.js": "^1.0.0",
37 38
    "prop-types": "^15.5.10",
    "qs": "^6.5.0",
jiang's avatar
jiang committed
39
    "rc-drawer-menu": "^0.5.0",
afc163's avatar
afc163 committed
40
    "react": "^16.0.0",
afc163's avatar
afc163 committed
41
    "react-container-query": "^0.9.1",
42
    "react-document-title": "^2.0.3",
偏右's avatar
偏右 committed
43
    "react-dom": "^16.0.0",
nikogu's avatar
nikogu committed
44
    "react-fittext": "^1.0.0"
45 46
  },
  "devDependencies": {
afc163's avatar
afc163 committed
47
    "babel-eslint": "^8.0.1",
48 49
    "babel-jest": "^22.0.4",
    "babel-plugin-dva-hmr": "^0.4.0",
50
    "babel-plugin-import": "^1.2.1",
afc163's avatar
afc163 committed
51
    "babel-plugin-transform-class-properties": "^6.24.1",
52 53
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-plugin-transform-runtime": "^6.9.0",
afc163's avatar
afc163 committed
54 55
    "babel-preset-env": "^1.6.1",
    "babel-preset-react": "^6.24.1",
afc163's avatar
afc163 committed
56
    "cross-env": "^5.1.1",
偏右's avatar
偏右 committed
57
    "cross-port-killer": "^1.0.1",
afc163's avatar
afc163 committed
58
    "enzyme": "^3.1.0",
afc163's avatar
afc163 committed
59
    "enzyme-adapter-react-16": "^1.0.2",
niko's avatar
niko committed
60
    "eslint": "^4.8.0",
afc163's avatar
afc163 committed
61
    "eslint-config-airbnb": "^16.0.0",
62
    "eslint-plugin-babel": "^4.0.0",
afc163's avatar
afc163 committed
63
    "eslint-plugin-compat": "^2.1.0",
64
    "eslint-plugin-import": "^2.2.0",
afc163's avatar
afc163 committed
65
    "eslint-plugin-jsx-a11y": "^6.0.0",
nikogu's avatar
nikogu committed
66
    "eslint-plugin-markdown": "^1.0.0-beta.6",
67
    "eslint-plugin-react": "^7.0.1",
afc163's avatar
afc163 committed
68
    "gh-pages": "^1.0.0",
afc163's avatar
afc163 committed
69
    "husky": "^0.14.3",
70 71 72
    "jest": "^22.0.4",
    "jsdom": "^11.5.1",
    "lint-staged": "^6.0.0",
73
    "mockjs": "^1.0.1-beta3",
nikogu's avatar
nikogu committed
74
    "prettier": "^1.9.0",
afc163's avatar
afc163 committed
75
    "pro-download": "^1.0.0",
afc163's avatar
afc163 committed
76
    "react-test-renderer": "^16.0.0",
77
    "redbox-react": "^1.3.2",
78
    "roadhog": "^1.3.1",
afc163's avatar
afc163 committed
79
    "roadhog-api-doc": "^0.3.3",
afc163's avatar
afc163 committed
80
    "rollbar": "^2.3.1",
nikogu's avatar
nikogu committed
81
    "stylelint": "^8.1.0",
82
    "stylelint-config-standard": "^18.0.0"
偏右's avatar
偏右 committed
83
  },
84 85 86
  "optionalDependencies": {
    "nightmare": "^2.10.0"
  },
偏右's avatar
偏右 committed
87
  "babel": {
afc163's avatar
afc163 committed
88 89 90 91 92 93 94 95
    "presets": [
      "env",
      "react"
    ],
    "plugins": [
      "transform-decorators-legacy",
      "transform-class-properties"
    ]
偏右's avatar
偏右 committed
96 97
  },
  "jest": {
afc163's avatar
afc163 committed
98 99 100 101 102 103
    "setupFiles": [
      "<rootDir>/tests/setupTests.js"
    ],
    "testMatch": [
      "**/?(*.)(spec|test|e2e).js?(x)"
    ],
偏右's avatar
偏右 committed
104
    "setupTestFrameworkScriptFile": "<rootDir>/tests/jasmine.js",
afc163's avatar
afc163 committed
105 106 107 108
    "moduleFileExtensions": [
      "js",
      "jsx"
    ],
偏右's avatar
偏右 committed
109 110 111
    "moduleNameMapper": {
      "\\.(css|less)$": "<rootDir>/tests/styleMock.js"
    }
偏右's avatar
偏右 committed
112 113 114
  },
  "lint-staged": {
    "**/*.{js,jsx}": "lint-staged:js",
afc163's avatar
afc163 committed
115
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
116
  },
afc163's avatar
afc163 committed
117 118 119 120 121
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 10"
  ]
122
}