pankaryp/crana

View on GitHub
src/paths.js

Summary

Maintainability
A
0 mins
Test Coverage
const path = require('path');

const appRootPath = process.env.APP_ROOT || process.cwd();
const cranaRoot = process.env.APP_IT_ROOT || path.dirname(require.main.filename);

module.exports = {
  packageRootPath: cranaRoot,
  appRootPath,
  appShared: path.join(appRootPath, 'src/shared'),
  appClient: path.join(appRootPath, 'src/client'),
  appServer: path.join(appRootPath, 'src/server')
};