Update watcher function. Add tests
This commit is contained in:
Vendored
+3
@@ -1,12 +1,15 @@
|
||||
import { Command } from "commander";
|
||||
import allPagesBundler from "../../functions/bundler/all-pages-bundler";
|
||||
import { log } from "../../utils/log";
|
||||
import init from "../../functions/init";
|
||||
export default function () {
|
||||
return new Command("build")
|
||||
.description("Build Project")
|
||||
.action(async () => {
|
||||
process.env.NODE_ENV = "production";
|
||||
process.env.BUILD = "true";
|
||||
await init();
|
||||
log.banner();
|
||||
log.build("Building Project ...");
|
||||
allPagesBundler({
|
||||
exit_after_first_build: true,
|
||||
|
||||
Reference in New Issue
Block a user