Loading...
Loading...
Compile and deploy Dart apps for various native and web target platforms.
npx skill4agent add dart-lang/skills dart-compilation-deploymentdart:mirrorsdart compile jsdart compile wasmdart-web-developmentdart compile exedart compile aot-snapshotdartaotruntimedart compile jit-snapshotdart compile kernel.dillexedart compile exe bin/main.dart -o build/app.exedart compile exe \
--target-os=linux \
--target-arch=arm64 \
bin/main.dart -o build/app_linux_arm64dart compile aot-snapshot bin/main.dart -o build/app.aotdartaotruntime build/app.aot# Compile to JS with aggressive optimizations (O2 is safe, O3/O4 omit type checks)
dart compile js -O2 -o build/app.js web/main.dart
# Compile to WebAssembly
dart compile wasm web/main.dart -o build/app.wasmdart compile jit-snapshot bin/main.dart -o build/app.jit
dart run build/app.jitdart compile kernel bin/main.dart -o build/app.dill
dart run build/app.dill# Verify file generation
ls -la build/
# Test execution (example for exe)
./build/app.exedart build-O3-O4-O2dart compile exedart compile aot-snapshotdart builddart:mirrorsdart:developerexeaot-snapshotdart compile exedart compile jsdart compile wasmdartaotruntime-O3-O4ErrorTypeError