mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-27 15:53:49 +00:00
feat(root): plugin template now logs settings in debug mode
This commit is contained in:
parent
481c503752
commit
589f8c00c3
@ -1,5 +1,6 @@
|
||||
import { join } from 'path'
|
||||
import { PH_HOME, Settings, mkPath } from 'pockethost/core'
|
||||
import { DEBUG } from 'pockethost'
|
||||
import { PH_HOME, Settings, logSettings, mkPath } from 'pockethost/core'
|
||||
|
||||
export const PLUGIN_NAME = `plugin-{{dashCase name}}`
|
||||
|
||||
@ -9,3 +10,7 @@ export const HOME_DIR =
|
||||
const settings = Settings({
|
||||
PH_{{constantCase name}}_HOME: mkPath(HOME_DIR, { create: true }),
|
||||
})
|
||||
|
||||
if (DEBUG()) {
|
||||
logSettings(settings)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user