(classFolder, componentPath)
| 78 | } |
| 79 | |
| 80 | function createNeoConfig(classFolder, componentPath) { |
| 81 | const template = []; |
| 82 | |
| 83 | template.push( |
| 84 | '{', |
| 85 | ` "appPath" : "examples/${componentPath}/app.mjs",`, |
| 86 | ' "basePath" : "../../../",', |
| 87 | ' "environment": "development",', |
| 88 | ' "mainPath" : "./Main.mjs"', |
| 89 | '}' |
| 90 | ); |
| 91 | const file = `${classFolder}/neo-config.json`; |
| 92 | fs.writeFileSync(file, `${template.join(os.EOL)}${os.EOL}`); |
| 93 | |
| 94 | } |
| 95 | |
| 96 | |
| 97 | function createMainContainer(classFolder, componentPath, componentChunk, name) { |