@ylstack-dev/cf-cms-test-plugin
v1.0.1
Published
Test plugin for CF-CMS - demonstrates plugin development
Downloads
173
Maintainers
Readme
CF-CMS Test Plugin
A simple test plugin for CF-CMS that demonstrates plugin development.
Features
- Simple API endpoints for testing
- Admin page integration
- Plugin lifecycle hooks (install, activate, deactivate)
- Status monitoring
Installation
npm install @ylstack-dev/cf-cms-test-pluginUsage
import testPlugin from '@ylstack-dev/cf-cms-test-plugin'
const app = createCfCmsApp({
plugins: [testPlugin]
})API Endpoints
Hello Endpoint
GET /api/test-plugin/helloReturns a greeting message.
Status Endpoint
GET /api/test-plugin/statusReturns plugin status and uptime.
Echo Endpoint
POST /api/test-plugin/echoEchoes back the request body.
Admin Pages
/admin/test-plugin- Test plugin admin page
Development
# Build
npm run build
# Watch mode
npm run dev
# Type check
npm run type-check
# Tests
npm run testLicense
MIT
