Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1374779
builder.ts
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
636 B
Referenced Files
None
Subscribers
None
builder.ts
View Options
export
abstract
class
Builder
{
abstract
ownsFile
(
file_path
:
string
)
:
boolean
;
abstract
getName
()
:
string
;
abstract
_build
()
:
Promise
<
void
>
;
abstract
dispose
()
:
Promise
<
void
>
;
constructor
(
public
project_dir
:
string
,
public
style_dirs
:
string
[])
{}
public
ongoing_build
:
Promise
<
void
>
|
null
=
null
;
public
build
(
notifier
?:
(
message
:
string
)
=>
void
)
{
if
(
!
this
.
ongoing_build
)
{
const
build
=
this
.
_build
()
.
catch
((
err
)
=>
{
console
.
error
(
err
);
})
.
then
(()
=>
{
notifier
?
.(
this
.
getName
());
this
.
ongoing_build
=
null
;
});
this
.
ongoing_build
=
build
;
}
return
this
.
ongoing_build
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 25, 10:30 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
610539
Default Alt Text
builder.ts (636 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment