⬆️ bump dependencies

This commit is contained in:
platane
2020-11-03 23:59:40 +01:00
parent e61a38f66a
commit 24e7a1ceec
8 changed files with 906 additions and 1408 deletions

View File

@@ -6,11 +6,11 @@
"repository": "github:platane/snk",
"devDependencies": {
"@types/jest": "26.0.15",
"@types/node": "14.14.2",
"jest": "26.6.1",
"@types/node": "14.14.6",
"jest": "26.6.2",
"prettier": "2.1.2",
"ts-jest": "26.4.1",
"typescript": "4.0.3"
"ts-jest": "26.4.3",
"typescript": "4.0.5"
},
"workspaces": [
"packages/**"

View File

@@ -1,7 +1,7 @@
[
"interactive",
"getBestTunnel",
"getBestRoute",
"getBestTunnel",
"outside",
"getPathToPose",
"getPathTo",

View File

@@ -3,9 +3,7 @@ import * as grids from "@snk/types/__fixtures__/grid";
import * as snakes from "@snk/types/__fixtures__/snake";
import { grid, snake } from "./sample";
const demos: string[] = require("./demo.json").filter(
(x: any) => x !== "interactive"
);
const demos: string[] = require("./demo.json");
export const gui = new GUI();

View File

@@ -7,17 +7,17 @@
},
"devDependencies": {
"@types/dat.gui": "0.7.5",
"@types/webpack": "4.41.23",
"@types/webpack-dev-server": "3.11.1",
"dat.gui": "0.7.7",
"html-webpack-plugin": "4.5.0",
"ts-loader": "8.0.6",
"html-webpack-plugin": "5.0.0-alpha.10",
"ts-loader": "8.0.7",
"ts-node": "9.0.0",
"webpack": "4.44.2",
"webpack-cli": "3.3.12",
"webpack": "5.4.0",
"webpack-cli": "4.1.0",
"webpack-dev-server": "3.11.0"
},
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --port ${PORT-3000}"
"dev": "webpack serve"
}
}

View File

@@ -1,15 +1,22 @@
import path from "path";
import HtmlWebpackPlugin from "html-webpack-plugin";
import type { Configuration } from "webpack";
import type { Configuration as WebpackConfiguration } from "webpack";
import type { Configuration as WebpackDevServerConfiguration } from "webpack-dev-server";
const demos: string[] = require("./demo.json");
const config: Configuration = {
const webpackDevServerConfiguration: WebpackDevServerConfiguration = {
open: true,
openPage: demos[1] + ".html",
};
const webpackConfiguration: WebpackConfiguration = {
mode: "development",
entry: Object.fromEntries(
demos.map((demo: string) => [demo, `./demo.${demo}`])
),
target: ["web", "es2019"],
resolve: { extensions: [".ts", ".js"] },
output: {
path: path.join(__dirname, "dist"),
@@ -48,7 +55,9 @@ const config: Configuration = {
],
devtool: false,
stats: "errors-only",
};
export default config;
export default {
...webpackConfiguration,
devServer: webpackDevServerConfiguration,
};

View File

@@ -5,7 +5,7 @@
"@snk/compute": "1.0.0",
"@snk/draw": "1.0.0",
"canvas": "2.6.1",
"execa": "4.0.3",
"execa": "4.1.0",
"tmp": "0.2.1"
},
"devDependencies": {

View File

@@ -6,7 +6,6 @@
"fast-xml-parser": "3.17.4"
},
"devDependencies": {
"@types/node-fetch": "2.5.7",
"@types/jsdom": "16.2.4"
"@types/node-fetch": "2.5.7"
}
}

2266
yarn.lock

File diff suppressed because it is too large Load Diff