mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
104f84f252
As discussed with the product team we want to enforce kebab-case file names for all files, with the exception of files which export a single class, in which case they should be PascalCase and reflect the class which they export. This will help find classes faster, and should push better naming for them too. Some files and packages have been excluded from this linting, specifically when a library or framework depends on the naming of a file for the functionality e.g. Ember, knex-migrator, adapter-manager
16 lines
490 B
JavaScript
16 lines
490 B
JavaScript
/* eslint-disable ghost/filenames/match-regex */
|
|
const config = require('./core/shared/config');
|
|
const ghostVersion = require('@tryghost/version');
|
|
|
|
/**
|
|
* knex-migrator can be used via CLI or within the application
|
|
* when using the CLI, we need to ensure that our global overrides are triggered
|
|
*/
|
|
require('./core/server/overrides');
|
|
|
|
module.exports = {
|
|
currentVersion: ghostVersion.safe,
|
|
database: config.get('database'),
|
|
migrationPath: config.get('paths:migrationPath')
|
|
};
|