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:
parent
4c8e0a6fa7
commit
661b13e5ff
19 changed files with 8 additions and 8 deletions
|
@ -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,
|
|
@ -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"
|
||||
|
|
|
@ -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();
|
0
app/src/env.d.ts → app/views/env.d.ts
vendored
0
app/src/env.d.ts → app/views/env.d.ts
vendored
|
@ -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";
|
||||
|
|
@ -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";
|
Loading…
Add table
Reference in a new issue