Skip to content

Commit 46c8905

Browse files
committed
enabling the usage of docker tags, fixing tests to use docker mode
1 parent d8e7b48 commit 46c8905

24 files changed

+658
-2959
lines changed

Dockerfile

Lines changed: 0 additions & 37 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ npm install eleventy-plugin-scad
1717
- **launchPath** _(string)_: Location of the OpenSCAD executable (required)
1818
- `auto` - Attempts to use `process.platform` to find OpenSCAD in the default install locations
1919
- `nightly` - Works the same as above for the `nightly` version of OpenSCAD
20+
- `docker` - Download and use containerized OpenSCAD to render _(default: trixie)_:
21+
- `docker:TAG` - You can append a [container tag](https://hub.docker.com/r/openscad/openscad) to use a specific version.
2022
- `C:/openscad.exe` - Absolute paths work too
2123
- `openscad` - or in a bin folder and available on your `$PATH`
2224
- **layout**: Use a custom layout for the scad files

biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.4/schema.json",
33
"root": true,
44
"vcs": {
55
"enabled": true,

demo.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

dist/index.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import z from "zod";
22
import { EleventyScope, EleventySuppliedData } from "11ty.ts";
33

44
//#region rolldown:runtime
5+
56
//#endregion
67
//#region src/core/const.d.ts
78
declare const THEMES: readonly ["Traditional", "Modernist", "Midnight", "Chocolate", "Oldstyle", "Steely", "Swiss", "Ultramarine"];
@@ -27,7 +28,7 @@ declare const PluginOptionsSchema: z.ZodObject<{
2728
noSTL: z.ZodDefault<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>>;
2829
}, z.core.$strip>;
2930
declare namespace types_d_exports {
30-
export { EleventyDirs, FullPageData, MainPlatforms, ModelViewerTheme, ParsedPluginOptions, PlatformMap, PluginOptions, PluginOptionsInput, ScadTemplateData };
31+
export { DockerTag, EleventyDirs, FullPageData, MainPlatforms, ModelViewerTheme, ParsedPluginOptions, PlatformMap, PluginOptions, PluginOptionsInput, ScadTemplateData };
3132
}
3233
import * as import__11ty_ts from "11ty.ts";
3334
__reExport(types_d_exports, import__11ty_ts);
@@ -37,6 +38,7 @@ type ParsedPluginOptions = z.output<typeof PluginOptionsSchema>;
3738
type PluginOptionsInput = Omit<z.input<typeof PluginOptionsSchema>, "launchPath"> & {
3839
launchPath: "auto" | "nightly" | "docker" | (string & {});
3940
};
41+
type DockerTag = "latest" | "trixie" | "bookworm" | (string & {});
4042
type ScadTemplateData = {
4143
layout: string;
4244
title: string;
@@ -99,9 +101,9 @@ declare const SCAD_BINS: {
99101
* Returns the OpenSCAD binary path for the current platform.
100102
*/
101103
declare namespace index_d_exports {
102-
export { EleventyDirs, EleventyPluginOpenSCAD, FullPageData, MainPlatforms, ModelViewerTheme, ParsedPluginOptions, PlatformMap, PluginOptions, PluginOptionsInput, SCAD_BINS, ScadTemplateData, addOpenSCADPlugin, EleventyPluginOpenSCAD as default };
104+
export { DockerTag, EleventyDirs, EleventyPluginOpenSCAD, FullPageData, MainPlatforms, ModelViewerTheme, ParsedPluginOptions, PlatformMap, PluginOptions, PluginOptionsInput, SCAD_BINS, ScadTemplateData, addOpenSCADPlugin, EleventyPluginOpenSCAD as default };
103105
}
104106
__reExport(index_d_exports, types_d_exports);
105107

106108
//#endregion
107-
export { EleventyDirs, EleventyPluginOpenSCAD, FullPageData, MainPlatforms, ModelViewerTheme, ParsedPluginOptions, PlatformMap, PluginOptions, PluginOptionsInput, SCAD_BINS, ScadTemplateData, addOpenSCADPlugin, EleventyPluginOpenSCAD as default };
109+
export { DockerTag, EleventyDirs, EleventyPluginOpenSCAD, FullPageData, MainPlatforms, ModelViewerTheme, ParsedPluginOptions, PlatformMap, PluginOptions, PluginOptionsInput, SCAD_BINS, ScadTemplateData, addOpenSCADPlugin, EleventyPluginOpenSCAD as default };

dist/index.js

Lines changed: 72 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)