Skip to content

Convert src/blockpy.js to TypeScript#161

Draft
acbart with Copilot wants to merge 12 commits into
masterfrom
copilot/replace-block-mirror-dependency
Draft

Convert src/blockpy.js to TypeScript#161
acbart with Copilot wants to merge 12 commits into
masterfrom
copilot/replace-block-mirror-dependency

Conversation

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Converts the main entry point src/blockpy.js to src/blockpy.ts, completing the TypeScript migration of all core src/*.js files.

Changes

  • src/blockpy.ts (renamed from blockpy.js)

    • Added class property declarations: localSettings_, initialConfiguration_, model, components, utilities, clock
    • Typed constructor params (configuration: Record<string, any>, assignment?: any, submission?: any)
    • Added parameter/return types to public methods (getSetting, initModel, loadAssignment, loadSubmission, loadAssignmentData_, etc.)
  • vite.config.js — updated lib.entry to point at src/blockpy.ts

Notes

Follows the same minimal-annotation style used in the rest of the src/ migration (e.g. server.ts): noImplicitAny: false / strict: false are retained in tsconfig.json, so this is a non-breaking incremental step. Remaining JS directories (mlt/, skulpt_modules/, blockly_blocks/) are out of scope.

Copilot AI changed the title Replace BlockMirror dependency with mlt service approach Replace BlockMirror with self-contained mlt translation layer Jun 30, 2026
Copilot AI requested a review from acbart June 30, 2026 22:14
Copilot AI changed the title Replace BlockMirror with self-contained mlt translation layer Add Jest unit tests for utility functions Jul 1, 2026
Copilot finished work on behalf of acbart July 1, 2026 02:09
Copilot finished work on behalf of acbart July 1, 2026 02:58
Copilot AI changed the title Add Jest unit tests for utility functions feat: Phase 1 TypeScript migration – utilities, storage, footer + test suite Jul 1, 2026
Copilot finished work on behalf of acbart July 1, 2026 03:13
Copilot AI changed the title feat: Phase 1 TypeScript migration – utilities, storage, footer + test suite feat: Phase 2 TypeScript migration – engine configs, editors Jul 1, 2026
Copilot finished work on behalf of acbart July 1, 2026 03:27
Copilot AI changed the title feat: Phase 2 TypeScript migration – engine configs, editors Convert build system from webpack 4 to Vite 8 Jul 1, 2026
Copilot finished work on behalf of acbart July 1, 2026 14:04
Copilot AI changed the title Convert build system from webpack 4 to Vite 8 Convert core JS modules to TypeScript Jul 1, 2026
Copilot finished work on behalf of acbart July 1, 2026 15:21
Copilot AI changed the title Convert core JS modules to TypeScript Convert src/blockpy.js to TypeScript Jul 1, 2026
Copilot finished work on behalf of acbart July 1, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants