feat: Update package schemas and scripts to support JSON-based lifecycle hooks

- Added `jsonScript` property to metadata schema for JSON script entry points.
- Refactored `generate-package.ts` to replace Lua scripts with JSON scripts for lifecycle hooks.
- Updated test generation to use JSON format for metadata validation.
- Modified documentation and comments to reflect the transition from Lua to JSON scripting.
- Adjusted Storybook configuration and mock data to align with new JSON script structure.
- Renamed relevant files and references from Lua to JSON for consistency across the project.
This commit is contained in:
2026-01-07 15:25:45 +00:00
parent 4b9bab67cc
commit 42446ef255
65 changed files with 616 additions and 565 deletions

View File

@@ -1,12 +1,12 @@
/**
* E2E Tests for Lua Package Rendering
* E2E Tests for Package Rendering
*
* Verifies that Lua packages render correctly in the browser.
* Tests the full pipeline: JSON → Lua → React → DOM
* Verifies that packages render correctly in the browser.
* Tests the full pipeline: JSON → React → DOM
*/
import { expect, test } from '@playwright/test'
test.describe('Lua Package Rendering', () => {
test.describe('Package Rendering', () => {
test.describe('Homepage (level1)', () => {
test('should render homepage with fakemui components', async ({ page }) => {
await page.goto('/')