gro_plugin_server.ts view source
CreateOutpaths 6 declarations
gro_plugin_server.ts view source
CreateOutpaths gro_plugin_server.ts view source
({ entry_points, dir, outpaths, env_files, ambient_env, svelte_config, target, esbuild_build_options, rebuild_throttle_delay, cli_command, run, }?: GroPluginServerOptions): Plugin<PluginContext<object>> __0{}Plugin<PluginContext<object>> gro_plugin_server.ts view source
GroPluginServerOptions entry_pointssame as esbuild's entryPoints
Array<string>dirstringoutpathsReturns the Outpaths given a dev param. Decoupling this from plugin creation allows it to be created generically, so the build and dev tasks can be the source of truth for dev.
env_filesArray<string>ambient_envRecord<string, string>svelte_configSvelteConfigtargetstringesbuild_build_optionsOptionally map the esbuild options.
(base_options: esbuild.BuildOptions) => esbuild.BuildOptionsrebuild_throttle_delayMilliseconds to throttle rebuilds. Should be longer than it takes to build to avoid backpressure.
numbercli_commandThe CLI command to run the server, like 'node' or 'bun' or 'deno'.
Receives the path to the server js file as its argument.
stringrunWhether to run the server or not after building.
booleangro_plugin_server.ts view source
(path?: PathId): Promise<Result<object, { message: string; }>> pathPathIdSERVER_SOURCE_IDPromise<Result<object, { message: string; }>> gro_plugin_server.ts view source
Outpaths outdirstringoutbasestringoutnamestringgro_plugin_server.ts view source
PathId