marvin/.erb/configs/webpack.paths.ts
2022-09-19 23:10:07 +02:00

29 lines
766 B
TypeScript

const path = require('path');
const rootPath = path.resolve(__dirname, '../..');
const srcPath = path.resolve(rootPath, 'src');
const srcMainPath = path.resolve(srcPath, 'main');
const srcRendererPath = path.resolve(srcPath, 'renderer');
const appPackagePath = path.resolve(rootPath, 'package.json');
const appNodeModulesPath = path.resolve(rootPath, 'node_modules');
const distPath = path.resolve(rootPath, 'dist');
const distMainPath = path.resolve(distPath, 'main');
const distRendererPath = path.resolve(distPath, 'renderer');
const buildPath = path.resolve(rootPath, 'build');
export default {
rootPath,
srcPath,
srcMainPath,
srcRendererPath,
appPackagePath,
appNodeModulesPath,
distPath,
distMainPath,
distRendererPath,
buildPath,
};