aim_cli 0.4.0
aim_cli: ^0.4.0 copied to clipboard
Command-line tools for the Aim framework with project scaffolding, development server, and hot reload support.
0.4.0 #
See Release Notes
0.3.0 #
aim.target: functionsin pubspec.yaml.aim create --target functionsscaffolds a flat Cloud Functions for Firebase project (firebase.jsonwith"source": "."next topubspec.yaml,bin/server.dart,lib/src/server.dart, and an optional.firebaserc).aim devstartsfirebase emulators:start --only functions;aim buildis a no-op for this target, since the Firebase CLI compiles and deploys on its own.
0.2.0 #
- Requires analyzer ^14.0.0.
release:bumpnow also updates theaim_*dependency pins inside theaim createtemplates.aim.target(server|edge) in pubspec.yaml. Withedge,aim buildrunsdart compile wasmintobuild/edge/andaim devrunsnpx wrangler@4 devwith wasm recompilation on change.aim create --target edgescaffolds a Cloudflare workerd project (lib/main.dart,src/index.mjs,wrangler.jsonc).aim:configuration is now parsed withpackage:yaml. Entry resolution is--entry>aim.entry> default for bothdevandbuild(previouslydevletaim.entryoverride--entry).- Server template's
aim_serverpin is kept in sync with the release version byrelease:bump(was hard-coded^0.0.6).
0.1.1 #
See Release Notes
0.1.0 #
See Release Notes
0.0.2 #
Production build and Docker support.
Features #
- Production Build:
aim buildcommand to compile server for production deployment- Native executable compilation using
dart compile exe - Automatic entry point detection from
pubspec.yaml - Configurable output path with
--outputoption - Default output:
build/server
- Docker Support:
- Dockerfile template with multi-stage build
- Optimized for minimal image size using
scratchbase .dockerignoretemplate to exclude unnecessary files- Production-ready Docker configuration
- Enhanced Project Templates:
- Updated README with production deployment instructions
- Environment variable usage examples for native and Docker deployments
- Security best practices for environment variable handling
- Simplified
pubspec.yamlwithaim_server: ^0.0.6
Commands #
aim build [options]- Compile server for production deployment-e, --entry- Specify server entry point-o, --output- Specify output file path
Security #
- Environment variables are not embedded at compile time
- Runtime environment variable support for secure configuration management
- Compatible with Docker secrets and Kubernetes ConfigMaps
0.0.1 #
Initial release of aim_cli - Command-line tools for the Aim web framework.
Features #
- Project Scaffolding:
aim createcommand to generate new Aim projects- Pre-configured project structure with best practices
- Automatic generation of example routes and middleware
- Development Server:
aim devcommand to start development server- Hot reload support with automatic server restart on file changes
- Configurable entry point
- Environment variable support from
pubspec.yaml
- File Watching:
- Monitors
.dartfiles andpubspec.yamlfor changes - Debounced file watching (500ms) to avoid excessive restarts
- Configurable watch directories
- Monitors
- Process Management:
- Graceful shutdown with SIGTERM
- Force kill fallback with SIGKILL
- Clean process lifecycle management
- Project Validation:
- Project name validation (lowercase, alphanumeric, underscores)
- Reserved word checking
- Directory existence validation
Supported #
- Dart SDK:
^3.10.0 - Platforms: All platforms supported by Dart (Linux, macOS, Windows)
- Installation:
dart install aim_cli(Dart 3.10+)
Commands #
aim create <project_name>- Create a new Aim projectaim dev [options]- Start development server with hot reload
What's Included #
- Project templates for quick start
- Hot reload infrastructure
- File watching utilities
- Environment variable expansion
- Process management utilities