feishin/.erb/configs/webpack.paths.ts

47 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-12-20 00:59:14 +01:00
const path = require('path');
const rootPath = path.join(__dirname, '../..');
const dllPath = path.join(__dirname, '../dll');
const srcPath = path.join(rootPath, 'src');
2023-09-21 20:24:20 +02:00
const assetsPath = path.join(rootPath, 'assets');
2022-12-20 00:59:14 +01:00
const srcMainPath = path.join(srcPath, 'main');
const srcRemotePath = path.join(srcPath, 'remote');
2022-12-20 00:59:14 +01:00
const srcRendererPath = path.join(srcPath, 'renderer');
const releasePath = path.join(rootPath, 'release');
const appPath = path.join(releasePath, 'app');
const appPackagePath = path.join(appPath, 'package.json');
const appNodeModulesPath = path.join(appPath, 'node_modules');
const srcNodeModulesPath = path.join(srcPath, 'node_modules');
const distPath = path.join(appPath, 'dist');
const distMainPath = path.join(distPath, 'main');
const distRemotePath = path.join(distPath, 'remote');
2022-12-20 00:59:14 +01:00
const distRendererPath = path.join(distPath, 'renderer');
2023-08-08 09:10:07 +02:00
const distWebPath = path.join(distPath, 'web');
2022-12-20 00:59:14 +01:00
const buildPath = path.join(releasePath, 'build');
export default {
2023-09-21 20:24:20 +02:00
assetsPath,
rootPath,
dllPath,
srcPath,
srcMainPath,
srcRemotePath,
srcRendererPath,
releasePath,
appPath,
appPackagePath,
appNodeModulesPath,
srcNodeModulesPath,
distPath,
distMainPath,
distRemotePath,
distRendererPath,
distWebPath,
buildPath,
2022-12-20 00:59:14 +01:00
};