26 lines
893 B
JavaScript
26 lines
893 B
JavaScript
const { dirname } = require('path');
|
|
const { File: HotReload } = require(`./src/services/hotReload.js`);
|
|
const path = require('path');
|
|
|
|
const root = dirname(require.main.filename);
|
|
const localPath = {
|
|
root: root,
|
|
plugins: `${root}/plugins`,
|
|
public: `${root}/public`,
|
|
source: `${root}/src`
|
|
};
|
|
|
|
module.exports = {
|
|
localPath,
|
|
cache: {
|
|
startMenuItems: [],
|
|
},
|
|
runtimeFile: {
|
|
package: new HotReload(path.join(localPath.root, 'package.json')),
|
|
releaseNotes: new HotReload(path.join(localPath.source, 'models', 'releasenotes.json')),
|
|
configuration: new HotReload(path.join(localPath.source, 'models', 'configuration.json')),
|
|
stylesheet: new HotReload(path.join(localPath.source, 'models', 'stylesheet.json')),
|
|
startMenuItems: new HotReload(path.join(localPath.source, 'models', 'integratedStartMenuItems.json'))
|
|
},
|
|
}
|