1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-18 16:08:03 +00:00

move views directory

This commit is contained in:
Nebel 2022-09-01 23:54:20 +09:00
parent 4c8e0a6fa7
commit 661b13e5ff
19 changed files with 8 additions and 8 deletions

View file

@ -6,14 +6,14 @@ import esbuild from "esbuild";
async function main() {
const port = Number(process.env.PORT ?? "8080");
const apiUrl = process.env.QUOT_API_URL || "http://127.0.0.1:3000";
const publicDir = __dirname;
const htmlPath = `${publicDir}/index.html`;
const scriptPath = `${publicDir}/index.ts`;
const viewsDir = `${__dirname}/views`;
const htmlPath = `${viewsDir}/index.html`;
const scriptPath = `${viewsDir}/index.ts`;
const result = await esbuild.serve(
{
host: "127.0.0.1",
servedir: publicDir,
servedir: viewsDir,
},
{
bundle: true,

View file

@ -4,7 +4,7 @@
"private": true,
"scripts": {
"test": "tsc --noEmit",
"start": "node -r esbuild-register src/server.ts"
"start": "node -r esbuild-register main.ts"
},
"engines": {
"node": "^18.7.0"

View file

@ -7,7 +7,7 @@ import {
} from "lexical";
import { registerPlainText } from "@lexical/plain-text";
import { onCleanup, onMount } from "solid-js";
import type Pages from "../protocol/pages";
import type Pages from "../../protocol/pages";
import "./editor.css";
const editor = createEditor();

View file

@ -1,5 +1,5 @@
import { createResource, For } from "solid-js";
import type Pages from "../protocol/pages";
import type Pages from "../../protocol/pages";
import Cards from "../components/cards";
import Card from "../components/card";

View file

@ -1,5 +1,5 @@
import { createResource } from "solid-js";
import type Pages from "../protocol/pages";
import type Pages from "../../protocol/pages";
import Editor from "../components/editor";
import beforeunload from "../helpers/beforeunload";
import throttle from "../helpers/throttle";