Skip to content

Commit

Permalink
refactor: Restructure local configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschz committed May 12, 2024
1 parent 6499fb5 commit 8af328c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ bin/
obj/
.vs/
.idea/
.vscode/settings.json
artifacts
5 changes: 4 additions & 1 deletion .vscode/settings.json → .vscode/example.settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This is an example file. Copy this file to settings.json and customize the settings as you like.
{
// jellyfinDir : The directory of the cloned jellyfin server project
// This needs to be built once before it can be used
Expand All @@ -9,7 +10,9 @@
// This is where jellyfin stores its configs, plugins, metadata etc
// This is platform specific by default, but on Windows defaults to
// ${env:LOCALAPPDATA}/jellyfin
"jellyfinDataDir" : "${env:LOCALAPPDATA}/jellyfin",
"jellyfinDataDir" : "${workspaceFolder}/../test_setup/data_dir",
"jellyfinConfigDir" : "${workspaceFolder}/../test_setup/config_dir",
"jellyfinLogDir" : "${workspaceFolder}/../test_setup/log_dir",
// The name of the plugin
"pluginName" : "Jellyfin.Plugin.PreventSleep",
}
9 changes: 8 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"${config:jellyfinWebDir}/dist/"
],
"cwd": "${config:jellyfinDir}",
}
"logging": {"moduleLoad": false},
"env": {
"JELLYFIN_WEB_DIR": "${config:jellyfinWebDir}/dist",
"JELLYFIN_DATA_DIR": "${config:jellyfinDataDir}",
"JELLYFIN_CONFIG_DIR": "${config:jellyfinConfigDir}",
"JELLYFIN_LOG_DIR": "${config:jellyfinLogDir}"
},
},
]
}

0 comments on commit 8af328c

Please sign in to comment.