Prepare for first package

This commit is contained in:
garrettmills
2020-06-06 17:43:31 -05:00
parent 8319859828
commit 2c0b126546
9 changed files with 1027 additions and 715 deletions

19
app/compat/ConfigUnit.js Normal file
View File

@@ -0,0 +1,19 @@
const ConfigUnit = require('libflitter/config/ConfigUnit')
const path = require('path')
class CompatConfigUnit extends ConfigUnit {
/**
* Get the name of the service provided by this unit: 'services'
* @returns {string} - 'services'
*/
static get name() {
return 'configs'
}
constructor() {
const base_dir = path.resolve(__dirname, '..', '..', 'config')
super(base_dir)
}
}
module.exports = exports = CompatConfigUnit

View File

@@ -0,0 +1,19 @@
const ServicesUnit = require('libflitter/services/ServicesUnit')
const path = require('path')
class CompatServicesUnit extends ServicesUnit {
/**
* Get the name of the service provided by this unit: 'services'
* @returns {string} - 'services'
*/
static get name() {
return 'services'
}
constructor() {
const base_dir = path.resolve(__dirname, '..', 'services')
super(base_dir)
}
}
module.exports = exports = CompatServicesUnit