aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/package.json
blob: 9f300502e183303cc35a320e2576608bfd48311d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
  "name": "SonarQube",
  "version": "0.0.1",
  "description": "Put your technical debt under control",
  "repository": "SonarSource/sonarqube",
  "license": "LGPL-3.0",
  "dependencies": {
    "babel-polyfill": "6.26.0",
    "classnames": "2.2.5",
    "clipboard": "1.7.1",
    "create-react-class": "15.6.2",
    "d3-array": "1.2.1",
    "d3-hierarchy": "1.1.5",
    "d3-scale": "1.0.6",
    "d3-selection": "1.1.0",
    "d3-shape": "1.2.0",
    "date-fns": "1.29.0",
    "formik": "0.11.7",
    "gray-matter": "4.0.1",
    "history": "3.3.0",
    "intl-relativeformat": "2.1.0",
    "keymaster": "1.6.2",
    "lodash": "4.17.4",
    "prop-types": "15.6.0",
    "react": "16.2.0",
    "react-day-picker": "7.1.2",
    "react-dom": "16.2.0",
    "react-draggable": "3.0.3",
    "react-helmet": "5.2.0",
    "react-intl": "2.4.0",
    "react-modal": "3.0.4",
    "react-redux": "5.0.6",
    "react-router": "3.2.0",
    "react-select": "1.0.0-rc.10",
    "react-virtualized": "9.12.0",
    "redux": "3.7.2",
    "redux-logger": "3.0.6",
    "redux-thunk": "2.2.0",
    "whatwg-fetch": "2.0.3"
  },
  "devDependencies": {
    "@types/classnames": "2.2.3",
    "@types/clipboard": "1.5.35",
    "@types/d3-array": "1.2.1",
    "@types/d3-scale": "1.0.10",
    "@types/enzyme": "3.1.6",
    "@types/jest": "22.0.1",
    "@types/keymaster": "1.6.28",
    "@types/lodash": "4.14.102",
    "@types/prop-types": "15.5.2",
    "@types/react": "16.0.29",
    "@types/react-dom": "16.0.3",
    "@types/react-helmet": "5.0.3",
    "@types/react-intl": "2.3.2",
    "@types/react-modal": "2.2.2",
    "@types/react-redux": "5.0.12",
    "@types/react-router": "3.0.13",
    "@types/react-select": "1.0.59",
    "@types/react-virtualized": "9.7.15",
    "autoprefixer": "7.1.6",
    "babel-core": "6.26.0",
    "babel-jest": "22.0.6",
    "babel-loader": "7.1.4",
    "babel-plugin-dynamic-import-node": "1.1.0",
    "babel-plugin-syntax-dynamic-import": "6.18.0",
    "babel-plugin-transform-class-properties": "^6.22.0",
    "babel-plugin-transform-object-rest-spread": "6.26.0",
    "babel-plugin-transform-react-constant-elements": "^6.22.0",
    "babel-plugin-transform-react-jsx-self": "^6.22.0",
    "babel-plugin-transform-react-jsx-source": "^6.22.0",
    "babel-preset-env": "1.6.1",
    "babel-preset-react": "^6.22.0",
    "chalk": "2.3.0",
    "clean-webpack-plugin": "0.1.19",
    "copy-webpack-plugin": "4.5.1",
    "css-loader": "0.28.11",
    "enzyme": "3.3.0",
    "enzyme-adapter-react-16": "1.1.1",
    "enzyme-to-json": "3.3.0",
    "escape-string-regexp": "1.0.5",
    "eslint": "4.19.1",
    "eslint-config-sonarqube": "0.1.0",
    "eslint-plugin-import": "2.11.0",
    "eslint-plugin-jsx-a11y": "6.0.3",
    "eslint-plugin-promise": "3.7.0",
    "eslint-plugin-react": "7.7.0",
    "eslint-plugin-sonarjs": "0.1.0",
    "expose-loader": "0.7.5",
    "flow-bin": "^0.52.0",
    "glob": "7.1.2",
    "glob-promise": "3.4.0",
    "html-webpack-plugin": "3.0.6",
    "jest": "22.0.6",
    "lint-staged": "4.3.0",
    "mini-css-extract-plugin": "0.2.0",
    "postcss-calc": "6.0.1",
    "postcss-custom-properties": "6.2.0",
    "postcss-loader": "2.1.1",
    "prettier": "1.11.1",
    "raw-loader": "0.5.1",
    "react-dev-utils": "5.0.0",
    "react-error-overlay": "1.0.7",
    "react-test-renderer": "16.2.0",
    "remark": "9.0.0",
    "remark-react": "4.0.1",
    "style-loader": "0.20.3",
    "ts-jest": "22.0.1",
    "ts-loader": "4.1.0",
    "typescript": "2.8.3",
    "typescript-eslint-parser": "15.0.0",
    "webpack": "4.1.1",
    "webpack-bundle-analyzer": "2.11.1",
    "webpack-dev-server": "3.1.1"
  },
  "scripts": {
    "start": "node scripts/start.js",
    "build": "node scripts/build.js",
    "build-fast": "node scripts/build.js --fast",
    "test": "node scripts/test.js",
    "coverage": "npm test -- --coverage",
    "format": "prettier --write --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
    "lint": "eslint --ext js,ts,tsx --quiet src/main/js",
    "flow-check": "flow check src/main/js",
    "ts-check": "tsc --noEmit",
    "validate": "yarn lint && yarn flow-check && yarn ts-check && NODE_ENV=test jest",
    "precommit": "yarn ts-check && lint-staged && yarn flow-check"
  },
  "engines": {
    "node": ">=6"
  },
  "browserslist": [
    "last 3 Chrome versions",
    "last 3 Firefox versions",
    "last 3 Safari versions",
    "last 3 Edge versions",
    "IE 11"
  ],
  "jest": {
    "coverageDirectory": "<rootDir>/target/coverage",
    "coveragePathIgnorePatterns": ["<rootDir>/node_modules", "<rootDir>/tests"],
    "mapCoverage": true,
    "moduleFileExtensions": ["ts", "tsx", "js", "json"],
    "moduleNameMapper": {
      "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
        "<rootDir>/config/jest/FileStub.js",
      "^.+\\.css$": "<rootDir>/config/jest/CSSStub.js"
    },
    "setupFiles": [
      "<rootDir>/config/polyfills.js",
      "<rootDir>/config/jest/SetupTestEnvironment.js",
      "<rootDir>/config/jest/SetupEnzyme.js"
    ],
    "snapshotSerializers": ["enzyme-to-json/serializer"],
    "testPathIgnorePatterns": [
      "<rootDir>/node_modules",
      "<rootDir>/src/main/webapp",
      "<rootDir>/scripts"
    ],
    "testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$",
    "transform": {
      "^.+\\.js$": "<rootDir>/node_modules/babel-jest",
      ".(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
    }
  },
  "prettier": {
    "jsxBracketSameLine": true,
    "printWidth": 100,
    "singleQuote": true
  },
  "lint-staged": {
    "gitDir": "../../",
    "linters": {
      "*.{css,json}": ["prettier --write", "git add"],
      "*.{js,ts,tsx}": [
        "eslint",
        "jest --bail --passWithNoTests --findRelatedTests",
        "prettier --write",
        "git add"
      ]
    }
  }
}