@barefootjs/erb 0.30.5 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/build.ts DELETED
@@ -1,37 +0,0 @@
1
- // ERB build config factory for barefoot.config.ts
2
-
3
- import type { BuildOptions } from '@barefootjs/jsx'
4
- import { ErbAdapter } from './adapter/index.ts'
5
- import type { ErbAdapterOptions } from './adapter/index.ts'
6
-
7
- export interface ErbBuildOptions extends BuildOptions {
8
- /** Adapter-specific options passed to ErbAdapter */
9
- adapterOptions?: ErbAdapterOptions
10
- }
11
-
12
- /**
13
- * Create a BarefootBuildConfig for ERB (Embedded Ruby) template projects.
14
- *
15
- * Uses structural typing — does not import BarefootBuildConfig to avoid a
16
- * circular dependency between @barefootjs/erb and @barefootjs/cli.
17
- */
18
- export function createConfig(options: ErbBuildOptions = {}) {
19
- return {
20
- adapter: new ErbAdapter(options.adapterOptions),
21
- paths: options.paths,
22
- components: options.components,
23
- outDir: options.outDir,
24
- minify: options.minify,
25
- contentHash: options.contentHash,
26
- externals: options.externals,
27
- externalsBasePath: options.externalsBasePath,
28
- bundleEntries: options.bundleEntries,
29
- localImportPrefixes: options.localImportPrefixes,
30
- outputLayout: options.outputLayout ?? {
31
- templates: 'templates',
32
- clientJs: 'client',
33
- runtime: 'client',
34
- },
35
- postBuild: options.postBuild,
36
- }
37
- }