Skip to content

v1.2.4 - Smart Build Commands & PM Auto-Detection

Choose a tag to compare

@iulian-mnk iulian-mnk released this 07 Sep 09:47
· 73 commits to main since this release

Added

  • Dedicated kodall-deploy build CLI Runner:
    • Run framework and package-manager aware project builds standalone via kodall-deploy build or kodall-deploy --build.
    • Added Build web application (run build script) action directly to the main interactive CLI menu (npx kodall-deploy).
    • Supports custom build command overrides via --build-cmd <cmd> or positional arguments.
    • Verifies target output folder (e.g. ./dist/index.html or ./.output/public/index.html) after execution and provides framework-specific tips.
  • Zero-Configuration-Drift Package Manager Detection:
    • Dynamically auto-detects pnpm, yarn, bun, and npm at runtime from Corepack packageManager or project lockfiles.
    • Avoids hardcoding package manager prefixes (npm run, pnpm, etc.) inside kodall-webapp.config.json.
  • Smart Script References & Interactive Filtering:
    • Config files store clean package.json script name references (e.g. "build", "generate", "generate:prod").
    • Interactive selection lists in --init, --add-env, and build automatically filter out non-build lifecycle and dev scripts (dev, start, serve, preview, test, lint, postinstall, deploy).
    • Nuxt static generation scripts (generate, generate:dev, generate:staging, generate:prod) are automatically detected and prioritized at the top of selection menus.
    • Prompts offer automatic persistence to kodall-webapp.config.json when running builds interactively.
  • Environment Management Aliases:
    • Added --update-env [name] and --edit-env [name] as direct CLI aliases for --add-env.
  • Programmatic API Exports:
    • Exported resolveBuildCommand, formatCommandOrScript, getAvailableBuildScripts, resolvePackageManager, getRunScriptCommand, and getExecCommand.