Bỏ qua, đến nội dung

@digiforce-nc/plugin-developer-platform

Plugin nền tảng phát triển — cung cấp công cụ cho developer tạo, test, debug và publish plugin trực tiếp từ giao diện Digiforce.

Plugin này làm gì?

plugin-developer-platform biến Digiforce thành môi trường phát triển plugin: tạo plugin mới từ template, hot-reload khi code thay đổi, test API trực tiếp, xem debug log, và publish lên marketplace — tất cả từ giao diện web, không cần rời khỏi trình duyệt.

Sáu tính năng chính

#Tính năngChi tiết
1Plugin scaffoldWizard tạo plugin mới: chọn template, đặt tên, sinh boilerplate code
2Hot reloadTự detect thay đổi code → reload plugin không cần restart server
3Debug consoleXem log realtime, filter theo level, search text
4API playgroundGiao diện test API: chọn resource/action, nhập params, xem response
5Package builderBuild TypeScript, bundle assets, tạo package sẵn sàng publish
6PublishĐẩy package lên marketplace hoặc private registry

Kiến trúc

Luồng phát triển plugin

Plugin templates

TemplateMô tả
BasicPlugin tối thiểu: server + client skeleton
CollectionPlugin với custom collection và CRUD API
WidgetPlugin thêm UI widget (block)
ProviderPlugin đăng ký provider (auth, storage, verification...)

Thành phần client

Thành phầnMô tả
PluginScaffoldWizard tạo plugin mới (chọn template, nhập metadata)
DevConsoleConsole debug: log realtime, filter, search
APIPlaygroundGiao diện test API (resource picker, params editor, response viewer)
PackageBuilderUI build plugin: progress, logs, download artifact
PluginExplorerFile browser cho plugin source code

Dependencies

PackageVai trò
@digiforce-nc/serverServer framework
@digiforce-nc/clientClient UI framework
@digiforce-nc/databaseDatabase ORM

Mục lục chi tiết

(Xem trang tổng quan ở trên)