UNPKG

845 BJavaScriptView Raw
1const path = require('path')
2const fs = require('fs')
3
4// Make sure any symlinks in the project folder are resolved:
5// https://github.com/facebookincubator/create-react-app/issues/637
6const appDirectory = fs.realpathSync(process.cwd())
7const resolveApp = relativePath => path.resolve(appDirectory, relativePath)
8const resolveOwn = relativePath => path.resolve(__dirname, '..', relativePath)
9
10module.exports = {
11 appTestEntry: resolveApp('test/index.js'),
12 appEntry: resolveApp('bld/index.jsx'),
13 appDist: resolveApp('dist'),
14 appZip: resolveApp('zip'),
15 appNodeModules: resolveApp('node_modules'),
16 appOutput: resolveApp('dist/package.js'),
17 appResource: resolveApp('src/resource'),
18 appDistResource: resolveApp('dist/resource'),
19 appEnvoyConfig: resolveApp('envoy.config.js'),
20 ownEslintConfig: resolveOwn('./config/eslintconfig')
21}