pas2js: started install

This commit is contained in:
mattias 2024-03-31 10:15:04 +02:00
parent 26de2f9330
commit fd9746e2f9

View File

@ -47,7 +47,7 @@ type
baoUseWASI, // Use WASI browser app object
baoUseBrowserConsole, // use browserconsole unit to display Writeln()
baoUseModule, // include as module as opposed to regular script
baoLocationOnSWS, // add location
baoLocationOnSWS, // location on Simple Web Server
baoStartServer, // Start simple server
baoUseURL // Use this URL to run/show project in browser
);
@ -348,6 +348,11 @@ begin
PJSOptions.Load;
TPJSController.Instance.Hook; // this registers macros and events
{$IFDEF EnablePas2jsInstall}
// register menu item
RegisterIDEMenuCommand(itmCustomTools,'Pas2jsInstall','Install/Update Pas2js',@OnInstallPas2js);
{$ENDIF}
// register new-project items
RegisterProjectDescriptor(TProjectPas2JSWebApp.Create);
PWA:=TProjectPas2JSProgressiveWebApp.Create;