(classFolder, componentChunk)
| 43 | |
| 44 | |
| 45 | function 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 | |
| 60 | function createIndexHtml(classFolder, title) { |
| 61 | const template = []; |