19 lines
602 B
JavaScript
19 lines
602 B
JavaScript
import { Command } from "commander";
|
|
import grabConfig from "../../functions/grab-config";
|
|
import startServer from "../../functions/server/start-server";
|
|
import init from "../../functions/init";
|
|
export default function () {
|
|
return new Command("dev")
|
|
.description("Run development server")
|
|
.action(async () => {
|
|
console.log(`Running development server ...`);
|
|
await init();
|
|
const config = (await grabConfig()) || {};
|
|
global.CONFIG = {
|
|
...config,
|
|
development: true,
|
|
};
|
|
await startServer({ dev: true });
|
|
});
|
|
}
|