Skip to content

Commit

Permalink
start adding setup standalone page
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed Jul 17, 2024
1 parent 1733f52 commit 505a6a4
Show file tree
Hide file tree
Showing 1,295 changed files with 1,380 additions and 21,650 deletions.
2 changes: 1 addition & 1 deletion docs/vue2md.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require("path");
// Merge all components md on this file name
const finalFile = "ui-components.md";
// Where we have all SFC components
const inputFolder = path.join(__dirname, "../src/client/vite/src/components");
const inputFolder = path.join(__dirname, "../src/client/dashboard/src/components");
// Where we want to output md components file
const ouputFolder = path.join(__dirname, "components");

Expand Down
9 changes: 8 additions & 1 deletion src/client/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { execSync } = require("child_process");
const { resolve } = require("path");
const fs = require("fs");

const frontDir = "/vite";
const frontDir = "/dashboard";
const clientBuildDir = "static";
const appStaticDir = "../ui/static";
const appTempDir = "../ui/templates";
Expand Down Expand Up @@ -181,13 +181,20 @@ async function delPrevDirs() {
delElRecursive(`${appStaticDir}/img`);
}

async function buildSetup() {
// Build setup
runCommand("/setup", "npm install");
runCommand("/setup", "npm run build");
}

async function build() {
// Build client and setup
await delPrevDirs();
await buildVite();
await updateClientDir();
await setBuildTempToUI();
await moveBuildStaticToUI();
await buildSetup();
}

build();
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 505a6a4

Please sign in to comment.