Prepare for first package
This commit is contained in:
19
app/compat/ConfigUnit.js
Normal file
19
app/compat/ConfigUnit.js
Normal 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
|
||||
19
app/compat/ServicesUnit.js
Normal file
19
app/compat/ServicesUnit.js
Normal 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
|
||||
Reference in New Issue
Block a user