Rewrite in TypeScript and drop jQuery#3
Open
D3ller wants to merge 10 commits into
Open
Conversation
D3ller
commented
Jul 1, 2026
Contributor
- Fully migrated to TypeScript: The core codebase and all demos have been rewritten in TypeScript, providing strict typing, better autocompletion, and a much safer developer experience (DX).
- Dropped jQuery dependency: Completely removed all jQuery code in favor of modern, native JavaScript (Vanilla JS) for better performance and lighter codebase.
- Zero-config bundling: Klapy.ts now bundles all its required dependencies directly out of the box. No need to manually import them anymore, it's plug-and-play!
…gration Core: - Make animation (Blapymotion) and websocket (BlapySocket) optional and auto-detected from separate standalone builds (dist/BlapyMotion.js, dist/BlapySocket.js) instead of being bundled in the core. Convert BlapySocket to TypeScript. - TemplateManager: scope template resolution to direct-child templates (:scope >) so nested sub-block templates no longer leak/accumulate into parents; add null guards in generateHtml/addBlapyIndices; align with upstream Blapy v2.1.2. - Move html-extension.d.ts and shared types under src/shared/types. Build/dev: - Add per-module vite configs and chain them in the build script. - Add docker-compose dev env; fix websocket container crash-loop by installing ws from the demo's own package.json. Demos: - Fix helloworld (animation), demo_json_nested_blocks (jQuery .attr leftover), demo_json_init_with_mustache; migrate demos to the modern dist/blapy.umd.js; drop bundled lib/ vendor copies.
…yMotion.js/BlapySocket.js) instead of the removed blapy2.js
…rvice, renamed TemplateManager methods/signatures, real Mustache/json2html rendering)
…tale tests don't double/pollute the unit run
…no jQuery, optional BlapyMotion/BlapySocket, bundled deps)
Contributor
Author
|
Rewrote iFsm to kFSM in TypeScript: The module has been migrated, though there is still room for structural improvements. Extracting it into a standalone npm package would be ideal, but this is deferred for a future update due to time constraints. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.