]> source.dussan.org Git - sonarqube.git/commitdiff
add typings, update tsconfig (#2376)
authorStas Vilchik <stas.vilchik@sonarsource.com>
Thu, 17 Aug 2017 16:15:50 +0000 (18:15 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Aug 2017 16:15:50 +0000 (18:15 +0200)
server/sonar-web/package.json
server/sonar-web/tsconfig.json
server/sonar-web/yarn.lock

index abe6c44910756d5f2f1f543c2e80ca75551e1ef6..ae03fe49562c3e50e6659f5942d84c6b1842d823 100644 (file)
@@ -22,8 +22,8 @@
     "history": "3.3.0",
     "jquery": "2.2.0",
     "keymaster": "1.6.2",
-    "lodash": "4.6.1",
-    "moment": "2.10.6",
+    "lodash": "4.17.4",
+    "moment": "2.18.1",
     "numeral": "1.5.3",
     "rc-tooltip": "3.4.7",
     "react": "15.6.1",
     "@types/classnames": "2.2.0",
     "@types/enzyme": "2.8.6",
     "@types/jest": "20.0.7",
+    "@types/lodash": "4.14.73",
+    "@types/prop-types": "15.5.1",
     "@types/react": "16.0.2",
     "@types/react-dom": "15.5.2",
+    "@types/react-redux": "5.0.3",
+    "@types/react-router": "3.0.5",
     "autoprefixer": "7.1.1",
     "awesome-typescript-loader": "3.2.3",
     "babel-core": "^6.22.1",
index 5f686d844198c41fa57776588eeadc0f840a1ca9..6f5b468c4b0d60254a1b698bc0f331767272a74a 100644 (file)
@@ -6,8 +6,12 @@
     "noUnusedParameters": true,
     "noImplicitAny": true,
     "strict": true,
-    "target": "esnext",
-    "jsx": "react"
+    "target": "es5",
+    "jsx": "react",
+    "lib": ["es2017", "dom"],
+    "module": "es2015",
+    "moduleResolution": "node",
+    "typeRoots": ["./src/main/js/typings", "./node_modules/@types"]
   },
   "include": ["./src/main/js/**/*"]
 }
index cce2630ad4bb4a1514d28838aab0cbee71b793e4..75d358da6cb4098fe58acef3fdc7eede4ae35363 100644 (file)
     "@types/cheerio" "*"
     "@types/react" "*"
 
+"@types/history@^3":
+  version "3.2.1"
+  resolved "https://registry.yarnpkg.com/@types/history/-/history-3.2.1.tgz#0039ab0e0be2a0cc22bac171d27a44588103d123"
+
 "@types/jest@20.0.7":
   version "20.0.7"
   resolved "https://registry.yarnpkg.com/@types/jest/-/jest-20.0.7.tgz#39cd215db8bda03928dceb933a1e63eb2cbd210e"
 
+"@types/lodash@4.14.73":
+  version "4.14.73"
+  resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.73.tgz#9837e47db8643ba5bcef2c7921f37d90f9c24213"
+
 "@types/node@*":
   version "8.0.22"
   resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.22.tgz#9c6bfee1f45f5e9952ff6b487e657ecca48c7777"
 
+"@types/prop-types@15.5.1":
+  version "15.5.1"
+  resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.1.tgz#1ecf52621299e65b855374337fb11fd2d1066fc1"
+
 "@types/react-dom@15.5.2":
   version "15.5.2"
   resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-15.5.2.tgz#f7203c75a1728812355f037ea112611d082555e6"
     "@types/node" "*"
     "@types/react" "*"
 
+"@types/react-redux@5.0.3":
+  version "5.0.3"
+  resolved "https://registry.yarnpkg.com/@types/react-redux/-/react-redux-5.0.3.tgz#cd68de0c49c516b940fdc6f688535596b5d6eca4"
+  dependencies:
+    "@types/react" "*"
+    redux "^3.6.0"
+
+"@types/react-router@3.0.5":
+  version "3.0.5"
+  resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-3.0.5.tgz#ef5eea33f067d877586d06c464a5f864860be09d"
+  dependencies:
+    "@types/history" "^3"
+    "@types/react" "*"
+
 "@types/react@*", "@types/react@16.0.2":
   version "16.0.2"
   resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.2.tgz#0b31a73cdde6272b719e5b05a7df6d1e2654a804"
@@ -4309,11 +4335,7 @@ lodash.uniq@^4.5.0:
   version "4.5.0"
   resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
 
-lodash@4.6.1:
-  version "4.6.1"
-  resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.6.1.tgz#df00c1164ad236b183cfc3887a5e8d38cc63cbbc"
-
-lodash@^4.0.0, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
+lodash@4.17.4, lodash@^4.0.0, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
   version "4.17.4"
   resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
 
@@ -4502,9 +4524,9 @@ mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdi
   dependencies:
     minimist "0.0.8"
 
-moment@2.10.6:
-  version "2.10.6"
-  resolved "https://registry.yarnpkg.com/moment/-/moment-2.10.6.tgz#6cb21967c79cba7b0ca5e66644f173662b3efa77"
+moment@2.18.1:
+  version "2.18.1"
+  resolved "https://registry.yarnpkg.com/moment/-/moment-2.18.1.tgz#c36193dd3ce1c2eed2adb7c802dbbc77a81b1c0f"
 
 ms@2.0.0:
   version "2.0.0"
@@ -5810,6 +5832,15 @@ redux@3.3.1:
     lodash-es "^4.2.1"
     loose-envify "^1.1.0"
 
+redux@^3.6.0:
+  version "3.7.2"
+  resolved "https://registry.yarnpkg.com/redux/-/redux-3.7.2.tgz#06b73123215901d25d065be342eb026bc1c8537b"
+  dependencies:
+    lodash "^4.2.1"
+    lodash-es "^4.2.1"
+    loose-envify "^1.1.0"
+    symbol-observable "^1.0.3"
+
 regenerate@^1.2.1:
   version "1.3.2"
   resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.2.tgz#d1941c67bad437e1be76433add5b385f95b19260"
@@ -6534,6 +6565,10 @@ svgo@^0.7.0:
     sax "~1.2.1"
     whet.extend "~0.9.9"
 
+symbol-observable@^1.0.3:
+  version "1.0.4"
+  resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d"
+
 symbol-tree@^3.2.1:
   version "3.2.2"
   resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6"
@@ -6769,7 +6804,7 @@ ultron@~1.1.0:
   version "1.1.0"
   resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.0.tgz#b07a2e6a541a815fc6a34ccd4533baec307ca864"
 
-"underscore@1.4.4 - 1.8.3", underscore@1.8.3, "underscore@>=1.3.3 <=1.8.3", "underscore@>=1.4.0 <=1.8.3", underscore@>=1.7.0, underscore@>=1.8.3:
+"underscore@1.4.4 - 1.8.3", underscore@1.8.3, "underscore@>=1.3.3 <=1.8.3", "underscore@>=1.4.0 <=1.8.3", underscore@>=1.7.0:
   version "1.8.3"
   resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022"