Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F10360266
index.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
798 B
Referenced Files
None
Subscribers
None
index.js
View Options
var
Generator
=
require
(
"yeoman-generator"
);
const
path
=
require
(
"path"
);
module
.
exports
=
class
extends
Generator
{
initializing
()
{
this
.
composeWith
(
require
.
resolve
(
"../typescript/index.js"
));
this
.
composeWith
(
require
.
resolve
(
"../react/index.js"
));
}
writing
()
{
this
.
fs
.
copy
(
this
.
templatePath
(
"tsconfig.json"
),
this
.
destinationPath
(
"tsconfig.json"
)
);
for
(
let
filename
of
[
"component.tsx"
,
"index.html"
,
"index.ts"
,
"front-end.tsx"
])
{
this
.
fs
.
copy
(
this
.
templatePath
(
filename
),
this
.
destinationPath
(
path
.
resolve
(
"src"
,
filename
))
);
}
}
addElectron
()
{
this
.
npmInstall
([
"electron"
],
{
"save-dev"
:
true
});
this
.
fs
.
extendJSON
(
this
.
destinationPath
(
"package.json"
),
{
scripts
:
{
start
:
"electron src/index.js"
}
});
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 8, 05:54 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1034077
Default Alt Text
index.js (798 B)
Attached To
Mode
rGEN Sealcode generator
Attached
Detach File
Event Timeline
Log In to Comment