Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-06-11 21:36:41 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-06-11 21:36:41 +0300
commit7af4123b80917a702a19bc0807f4fde1a142e58a (patch)
treef3a340d6fa1578fcf43b9a02673e13c941664c8d
parent905214ae0b43d2a40acd435f0c9dbf370ade6c71 (diff)
Add basic TypeScript support
Adds a basic tsconfig.json file to be able to use TypeScript for static analysis of the JavaScripts files. TypeScript is not used for compilation yet. This enables the type checking in some IDEs. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
-rw-r--r--package.json5
-rw-r--r--tsconfig.json13
-rw-r--r--yarn.lock26
3 files changed, 42 insertions, 2 deletions
diff --git a/package.json b/package.json
index c1ee84ae73..06ad4b7b16 100644
--- a/package.json
+++ b/package.json
@@ -47,6 +47,8 @@
"webpack-concat-files-plugin": "^0.5.2"
},
"devDependencies": {
+ "@types/bootstrap": "^5.1.12",
+ "@types/jquery": "^3.5.14",
"babel-jest": "^27.3.1",
"eslint": "^7.32.0",
"eslint-plugin-compat": "^3.13.0",
@@ -55,7 +57,8 @@
"stylelint": "^13.13.1",
"stylelint-config-recommended-scss": "^4.3.0",
"stylelint-config-standard": "^22.0.0",
- "stylelint-scss": "^3.21.0"
+ "stylelint-scss": "^3.21.0",
+ "typescript": "^4.7.3"
},
"scripts": {
"postinstall": "yarn run build",
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000000..437066fae7
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,13 @@
+{
+ "compilerOptions": {
+ "target": "es6",
+ "module": "es6",
+ "allowJs": true,
+ "checkJs": true,
+ "outDir": "./build/js",
+ "allowSyntheticDefaultImports": true
+ },
+ "include": [
+ "./js/src/**/*"
+ ]
+}
diff --git a/yarn.lock b/yarn.lock
index b82027df25..d223d77334 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1252,7 +1252,7 @@
resolved "https://registry.yarnpkg.com/@petamoriken/float16/-/float16-3.6.3.tgz#7ed8f2ae05ea4096f0ccdf2c2655d04aca545d33"
integrity sha512-Yx6Z93kmz3JVPYoPPRFJXnt2/G4kfaxRROcZVVHsE4zOClJXvkOVidv/JfvP6hWn16lykbKYKVzUsId6mqXdGg==
-"@popperjs/core@^2.11.5":
+"@popperjs/core@^2.11.5", "@popperjs/core@^2.9.2":
version "2.11.5"
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.5.tgz#db5a11bf66bdab39569719555b0f76e138d7bd64"
integrity sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==
@@ -1324,6 +1324,13 @@
dependencies:
"@babel/types" "^7.3.0"
+"@types/bootstrap@^5.1.12":
+ version "5.1.12"
+ resolved "https://registry.yarnpkg.com/@types/bootstrap/-/bootstrap-5.1.12.tgz#4d704f6385fda2f1a56cc458f1f4cafab6e9f7e3"
+ integrity sha512-pSS5BGEgepwzdbsBGswBWFmgrnYpp7c4UfuYe1FJWwkrcjm/JVwfG4gBkOYtd92Otd3RdJK0ByBWMkBROfLEPw==
+ dependencies:
+ "@popperjs/core" "^2.9.2"
+
"@types/eslint-scope@^3.7.3":
version "3.7.3"
resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.3.tgz#125b88504b61e3c8bc6f870882003253005c3224"
@@ -1379,6 +1386,13 @@
dependencies:
"@types/istanbul-lib-report" "*"
+"@types/jquery@^3.5.14":
+ version "3.5.14"
+ resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.14.tgz#ac8e11ee591e94d4d58da602cb3a5a8320dee577"
+ integrity sha512-X1gtMRMbziVQkErhTQmSe2jFwwENA/Zr+PprCkF63vFq+Yt5PZ4AlKqgmeNlwgn7dhsXEK888eIW2520EpC+xg==
+ dependencies:
+ "@types/sizzle" "*"
+
"@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
version "7.0.11"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3"
@@ -1421,6 +1435,11 @@
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.6.1.tgz#76e72d8a775eef7ce649c63c8acae1a0824bbaed"
integrity sha512-XFjFHmaLVifrAKaZ+EKghFHtHSUonyw8P2Qmy2/+osBnrKbH9UYtlK10zg8/kCt47MFilll/DEDKy3DHfJ0URw==
+"@types/sizzle@*":
+ version "2.3.3"
+ resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.3.tgz#ff5e2f1902969d305225a047c8a0fd5c915cebef"
+ integrity sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==
+
"@types/stack-utils@^2.0.0":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
@@ -5587,6 +5606,11 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"
+typescript@^4.7.3:
+ version "4.7.3"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.3.tgz#8364b502d5257b540f9de4c40be84c98e23a129d"
+ integrity sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==
+
u2f-api-polyfill@0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/u2f-api-polyfill/-/u2f-api-polyfill-0.4.4.tgz#5ee8f6483386d684ca8deafcce979027f34272db"