Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/wormhole/src/build/adapters/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface DevAdapter extends BuildAdapter<DevAdapterResult> {

export function DevAdapter(): DevAdapter {
return {
target: "Embedded Dev Server",
async buildForLocation(build: Build, location: TargetLocation) {
using _task = addTask({
name: `Rebuilding development ${location}`
Expand Down
1 change: 1 addition & 0 deletions packages/wormhole/src/build/adapters/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type VercelRoute = { src: string, dest: string, check?: boolean } | { handle: Ha

export function VercelAdapter(): VercelAdapter {
return {
target: "Vercel",
async buildClientBundle(build: Build) {
using _task = addTask({
name: "Building client bundle for Vercel"
Expand Down
1 change: 1 addition & 0 deletions packages/wormhole/src/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface BuildPageRoute extends BuildBaseRoute<"route"> {
export type BuildRoute = BuildAPIRoute | BuildPageRoute;

export interface BuildAdapter<AdapterOutput> {
target: string;
run(
build: Build<AdapterOutput>,
): Promise<AdapterOutput>;
Expand Down
6 changes: 1 addition & 5 deletions packages/wormhole/src/cli/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ const commands = [
const build = new Build(state, adapter);
const result = await build.run();

console.log(`Build completed successfully!`);
console.log(`Output directory: ${result.outputDir}`);
console.log(`Static directory: ${result.staticDir}`);
console.log(`Functions directory: ${result.functionsDir}`);
console.log(`Config file: ${result.configFile}`);
console.log(`Successfully built for ${adapter.target}`);
}, "build", optional(positional("platform")))
]

Expand Down