joyent-portal/frontend/scripts/paths.js

23 lines
648 B
JavaScript
Raw Normal View History

2016-12-12 18:27:33 +02:00
const path = require('path');
const ROOT = path.join(__dirname, '../..');
const UI = path.join(ROOT, 'ui');
2017-01-06 18:24:37 +02:00
const FRONTEND = process.env.NODE_ENV === 'production'
? path.join(__dirname, '../')
: path.join(ROOT, 'frontend');
2016-12-12 18:27:33 +02:00
module.exports = {
ROOT,
MODULES: [
path.join(FRONTEND, 'node_modules'),
path.join(UI, 'node_modules'),
'node_modules'
2016-12-12 18:27:33 +02:00
],
FRONTEND: path.join(FRONTEND, 'src'),
2017-01-03 19:11:18 +02:00
UI: process.env.NODE_ENV === 'production'
? path.join(FRONTEND, 'node_modules', '@tomgco/joyent-portal-ui', 'dist')
: path.join(UI, 'src'),
STATIC: path.join(FRONTEND, 'static'),
ESLINT: path.join(__dirname, '.eslintrc')
2016-12-12 18:27:33 +02:00
};