Page MenuHomeSealhub

index.js
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

index.js

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

Mime Type
application/javascript
Expires
Sat, Nov 28, 03:44 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1230218
Default Alt Text
index.js (1 KB)

Event Timeline