mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
parent
54e24669d2
commit
bbdf262d59
3 changed files with 1983 additions and 2621 deletions
74
package.json
74
package.json
|
@ -15,53 +15,53 @@
|
||||||
},
|
},
|
||||||
"repository": "https://github.com/LemmyNet/joinlemmy-site",
|
"repository": "https://github.com/LemmyNet/joinlemmy-site",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/parser": "^4.18.0",
|
"@typescript-eslint/parser": "^5.10.1",
|
||||||
"chota": "^0.8.0",
|
"chota": "^0.8.0",
|
||||||
"express": "~4.17.1",
|
"express": "~4.17.2",
|
||||||
"i18next": "^19.8.9",
|
"i18next": "^21.6.10",
|
||||||
"inferno": "^7.4.8",
|
"inferno": "^7.4.11",
|
||||||
"inferno-create-element": "^7.4.8",
|
"inferno-create-element": "^7.4.11",
|
||||||
"inferno-helmet": "^5.2.1",
|
"inferno-helmet": "^5.2.1",
|
||||||
"inferno-hydrate": "^7.4.8",
|
"inferno-hydrate": "^7.4.11",
|
||||||
"inferno-i18next": "github:nimbusec-oss/inferno-i18next#semver:^7.4.2",
|
"inferno-i18next": "github:nimbusec-oss/inferno-i18next#semver:^7.4.2",
|
||||||
"inferno-router": "^7.4.8",
|
"inferno-router": "^7.4.11",
|
||||||
"inferno-server": "^7.4.8"
|
"inferno-server": "^7.4.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.17",
|
"@babel/core": "^7.16.12",
|
||||||
"@babel/plugin-transform-runtime": "^7.12.17",
|
"@babel/plugin-transform-runtime": "^7.16.10",
|
||||||
"@babel/plugin-transform-typescript": "^7.12.17",
|
"@babel/plugin-transform-typescript": "^7.16.8",
|
||||||
"@babel/preset-env": "7.13.10",
|
"@babel/preset-env": "7.16.11",
|
||||||
"@babel/preset-typescript": "^7.12.17",
|
"@babel/preset-typescript": "^7.16.7",
|
||||||
"@babel/runtime": "^7.12.18",
|
"@babel/runtime": "^7.16.7",
|
||||||
"@types/express": "^4.17.11",
|
"@types/express": "^4.17.13",
|
||||||
"@types/node": "^14.14.35",
|
"@types/node": "^17.0.13",
|
||||||
"@types/node-fetch": "^2.5.8",
|
"@types/node-fetch": "^2.5.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.18.0",
|
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.3",
|
||||||
"babel-plugin-inferno": "^6",
|
"babel-plugin-inferno": "^6.3.0",
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"clean-webpack-plugin": "^4.0.0",
|
||||||
"copy-webpack-plugin": "^8.0.0",
|
"copy-webpack-plugin": "^10.2.2",
|
||||||
"countries-list": "^2.6.1",
|
"countries-list": "^2.6.1",
|
||||||
"css-loader": "^5.1.3",
|
"css-loader": "^6.5.1",
|
||||||
"eslint": "^7.20.0",
|
"eslint": "^8.8.0",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"husky": "^6.0.0",
|
"husky": "^7.0.4",
|
||||||
"lint-staged": "^10.5.4",
|
"lint-staged": "^12.3.2",
|
||||||
"mini-css-extract-plugin": "^1.3.8",
|
"mini-css-extract-plugin": "^2.5.3",
|
||||||
"node-sass": "^5.0.0",
|
"prettier": "^2.5.1",
|
||||||
"prettier": "^2.2.1",
|
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"run-node-webpack-plugin": "^1.3.0",
|
"run-node-webpack-plugin": "^1.3.0",
|
||||||
"sass-loader": "^11.0.1",
|
"sass": "^1.49.0",
|
||||||
|
"sass-loader": "^12.4.0",
|
||||||
"sortpack": "^2.2.0",
|
"sortpack": "^2.2.0",
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^3.3.1",
|
||||||
"terser": "^5.6.1",
|
"terser": "^5.10.0",
|
||||||
"typescript": "^4.1.5",
|
"typescript": "^4.5.5",
|
||||||
"webpack": "5.27.1",
|
"webpack": "5.67.0",
|
||||||
"webpack-cli": "^4.5.0",
|
"webpack-cli": "^4.9.2",
|
||||||
"webpack-dev-server": "3.11.2",
|
"webpack-dev-server": "4.7.3",
|
||||||
"webpack-node-externals": "^2.5.2"
|
"webpack-node-externals": "^3.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.9.0"
|
"node": ">=8.9.0"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import express from "express";
|
import express, { RequestHandler } from "express";
|
||||||
import { StaticRouter } from "inferno-router";
|
import { StaticRouter } from "inferno-router";
|
||||||
import { renderToString } from "inferno-server";
|
import { renderToString } from "inferno-server";
|
||||||
// import { matchPath } from "inferno-router";
|
// import { matchPath } from "inferno-router";
|
||||||
|
@ -12,8 +12,8 @@ import { i18n } from "../shared/i18next";
|
||||||
const server = express();
|
const server = express();
|
||||||
const port = 1234;
|
const port = 1234;
|
||||||
|
|
||||||
server.use(express.json());
|
server.use(express.json() as RequestHandler);
|
||||||
server.use(express.urlencoded({ extended: false }));
|
server.use(express.urlencoded({ extended: false }) as RequestHandler);
|
||||||
server.use("/static", express.static(path.resolve("./dist")));
|
server.use("/static", express.static(path.resolve("./dist")));
|
||||||
server.use("/docs", express.static(path.resolve("./dist/assets/docs")));
|
server.use("/docs", express.static(path.resolve("./dist/assets/docs")));
|
||||||
server.use("/api", express.static(path.resolve("./dist/assets/api")));
|
server.use("/api", express.static(path.resolve("./dist/assets/api")));
|
||||||
|
|
Loading…
Reference in a new issue