-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaths.js
32 lines (26 loc) · 1.05 KB
/
paths.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
const path = require('path');
const fs = require('fs');
const url = require('url');
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
module.exports = {
dotenv: resolveApp('.env'),
appPath: resolveApp('.'),
appBuild: resolveApp('build'),
appBuildFonts: resolveApp('build/fonts'),
appPublic: resolveApp('public'),
appHtml: resolveApp('public/index.html'),
// appIndexJs: resolveModule(resolveApp, 'src/index'),
appPackageJson: resolveApp('package.json'),
appSrc: resolveApp('src'),
appFonts: resolveApp('Metropolis/Webfonts/WOFF2'),
appTsConfig: resolveApp('tsconfig.json'),
yarnLockFile: resolveApp('yarn.lock'),
// testsSetup: resolveModule(resolveApp, 'src/setupTests'),
proxySetup: resolveApp('src/setupProxy.js'),
appNodeModules: resolveApp('node_modules'),
// publicUrl: getPublicUrl(resolveApp('package.json')),
// servedPath: getServedPath(resolveApp('package.json')),
};
// module.exports.moduleFileExtensions = moduleFileExtensions;