| 58 | } |
| 59 | |
| 60 | function createIndexHtml(classFolder, title) { |
| 61 | const template = []; |
| 62 | |
| 63 | template.push( |
| 64 | '<!DOCTYPE HTML>', |
| 65 | '<html>', |
| 66 | '<head>', |
| 67 | ' <meta name="viewport" content="width=device-width, initial-scale=1">', |
| 68 | ' <meta charset="UTF-8">', |
| 69 | ` <title>Neo ${title}</title>`, |
| 70 | '</head>', |
| 71 | '<body>', |
| 72 | ' <script src="../../../src/MicroLoader.mjs" type="module"></script>', |
| 73 | '</body>', |
| 74 | '</html>`'); |
| 75 | |
| 76 | const file = `${classFolder}/index.html`; |
| 77 | fs.writeFileSync(file, `${template.join(os.EOL)}${os.EOL}`); |
| 78 | } |
| 79 | |
| 80 | function createNeoConfig(classFolder, componentPath) { |
| 81 | const template = []; |