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

Function createNeoConfig

buildScripts/create/example.mjs:80–94  ·  view source on GitHub ↗
(classFolder, componentPath)

Source from the content-addressed store, hash-verified

78}
79
80function 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
97function createMainContainer(classFolder, componentPath, componentChunk, name) {

Callers 1

example.mjsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected