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