Correctly serving files for the client & web client
parent
f5c60b68f8
commit
de500ca151
21
file.ts
21
file.ts
|
@ -438,13 +438,18 @@ const CERTACCEPT_FILE_LIST: ProjectResource[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const APP_FILE_LIST = [
|
const CLIENT_APP_FILE_LIST = [
|
||||||
...APP_FILE_LIST_SHARED_SOURCE,
|
...APP_FILE_LIST_SHARED_SOURCE,
|
||||||
...APP_FILE_LIST_SHARED_VENDORS,
|
...APP_FILE_LIST_SHARED_VENDORS,
|
||||||
...APP_FILE_LIST_CLIENT_SOURCE,
|
...APP_FILE_LIST_CLIENT_SOURCE
|
||||||
...APP_FILE_LIST_WEB_SOURCE,
|
];
|
||||||
...APP_FILE_LIST_WEB_TEASPEAK,
|
|
||||||
...CERTACCEPT_FILE_LIST,
|
const WEB_APP_FILE_LIST = [
|
||||||
|
...APP_FILE_LIST_SHARED_SOURCE,
|
||||||
|
...APP_FILE_LIST_SHARED_VENDORS,
|
||||||
|
...APP_FILE_LIST_WEB_SOURCE,
|
||||||
|
...APP_FILE_LIST_WEB_TEASPEAK,
|
||||||
|
...CERTACCEPT_FILE_LIST,
|
||||||
];
|
];
|
||||||
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
|
@ -865,7 +870,7 @@ function php_exe() : string {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main_serve(target: "client" | "web", mode: "rel" | "dev", port: number) {
|
async function main_serve(target: "client" | "web", mode: "rel" | "dev", port: number) {
|
||||||
const files = await generator.search_files(APP_FILE_LIST, {
|
const files = await generator.search_files(target === "client" ? CLIENT_APP_FILE_LIST : WEB_APP_FILE_LIST, {
|
||||||
source_path: __dirname,
|
source_path: __dirname,
|
||||||
parameter: [],
|
parameter: [],
|
||||||
target: target,
|
target: target,
|
||||||
|
@ -884,7 +889,7 @@ async function main_serve(target: "client" | "web", mode: "rel" | "dev", port: n
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main_develop(node: boolean, target: "client" | "web", port: number, flags: string[]) {
|
async function main_develop(node: boolean, target: "client" | "web", port: number, flags: string[]) {
|
||||||
const files = await generator.search_files(APP_FILE_LIST, {
|
const files = await generator.search_files(target === "client" ? CLIENT_APP_FILE_LIST : WEB_APP_FILE_LIST, {
|
||||||
source_path: __dirname,
|
source_path: __dirname,
|
||||||
parameter: [],
|
parameter: [],
|
||||||
target: target,
|
target: target,
|
||||||
|
@ -960,7 +965,7 @@ async function git_tag() {
|
||||||
|
|
||||||
async function main_generate(target: "client" | "web", mode: "rel" | "dev", dest_path: string, args: any[]) {
|
async function main_generate(target: "client" | "web", mode: "rel" | "dev", dest_path: string, args: any[]) {
|
||||||
const begin = Date.now();
|
const begin = Date.now();
|
||||||
const files = await generator.search_files(APP_FILE_LIST, {
|
const files = await generator.search_files(target === "client" ? CLIENT_APP_FILE_LIST : WEB_APP_FILE_LIST, {
|
||||||
source_path: __dirname,
|
source_path: __dirname,
|
||||||
parameter: args,
|
parameter: args,
|
||||||
target: target,
|
target: target,
|
||||||
|
|
Loading…
Reference in New Issue