Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22423918
index.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
index.js
View Options
const
Generator
=
require
(
"yeoman-generator"
);
module
.
exports
=
class
Sealious
extends
Generator
{
initializing
()
{
this
.
composeWith
(
require
.
resolve
(
"../foundation/index.js"
));
}
writing
()
{
for
(
let
filename
of
[
"docker-compose.yml"
,
"back/app.js"
,
"back/index.js"
,
"back/config.js"
,
"back/backend.test.js"
,
"back/field-types/custom-field-type.js"
,
"back/collections/users.js"
,
"back/collections/user-roles.js"
,
"back/collections/custom-collection.js"
,
"back/custom-endpoints/custom-endpoint.js"
,
"front/index.html"
,
"front/api/custom-collection.ts"
,
"front/index.tsx"
,
"front/views/custom-collection.tsx"
,
"assets/logo.png"
,
"docker/null"
,
"manifest.js"
,
"README.md"
,
])
{
this
.
fs
.
copy
(
this
.
templatePath
(
filename
),
this
.
destinationPath
(
filename
)
);
}
this
.
fs
.
extendJSON
(
this
.
destinationPath
(
"package.json"
),
{
main
:
"./back/index.js"
,
scripts
:
{
"test-back"
:
"mocha back/backend.test.js"
,
start
:
"node back/index.js"
,
watch
:
"parcel watch -d public --no-hmr front/index.html"
,
},
});
}
deps
()
{
this
.
npmInstall
(
[
"@3846masa/axios-cookiejar-support"
,
"@babel/runtime-corejs2"
,
"axios"
,
"babel-polyfill"
,
"mocha"
,
"sealious"
,
"tough-cookie"
,
"@sealcode/cosealious"
,
"react"
,
"react-dom"
,
"react-router-dom"
,
"@types/react"
,
"@types/react-dom"
,
"@types/react-router-dom"
,
"parcel"
,
"@babel/core"
,
"@babel/plugin-transform-runtime"
,
"typescript"
,
"@sealcode/cosealious"
,
],
{
"save-dev"
:
true
}
);
}
};
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 28, 03:44 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1230218
Default Alt Text
index.js (1 KB)
Attached To
Mode
rGEN Sealcode generator
Attached
Detach File
Event Timeline