First working version

This commit is contained in:
2026-03-16 20:44:15 +01:00
parent ca9d6a75ff
commit 19d0ceb7db
24 changed files with 873 additions and 276 deletions
+5 -3
View File
@@ -1,9 +1,7 @@
import { Command } from "commander";
import grabConfig from "../../src/functions/grab-config";
import startServer from "../../src/functions/server/start-server";
import init from "../../src/functions/init";
import type { BunextConfig } from "../../src/types";
import grabAllPages from "../../src/utils/grab-all-pages";
import allPagesBundler from "../../src/functions/bundler/all-pages-bundler";
export default function () {
@@ -12,6 +10,8 @@ export default function () {
.action(async () => {
console.log(`Building Project ...`);
process.env.NODE_ENV = "production";
await init();
const config: BunextConfig = (await grabConfig()) || {};
@@ -21,6 +21,8 @@ export default function () {
development: true,
};
allPagesBundler();
allPagesBundler({
exit_after_first_build: true,
});
});
}