scripts_runner 0.1.0
scripts_runner: ^0.1.0 copied to clipboard
A development scripts management tool for Dart and Flutter projects. Automatically sets up your development environment with essential tools, configurations, and best practices.
Scripts Runner #
A development scripts management tool for Dart and Flutter projects. Automatically sets up your development environment with essential tools, configurations, and best practices.
Features #
π One-command setup - Get your development environment ready instantly
π Smart configuration - Automatically copies essential config files
π§ VS Code integration - Installs recommended extensions and settings
π¦ Offline ready - Bootstrap scripts for local usage
β‘ Cross-platform - Works on macOS, Linux, and Windows
Quick Start #
Installation #
dart pub global activate scripts_runner
Or add to your project:
dart pub add dev:scripts_runner
Usage #
# Setup complete development environment
dart run scripts_runner post-install
# Install VS Code extensions
dart run scripts_runner install-extensions
# Copy scripts for offline usage
dart run scripts_runner bootstrap
# Show help
dart run scripts_runner --help
Commands #
Command | Description |
---|---|
post-install |
Setup development environment (FVM, Flutter deps, lint_staged) |
install-extensions |
Install recommended VS Code extensions |
bootstrap |
Copy all scripts to local project for offline use |
What Gets Set Up #
Development Tools #
- FVM - Flutter Version Management
- Flutter dependencies - Essential dev packages (husky, lint_staged, etc.)
- lint_staged - Automatic code formatting and analysis on git commit
VS Code Configuration #
- Settings - Optimized workspace settings for Dart/Flutter
- Extensions - Recommended extensions for better development experience
- Launch configs - Debug configurations
- Code snippets - Useful Dart/Flutter snippets
Git Hooks #
- Husky - Git hooks configuration
- Commit lint - Conventional commit message validation
- Pre-commit hooks - Code formatting and linting
Example #
# Clone your Flutter project
git clone https://iplayabc.coding.net/public/tushuguanbiaozhunjiejuefangan/scripts_runner/git
cd scripts_runner
# Run scripts_runner setup
dart pub add dev:scripts_runner
dart run scripts_runner post-install
# Your development environment is now ready! π
Configuration Files #
The tool automatically manages these configuration files:
.husky.yaml # Git hooks configuration
.vscode/
βββ settings.json # VS Code workspace settings
βββ launch.json # Debug configurations
βββ extensions.json # Recommended extensions
βββ dart.code-snippets # Code snippets
Requirements #
- Dart SDK 3.0 or higher
- Git (for git hooks functionality)
- VS Code (optional, for extension installation)
Contributing #
We welcome contributions! Please see our Contributing Guide for details.
Development Setup #
git clone https://iplayabc.coding.net/public/tushuguanbiaozhunjiejuefangan/scripts_runner/git
cd scripts_runner
dart pub get
dart run scripts_runner bootstrap
Made with β€οΈ for the Dart and Flutter community