
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@edclub/vite-plugins
Advanced tools
Vite plugins for EDClub experiences that handle manifest processing and app configuration.
This package provides three plugins that transform manifest.json
files into app-specific configurations served as app-manifest.json
:
sampleLessons
)lessonTypes
)sampleAttempts
)The plugins now support automatic discovery of configuration files from subdirectories:
configs/
├── sample-lessons/ # For PlayerPlugin (sampleLessons)
├── template-lessons/ # For EditorPlugin (lessonTypes)
└── sample-attempts/ # For ReplayPlugin (sampleAttempts)
Each JSON file in these directories should contain complete metadata:
Example lesson file (configs/sample-lessons/green-version.json
):
{
"name": "Green Version",
"activity": {
"text": "green mode",
"rgb": [50, 150, 50]
}
}
Example lesson type file (configs/template-lessons/spelling.json
):
{
"name": "Spelling Definitions",
"description": "Learn new words with audio",
"image": "/lesson-type-imgs/spelling_cards.png",
"template": {
"type": "spelling",
"settings": {}
}
}
Example attempt file (configs/sample-attempts/attempt-1.json
):
{
"name": "Attempt 1",
"attempt": {
"progress": 100,
"value": "done"
},
"lesson": {
"name": "Green Version",
"activity": {
"text": "green mode",
"rgb": [50, 150, 50]
}
}
}
Example attempt with lesson reference (configs/sample-attempts/attempt-2.json
):
{
"name": "Attempt 2",
"attempt": {
"progress": 30,
"value": "done - attempt 2"
},
"lesson": "green-version.json"
}
When using lesson references, the plugin will automatically resolve the file from the configs/sample-lessons/
directory.
If the auto-discovery directories don't exist, the plugins fall back to reading from manifest.json
:
{
"app": "edclub.testapp",
"name": "Test App",
"version": "1",
"sampleLessons": [
{
"name": "Lesson 1",
"src": "configs/lesson1.json"
}
]
}
In your Vite config:
import { PlayerPlugin } from "@edclub/vite-plugins";
export default defineConfig({
plugins: [
react(),
PlayerPlugin(), // Uses manifest.json from parent directory
],
});
The plugin will:
app-manifest.json
file in the build output/app-manifest.json
during development# Build the plugin
pnpm build
# Run tests
pnpm test
# Watch mode
pnpm dev
The package includes comprehensive tests for all plugins:
# Run tests once
pnpm test:once
# Run tests in watch mode
pnpm test
FAQs
Vite plugins for edclub-expriences
The npm package @edclub/vite-plugins receives a total of 88 weekly downloads. As such, @edclub/vite-plugins popularity was classified as not popular.
We found that @edclub/vite-plugins demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.