Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Mastersam07/pub-studio
Manage your flutter/dart packages directly from the editor. Find, install, update, or remove packages without touching the command line.
https://github.com/Mastersam07/pub-studio
dart flutter pubspec-maintenance pubspec-manager pubspec-yaml vscode-extension
Last synced: 4 days ago
JSON representation
Manage your flutter/dart packages directly from the editor. Find, install, update, or remove packages without touching the command line.
- Host: GitHub
- URL: https://github.com/Mastersam07/pub-studio
- Owner: Mastersam07
- License: mit
- Created: 2024-06-07T19:47:45.000Z (5 months ago)
- Default Branch: dev
- Last Pushed: 2024-08-07T21:55:42.000Z (3 months ago)
- Last Synced: 2024-08-22T22:44:31.114Z (3 months ago)
- Topics: dart, flutter, pubspec-maintenance, pubspec-manager, pubspec-yaml, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=Mastersam.pub-studio
- Size: 4.32 MB
- Stars: 31
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Pub Studio
[![Version](https://img.shields.io/visual-studio-marketplace/v/Mastersam.pub-studio?style=for-the-badge&colorA=252525&colorB=0079CC)](https://marketplace.visualstudio.com/items?itemName=Mastersam.pub-studio)
[![Downloads](https://img.shields.io/visual-studio-marketplace/d/Mastersam.pub-studio?style=for-the-badge&colorA=252525&colorB=0079CC)](https://marketplace.visualstudio.com/items?itemName=Mastersam.pub-studio)---
![demo](https://raw.githubusercontent.com/mastersam07/pub-studio/dev/assets/demo.gif)
---
Pub Studio is a Visual Studio Code extension designed to simplify the management of Flutter/Dart packages and plugins directly within the editor. This extension provides a seamless experience for developers, allowing them to manage dependencies, run scripts, and view package information without leaving the editor.
## Features
- **Scripts Management**: Easily run common Flutter and Dart scripts.
- **Actions**: Add, update, or remove dependencies with ease.
- **Dependencies**: View and manage your project's dependencies and dev dependencies.
- **Integrated Pubspec Management**: Navigate to dependency definitions within the `pubspec.yaml` file.
- **Makefile Support**: Automatically detect and add Makefile targets to scripts.
- **Custom Commands**: Support for custom commands defined in `settings.json`.## Installation
To install Pub Studio:
1. Open Visual Studio Code.
2. Go to the Extensions view by clicking on the Extensions icon in the Sidebar.
3. Search for `Pub Studio`.
4. Click on the `Install` button.## Usage
### Sidebar Views
Pub Studio adds an icon to the VS Code sidebar. Clicking on this icon will open the Pub Studio panel, which includes sections for Scripts, Actions, Dependencies, and Dev Dependencies.
#### Scripts
- **Flutter Clean**.
- **Static Analysis**.
- **Dart Fix**: Applies fixes with `dart fix --apply`.
- **Dart Format**.
- **Makefile Targets**: Automatically detected and added from your Makefile.
- **Custom Commands**: Defined in your `settings.json`.#### Actions
- Installs all dependencies.
- Sort all dependencies.
- Remove unused dependencies.
- Add dependency(single or multiple).
- Add Dev Dependency(single or multiple).#### Dependencies
- **View Dependencies**: Displays all project dependencies. Right-click on a dependency to update or remove it.
- **View Dev Dependencies**: Displays all dev dependencies. Right-click on a dev dependency to update or remove it.#### Nested Workspaces
- **Workspace-Specific Management**: Manage scripts, actions, dependencies, and dev dependencies for each nested workspace individually.
- **Unified View**: All nested workspaces are displayed under a unified view in the Pub Studio sidebar, allowing for easy navigation and management.## Commands
Pub Studio provides several commands accessible from the command palette (`Cmd+Shift+P` or `Ctrl+Shift+P`):
- `Pub Studio: Install All Dependencies`
- `Pub Studio: Sort All Dependencies`
- `Pub Studio: Remove Unused Dependencies`
- `Pub Studio: Add Dependency`
- `Pub Studio: Add Dev Dependency`
- `Pub Studio: Update Dependency`
- `Pub Studio: Remove Dependency`## Custom Commands Support
Pub Studio now supports custom commands defined in your VS Code `settings.json`. These commands will appear in the Scripts section of the Pub Studio panel, allowing you to run them directly from VS Code.
### How to Use
1. Open your `settings.json` file in VS Code.
2. Add your custom commands under `pubStudio.customCommands`.Example `settings.json`:
```json
{
"pubStudio.customCommands": {
"Run Custom Command 1": "echo Custom Command 1",
"Run Custom Command 2": "echo Custom Command 2"
}
}
```## Makefile Support
Pub Studio also supports Makefile targets. It automatically detects targets in your Makefile and adds them to the Scripts section, allowing you to run them directly from Pub Studio.
Example `Makefile`:
```makefile
.PHONY: clean buildclean:
flutter cleanbuild:
flutter build apk```
## Configuration
No additional configuration is required. Pub Studio reads from your `pubspec.yaml` file to provide information about your dependencies and scripts.
## Demonstration
### Managing Dependencies
[![Managing Dependencies](https://img.youtube.com/vi/i3nR5dfxI78/0.jpg)](https://youtu.be/i3nR5dfxI78)
### Running Scripts
[![Running Scripts](https://img.youtube.com/vi/IiNp89YnDRg/0.jpg)](https://youtu.be/IiNp89YnDRg)
### Adding Dependencies
[![Adding Dependencies](https://img.youtube.com/vi/V0zHUy6oXKI/0.jpg)](https://youtu.be/V0zHUy6oXKI)
## Contributing
Contributions are welcome! Please fork the repository and submit pull requests for any enhancements or bug fixes.
## Star Our Repository
If you find Pub Studio useful, please consider starring our repository on GitHub! Your support helps us continue to improve the extension.
[![GitHub stars](https://img.shields.io/github/stars/Mastersam07/pub-studio?style=social)](https://github.com/Mastersam07/pub-studio/stargazers)
## License
This extension is licensed under the MIT License.
---
For detailed documentation and contribution guidelines, please visit the [GitHub repository](https://github.com/Mastersam07/pub-studio).