⬆️ bump dependencies
This commit is contained in:
@@ -6,11 +6,11 @@
|
|||||||
"repository": "github:platane/snk",
|
"repository": "github:platane/snk",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "26.0.15",
|
"@types/jest": "26.0.15",
|
||||||
"@types/node": "14.14.2",
|
"@types/node": "14.14.6",
|
||||||
"jest": "26.6.1",
|
"jest": "26.6.2",
|
||||||
"prettier": "2.1.2",
|
"prettier": "2.1.2",
|
||||||
"ts-jest": "26.4.1",
|
"ts-jest": "26.4.3",
|
||||||
"typescript": "4.0.3"
|
"typescript": "4.0.5"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/**"
|
"packages/**"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[
|
[
|
||||||
"interactive",
|
"interactive",
|
||||||
"getBestTunnel",
|
|
||||||
"getBestRoute",
|
"getBestRoute",
|
||||||
|
"getBestTunnel",
|
||||||
"outside",
|
"outside",
|
||||||
"getPathToPose",
|
"getPathToPose",
|
||||||
"getPathTo",
|
"getPathTo",
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ import * as grids from "@snk/types/__fixtures__/grid";
|
|||||||
import * as snakes from "@snk/types/__fixtures__/snake";
|
import * as snakes from "@snk/types/__fixtures__/snake";
|
||||||
import { grid, snake } from "./sample";
|
import { grid, snake } from "./sample";
|
||||||
|
|
||||||
const demos: string[] = require("./demo.json").filter(
|
const demos: string[] = require("./demo.json");
|
||||||
(x: any) => x !== "interactive"
|
|
||||||
);
|
|
||||||
|
|
||||||
export const gui = new GUI();
|
export const gui = new GUI();
|
||||||
|
|
||||||
|
|||||||
@@ -7,17 +7,17 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/dat.gui": "0.7.5",
|
"@types/dat.gui": "0.7.5",
|
||||||
"@types/webpack": "4.41.23",
|
"@types/webpack-dev-server": "3.11.1",
|
||||||
"dat.gui": "0.7.7",
|
"dat.gui": "0.7.7",
|
||||||
"html-webpack-plugin": "4.5.0",
|
"html-webpack-plugin": "5.0.0-alpha.10",
|
||||||
"ts-loader": "8.0.6",
|
"ts-loader": "8.0.7",
|
||||||
"ts-node": "9.0.0",
|
"ts-node": "9.0.0",
|
||||||
"webpack": "4.44.2",
|
"webpack": "5.4.0",
|
||||||
"webpack-cli": "3.3.12",
|
"webpack-cli": "4.1.0",
|
||||||
"webpack-dev-server": "3.11.0"
|
"webpack-dev-server": "3.11.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack",
|
"build": "webpack",
|
||||||
"dev": "webpack-dev-server --port ${PORT-3000}"
|
"dev": "webpack serve"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,22 @@
|
|||||||
import path from "path";
|
import path from "path";
|
||||||
import HtmlWebpackPlugin from "html-webpack-plugin";
|
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 demos: string[] = require("./demo.json");
|
||||||
|
|
||||||
const config: Configuration = {
|
const webpackDevServerConfiguration: WebpackDevServerConfiguration = {
|
||||||
|
open: true,
|
||||||
|
openPage: demos[1] + ".html",
|
||||||
|
};
|
||||||
|
|
||||||
|
const webpackConfiguration: WebpackConfiguration = {
|
||||||
mode: "development",
|
mode: "development",
|
||||||
entry: Object.fromEntries(
|
entry: Object.fromEntries(
|
||||||
demos.map((demo: string) => [demo, `./demo.${demo}`])
|
demos.map((demo: string) => [demo, `./demo.${demo}`])
|
||||||
),
|
),
|
||||||
|
target: ["web", "es2019"],
|
||||||
resolve: { extensions: [".ts", ".js"] },
|
resolve: { extensions: [".ts", ".js"] },
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, "dist"),
|
path: path.join(__dirname, "dist"),
|
||||||
@@ -48,7 +55,9 @@ const config: Configuration = {
|
|||||||
],
|
],
|
||||||
|
|
||||||
devtool: false,
|
devtool: false,
|
||||||
stats: "errors-only",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default {
|
||||||
|
...webpackConfiguration,
|
||||||
|
devServer: webpackDevServerConfiguration,
|
||||||
|
};
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"@snk/compute": "1.0.0",
|
"@snk/compute": "1.0.0",
|
||||||
"@snk/draw": "1.0.0",
|
"@snk/draw": "1.0.0",
|
||||||
"canvas": "2.6.1",
|
"canvas": "2.6.1",
|
||||||
"execa": "4.0.3",
|
"execa": "4.1.0",
|
||||||
"tmp": "0.2.1"
|
"tmp": "0.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"fast-xml-parser": "3.17.4"
|
"fast-xml-parser": "3.17.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node-fetch": "2.5.7",
|
"@types/node-fetch": "2.5.7"
|
||||||
"@types/jsdom": "16.2.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user