diff --git a/public/.gitignore b/public/.gitignore index e69de29..28c76d1 100644 --- a/public/.gitignore +++ b/public/.gitignore @@ -0,0 +1,3 @@ +node_modules +*.js +*.js.map \ No newline at end of file diff --git a/public/data/scripts/ts/init.ts b/public/data/scripts/ts/init.ts index a7132ee..bd7707d 100644 --- a/public/data/scripts/ts/init.ts +++ b/public/data/scripts/ts/init.ts @@ -4,7 +4,7 @@ let debug = false, font: any, settings: any; -let socket: SocketIOClient.Socket; +let socket: any; let antiCacheQuery = '?_=' + new Date().getTime(); diff --git a/public/index.html b/public/index.html index a9df29d..cd4f38d 100644 --- a/public/index.html +++ b/public/index.html @@ -3,6 +3,7 @@ + diff --git a/public/package-lock.json b/public/package-lock.json index 41e5c8e..2e1b558 100644 --- a/public/package-lock.json +++ b/public/package-lock.json @@ -8,7 +8,8 @@ "name": "pendulum", "version": "1.0.0", "devDependencies": { - "@types/jquery": "^3.5.16" + "@types/jquery": "^3.5.16", + "typescript": "^5.0.2" } }, "node_modules/@types/jquery": { @@ -25,6 +26,19 @@ "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz", "integrity": "sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==", "dev": true + }, + "node_modules/typescript": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz", + "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=12.20" + } } }, "dependencies": { @@ -42,6 +56,12 @@ "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz", "integrity": "sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==", "dev": true + }, + "typescript": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz", + "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==", + "dev": true } } } diff --git a/public/package.json b/public/package.json index 6f15359..cf290ea 100644 --- a/public/package.json +++ b/public/package.json @@ -1,7 +1,8 @@ { - "name": "public", - "version": "1.0.0", - "dependencies": { - - } + "name": "pendulum", + "version": "1.0.0", + "devDependencies": { + "@types/jquery": "^3.5.16", + "typescript": "^5.0.2" + } }