{"library":"samengine-build","title":"Samengine Build Tool","description":"Samengine Build is a command-line interface (CLI) and potentially programmatic utility designed to facilitate the build and export processes for projects developed with the `samengine` game engine. As of version 1.7.10, this tool likely provides functionalities related to compiling game assets, bundling game code, and preparing exportable packages for various target platforms supported by `samengine`. It acts as the dedicated build utility within the `samengine` ecosystem, streamlining the development workflow for creators using that specific engine. Due to its highly specialized application, specific details regarding its release cadence are not extensively publicized, but updates typically focus on maintenance, compatibility, and core integrations rather than rapid, broad feature expansion. Its primary differentiator is its deep and direct integration with the `samengine` platform, offering an optimized and coherent build experience tailored for that environment.","language":"javascript","status":"maintenance","last_verified":"Sun Apr 19","install":{"commands":["npm install samengine-build"],"cli":{"name":"samengine-build","version":null}},"imports":["import { build } from 'samengine-build';","import { exportProject } from 'samengine-build';","import * as SamengineBuild from 'samengine-build';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { build, exportProject } from 'samengine-build';\n\nasync function runBuildAndExport() {\n  console.log('Starting samengine project build...');\n  try {\n    // Assuming a default build function that takes an optional config path\n    const buildResult = await build({ projectPath: './src', outputPath: './build' });\n    console.log(`Build successful: ${buildResult.message}`);\n\n    console.log('Starting project export...');\n    // Assuming exportProject also takes similar paths and a target platform\n    const exportResult = await exportProject({\n      projectPath: './build',\n      targetPlatform: 'desktop',\n      exportPath: './dist',\n      // Authentication might be required for some export targets\n      apiKey: process.env.SAMENGINE_API_KEY ?? ''\n    });\n    console.log(`Export successful: ${exportResult.message}`);\n  } catch (error) {\n    console.error(`Build or export failed: ${error.message}`);\n    process.exit(1);\n  }\n}\n\nrunBuildAndExport();\n\n// CLI Usage Example (usually run via `npx` or `npm run build`)\n// npx samengine-build build --projectPath ./src --outputPath ./build\n// npx samengine-build export --platform desktop --outputPath ./dist","lang":"typescript","description":"This quickstart demonstrates both programmatic usage and typical CLI invocation for building and exporting a samengine project, handling success and failure.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}