Plugin Development Workflow¶
Best practices and workflow for developing Movian plugins.
Development Cycle¶
- Plan - Define plugin functionality
- Setup - Create plugin structure
- Develop - Write code incrementally
- Test - Test functionality
- Debug - Fix issues
- Refine - Optimize and polish
- Release - Package and distribute
Project Structure¶
my-plugin/
├── plugin.json # Manifest
├── plugin.js # Main code
├── logo.png # Icon
├── README.md # Documentation
├── CHANGELOG.md # Version history
└── lib/ # Optional libraries
├── api.js
└── utils.js
Development Tools¶
Debug Mode¶
Live Reload¶
Restart Movian after code changes or use development mode.
Logging¶
Testing¶
Manual Testing¶
- Install plugin
- Test all features
- Test error cases
- Test on different platforms
Automated Testing¶
function runTests() {
console.log("Running tests...");
testApiConnection();
testDataParsing();
testErrorHandling();
console.log("Tests complete");
}
Version Control¶
Git Workflow¶
Semantic Versioning¶
- MAJOR.MINOR.PATCH
- 1.0.0 - Initial release
- 1.1.0 - New features
- 1.1.1 - Bug fixes
Release Process¶
- Update version in plugin.json
- Update CHANGELOG.md
- Test thoroughly
- Create git tag
- Create ZIP package
- Publish to repository