config.js 517 Bytes
'use strict';

import path from 'path';

const env = process.env.NODE_ENV || 'development';

const defaults = {
    port: 6006,
    codeDir: path.normalize(__dirname + '/../code/'), // 代码位置
    buildDir: path.normalize(__dirname + '/../packages/'), // 静态资源包位置
    dbDir: path.normalize(__dirname + '/../db'),
    ci: path.normalize(__dirname + '/../apps/ci')
};

const specific = {
    development: {},
    test: {},
    production: {},
};

export default Object.assign(defaults, specific[env]);