Removing Typescript on maps container

Typescript is almost not used on this container (and causing a bunch of startup errors that are not important but worrying first time users). Removing it completely.
This commit is contained in:
David Négrier 2022-04-11 22:35:58 +02:00
parent 28778b8de4
commit a689756d85
6 changed files with 21 additions and 1285 deletions

View File

@ -114,7 +114,6 @@ services:
#APACHE_EXTENSION_HEADERS: 1 #APACHE_EXTENSION_HEADERS: 1
STARTUP_COMMAND_0: sudo a2enmod headers STARTUP_COMMAND_0: sudo a2enmod headers
STARTUP_COMMAND_1: yarn install STARTUP_COMMAND_1: yarn install
STARTUP_COMMAND_2: yarn run dev &
volumes: volumes:
- ./maps:/var/www/html - ./maps:/var/www/html
labels: labels:

View File

@ -3,14 +3,6 @@
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": {
"tsc": "tsc",
"dev": "tsc -w",
"prod": "tsc",
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "node_modules/.bin/eslint src/ . --ext .ts",
"fix": "node_modules/.bin/eslint --fix src/ . --ext .ts"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/thecodingmachine/workadventure.git" "url": "git+https://github.com/thecodingmachine/workadventure.git"
@ -34,16 +26,7 @@
"url": "https://github.com/thecodingmachine/workadventure/issues" "url": "https://github.com/thecodingmachine/workadventure/issues"
}, },
"homepage": "https://github.com/thecodingmachine/workadventure#readme", "homepage": "https://github.com/thecodingmachine/workadventure#readme",
"dependencies": {
"ts-node-dev": "^1.0.0-pre.44",
"typescript": "^3.8.3"
},
"devDependencies": { "devDependencies": {
"@types/jasmine": "^3.5.10",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"eslint": "^6.8.0",
"jasmine": "^3.5.0",
"@workadventure/iframe-api-typings": "^1.4.15" "@workadventure/iframe-api-typings": "^1.4.15"
} }
} }

View File

@ -223,7 +223,7 @@
{ {
"name":"script", "name":"script",
"type":"string", "type":"string",
"value":"..\/dist\/script.js" "value":"./script.js"
}], }],
"renderorder":"right-down", "renderorder":"right-down",
"tiledversion":"1.7.0", "tiledversion":"1.7.0",

View File

@ -1,6 +1,6 @@
/// <reference path="../node_modules/@workadventure/iframe-api-typings/iframe_api.d.ts" /> /// <reference path="../node_modules/@workadventure/iframe-api-typings/iframe_api.d.ts" />
let currentPopup: any = undefined; let currentPopup = undefined;
const today = new Date(); const today = new Date();
const time = today.getHours() + ":" + today.getMinutes(); const time = today.getHours() + ":" + today.getMinutes();

View File

@ -1,27 +0,0 @@
{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"moduleResolution": "node",
"module": "CommonJS",
"target": "ES2015",
"downlevelIteration": true,
"jsx": "react",
"allowJs": true,
"strict": false, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"strictNullChecks": true, /* Enable strict null checks. */
"strictFunctionTypes": true, /* Enable strict checking of function types. */
"strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
"strictPropertyInitialization": false, /* Enable strict checking of property initialization in classes. */
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */
},
"include": [
"**/*.ts"
]
}

File diff suppressed because it is too large Load Diff