Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
const { realpathSync } = require('fs')
const { resolve } = require('path')

const relative = {
  'config': './config/',
  'state': './src/state',
  'api': './src/bootstrapper/api',
  'routes': './src/bootstrapper/routes',
  // view
  // -- pattern matching
  'atoms': './src/views/atoms',
  'organisms': './src/views/organisms/',
  // @todo unused - need to do these
  // 'templates': './src/views/layouts/',
  'molecules': './src/views/molecules/',
  // -- no-domain-logic
  'layouts': './src/views/layouts/',
  // -- domain-logic views
  'widgets': './src/views/widgets/',
  'views': './src/views/',
  // backend | frontend, server|web
  'server': './src/server/',
  'client': './src/client/',
  'packages': './packages/',
  'src': './src/',
}

// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebookincubator/create-react-app/issues/637
const appDirectory = realpathSync(process.cwd())
const resolveApp = relativePath => resolve(appDirectory, relativePath)

const alias = Object.assign({}, relative)
Object.keys(alias).forEach(key => {
  alias[key] = resolveApp(alias[key])
})

exports.alias = alias
exports.relative = relative