Folder structure #398

Merged
bones7242 merged 76 commits from folder-structure into master 2018-03-20 00:01:08 +01:00
7 changed files with 7 additions and 13 deletions
Showing only changes of commit 76c0fc9326 - Show all commits

View file

@ -1,12 +1,10 @@
const logger = require('winston');
function MysqlConfig () {
this.database = 'default';
this.username = 'default';
this.password = 'default';
this.configure = (config) => {
if (!config) {
return logger.warn('No MySQL config received.');
return console.log('No MySQL config received.');
}
const {database, username, password} = config;
this.database = database;

View file

@ -1,5 +1,3 @@
const logger = require('winston');
function SiteConfig () {
this.analytics = {
googleId: 'default',
@ -27,7 +25,7 @@ function SiteConfig () {
};
this.configure = (config) => {
if (!config) {
return logger.warn('No site config received.');
return console.log('No site config received.');
}
const {analytics, publishing, details, assetDefaults, auth} = config;
this.analytics = analytics;

View file

@ -1,12 +1,10 @@
const logger = require('winston');
function SlackConfig () {
this.slackWebHook = 'default';
this.slackErrorChannel = 'default';
this.slackInfoChannel = 'default';
this.configure = (config) => {
if (!config) {
return logger.warn('No slack config received.');
return console.log('No slack config received.');
}
const {slackWebHook, slackErrorChannel, slackInfoChannel} = config;
this.slackWebHook = slackWebHook;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long