MCPcopy Create free account
hub / github.com/neomjs/neo / createAppMjs

Function createAppMjs

buildScripts/create/example.mjs:45–58  ·  view source on GitHub ↗
(classFolder, componentChunk)

Source from the content-addressed store, hash-verified

43
44
45function createAppMjs(classFolder, componentChunk) {
46 let template = [];
47
48 template.push(
49 "import MainContainer from './MainContainer.mjs';",
50 "",
51 "export const onStart = () => Neo.app({",
52 " mainView: MainContainer,",
53 ` name : 'Neo.examples.${componentChunk}'`,
54 "});");
55
56 const file = `${classFolder}/app.mjs`;
57 fs.writeFileSync(file, `${template.join(os.EOL)}${os.EOL}`);
58}
59
60function createIndexHtml(classFolder, title) {
61 const template = [];

Callers 1

example.mjsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected