@wix/ditto-codegen-public
v1.0.506
Published
AI-powered Wix CLI app generator - standalone executable
Maintainers
Keywords
Readme
@wix/ditto-codegen-public
Standalone, publishable build of codegen (@wix/ditto-codegen): a single esbuild bundle (dist/out.js, exposed as the package bin) plus the static files codegen reads at runtime. This is the artifact the codegen installer and preview flows consume.
Build (yarn build -> node build.mjs)
- Cleans
dist/andassets/. - Copies
../codegen/src/opencode-integration/opencode-tools(always-on tools and theenv-tools/subdir) todist/opencode-tools. - Copies the
assets/dir of every workspace package matchingcodegen-*-plugin*(the checkpoint and feature-vibe plugins) into one flatassets/dir. Plugin factories read these via__dirname/../assets/, which resolves to this package'sassets/once bundled. Same-named files from different plugins overwrite each other. - Bundles
dist/index.jsof../codegen(so@wix/ditto-codegenmust be built first, via turbo) intodist/out.jsfor Node 22 withesbuildkept external.SKILLS_OVERRIDE_BRANCH, if set at build time, is baked in.
Published files: dist and assets.
Tests (yarn test, runs after build via turbo.json)
test/bundle-startup.test.mjsboots the bundled CLI forSTUDIO_2and checks the generated plugins and tools.test/pack-install.e2e.test.mjspacks the package, installs the tarball in a sandbox and checks the shipped layout.
Related
packages/codegen/local-preview.shbuilds and uploads this package for preview runs.- packages/codegen/docs/plugins.md describes plugin asset bundling.
