pas2js: started lpg

This commit is contained in:
mattias 2022-04-13 10:03:04 +02:00
parent b9a490a3e1
commit 3d6bf3c2c1
2 changed files with 11 additions and 1 deletions

View File

@ -322,7 +322,7 @@ begin
ServerPort:=StrToIntDef(aProject.CustomData[PJSProjectPort],-1);
URL:=aProject.CustomData[PJSProjectURL];
if (ServerPort<0) and (URL='') then
exit;
exit; // compile normally and run the run-parameters
// Run webproject with Debug: build, start webserver, open browser

View File

@ -131,6 +131,7 @@ type
function InteractiveForceDir(Dir: string; AutoDelete: boolean): boolean; virtual;
function InteractiveSaveFile(aFilename: string): boolean; virtual;
function InteractiveCopyFile(Src, Dest: string): boolean; virtual;
function CreateProjectGroup(AProject: TLazProject): boolean; virtual;
public
constructor Create; override;
procedure Clear; override;
@ -584,6 +585,12 @@ begin
Result:=false;
end;
function TProjectPas2JSProgressiveWebApp.CreateProjectGroup(
AProject: TLazProject): boolean;
begin
Result:=true;
end;
constructor TProjectPas2JSProgressiveWebApp.Create;
begin
inherited Create;
@ -715,6 +722,9 @@ begin
// save lpi
if LazarusIDE.DoSaveProject([sfQuietUnitCheck])<>mrOk then exit;
// project group
if not CreateProjectGroup(AProject) then exit;
Result:=mrOk;
end;