Merge branch 'master' of github.com:ValdoTR/workadventure-map-starter-kit

pull/27/head
Valdo Romao 2 years ago
commit 69a92d1846
  1. 7656
      package-lock.json
  2. 15
      package.json
  3. 5
      src/index.ts
  4. 8
      webpack.config.js

7656
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -4,15 +4,15 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@workadventure/iframe-api-typings": "^1.4.0",
"@workadventure/iframe-api-typings": "^1.4.15",
"eslint": "^7.24.0",
"html-webpack-plugin": "^5.3.1",
"ts-loader": "^8.1.0",
"ts-node": "^9.1.1",
"html-webpack-plugin": "^5.3.2",
"ts-loader": "^9.2.5",
"ts-node": "^10.2.1",
"typescript": "^4.2.4",
"webpack": "^5.31.2",
"webpack-cli": "^4.6.0",
"webpack-dev-server": "^3.11.2",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.1.0",
"webpack-merge": "^5.7.3"
},
"scripts": {
@ -22,5 +22,8 @@
"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"
},
"dependencies": {
"@workadventure/scripting-api-extra": "^1.0.4"
}
}

@ -1,5 +1,10 @@
/// <reference path="../node_modules/@workadventure/iframe-api-typings/iframe_api.d.ts" />
import {bootstrapExtra} from "@workadventure/scripting-api-extra";
// The line below bootstraps the Scripting API Extra library that adds a number of advanced properties/features to WorkAdventure.
bootstrapExtra().catch(e => console.error(e));
let currentPopup: any = undefined;
const today = new Date();
const time = today.getHours() + ":" + today.getMinutes();

@ -7,11 +7,11 @@ module.exports = {
entry: './src/index.ts',
devtool: 'inline-source-map',
devServer: {
contentBase: '.',
//host: '0.0.0.0',
host: 'localhost',
static: ['.'],
host: '0.0.0.0',
//host: 'localhost',
//sockPort: 80,
disableHostCheck: true,
allowedHosts: "all",
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",

Loading…
Cancel
Save