Skip to content

Commit

Permalink
refactor: refactor config file path
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 30, 2017
1 parent 126d3b4 commit 247e1b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const pTimeout = require('p-timeout');
const chalk = require('chalk');
const { shuffle } = require('lodash');
const utils = require('./utils');
const config = require('./config');
const config = require('../config');

const EVENT_ON_LAUNCH = 'launch'; // symbol('when App launch');
const EVENT_ON_OPEN = 'open'; // symbol('when browser open');
Expand Down
4 changes: 3 additions & 1 deletion app/config.js → config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const path = require('path');
module.exports = {
isProduction: process.env.NODE_ENV === 'production',
paths: {
root: path.join(__dirname, '..')
root: __dirname,
app: path.join(__dirname, 'app'),
bin: path.join(__dirname, 'bin')
}
};

0 comments on commit 247e1b9

Please sign in to comment.