This PR implements a "Motoko: Deploy (20 minutes)" command which makes it possible to deploy a local VS Code project to the IC via Motoko Playground:
This feature uses the motoko and ic0 npm packages in place of dfx, allowing prospective IC developers to modify and run local Motoko projects without the need to install anything else on their system. This is especially useful for Windows users who would otherwise need to install WSL for the dfx deploy --playground command.
Progress:
[x] Add VS Code command for deploying to Motoko Playground
[x] Modify deploy logic to use ic0 npm package in place of generated JS bindings
[x] Show Candid UI in side-by-side webview panel
[x] Reuse previous canister when possible
[x] Reuse webview panel for the same canister
[x] Include a right-click deploy context menu action
[x] Add more specific loading and error messages
[x] Limit to one deployment at a time per entry point
[x] Detect invalid Motoko files before starting deployment
Future work:
Optimize proof-of-work algorithm, possibly using Rust / Wasm
This PR implements a "Motoko: Deploy (20 minutes)" command which makes it possible to deploy a local VS Code project to the IC via Motoko Playground:
This feature uses the
motoko
andic0
npm packages in place of dfx, allowing prospective IC developers to modify and run local Motoko projects without the need to install anything else on their system. This is especially useful for Windows users who would otherwise need to install WSL for thedfx deploy --playground
command.Progress:
ic0
npm package in place of generated JS bindingsFuture work: