Files
radixOS/globalize.js
2026-05-12 08:06:46 +02:00

27 lines
919 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: [],
clientsOnline: []
},
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'))
},
}