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'),
|
2017-02-09 00:28:58 +02:00
|
|
|
'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'),
|
2017-02-20 18:15:36 +02:00
|
|
|
STATIC: path.join(FRONTEND, 'static'),
|
|
|
|
ESLINT: path.join(__dirname, '.eslintrc')
|
2016-12-12 18:27:33 +02:00
|
|
|
};
|