express-api-cli
Version:
Cli tool for generating an express project. Instead of wasting extra time creating your project structure, start building right away
11 lines (9 loc) • 349 B
Plain Text
const path = require('path');
require('dotenv').config();
const dir = process.env.NODE_ENV === 'production' ? 'build' : 'src';
module.exports = {
'config': path.resolve(dir,'config', 'config.js'),
'models-path': path.resolve(dir, 'models'),
'seeders-path': path.resolve(dir, 'seeders'),
'migrations-path': path.resolve(dir, 'migrations')
}