mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 17:39:22 +02:00
pas2js: started lpg
This commit is contained in:
parent
b9a490a3e1
commit
3d6bf3c2c1
@ -322,7 +322,7 @@ begin
|
|||||||
ServerPort:=StrToIntDef(aProject.CustomData[PJSProjectPort],-1);
|
ServerPort:=StrToIntDef(aProject.CustomData[PJSProjectPort],-1);
|
||||||
URL:=aProject.CustomData[PJSProjectURL];
|
URL:=aProject.CustomData[PJSProjectURL];
|
||||||
if (ServerPort<0) and (URL='') then
|
if (ServerPort<0) and (URL='') then
|
||||||
exit;
|
exit; // compile normally and run the run-parameters
|
||||||
|
|
||||||
// Run webproject with Debug: build, start webserver, open browser
|
// Run webproject with Debug: build, start webserver, open browser
|
||||||
|
|
||||||
|
@ -131,6 +131,7 @@ type
|
|||||||
function InteractiveForceDir(Dir: string; AutoDelete: boolean): boolean; virtual;
|
function InteractiveForceDir(Dir: string; AutoDelete: boolean): boolean; virtual;
|
||||||
function InteractiveSaveFile(aFilename: string): boolean; virtual;
|
function InteractiveSaveFile(aFilename: string): boolean; virtual;
|
||||||
function InteractiveCopyFile(Src, Dest: string): boolean; virtual;
|
function InteractiveCopyFile(Src, Dest: string): boolean; virtual;
|
||||||
|
function CreateProjectGroup(AProject: TLazProject): boolean; virtual;
|
||||||
public
|
public
|
||||||
constructor Create; override;
|
constructor Create; override;
|
||||||
procedure Clear; override;
|
procedure Clear; override;
|
||||||
@ -584,6 +585,12 @@ begin
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TProjectPas2JSProgressiveWebApp.CreateProjectGroup(
|
||||||
|
AProject: TLazProject): boolean;
|
||||||
|
begin
|
||||||
|
Result:=true;
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TProjectPas2JSProgressiveWebApp.Create;
|
constructor TProjectPas2JSProgressiveWebApp.Create;
|
||||||
begin
|
begin
|
||||||
inherited Create;
|
inherited Create;
|
||||||
@ -715,6 +722,9 @@ begin
|
|||||||
// save lpi
|
// save lpi
|
||||||
if LazarusIDE.DoSaveProject([sfQuietUnitCheck])<>mrOk then exit;
|
if LazarusIDE.DoSaveProject([sfQuietUnitCheck])<>mrOk then exit;
|
||||||
|
|
||||||
|
// project group
|
||||||
|
if not CreateProjectGroup(AProject) then exit;
|
||||||
|
|
||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user