mirror of
https://github.com/barkstone2/vault-to-blog.git
synced 2026-07-22 10:50:30 +00:00
feat: Add path information for copying data.json
This commit is contained in:
parent
64bda4f0d0
commit
8445d10981
1 changed files with 5 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ export class Paths {
|
|||
sourceDestPath;
|
||||
sourcePublicPath;
|
||||
typeJsonDestPath;
|
||||
dataJsonSourcePath;
|
||||
dataJsonDestPath;
|
||||
|
||||
constructor(app: App, settings: VaultToBlogSettings) {
|
||||
this.app = app;
|
||||
|
|
@ -31,6 +33,9 @@ export class Paths {
|
|||
this.sourceDestPath = () => `${this.reactPath()}/public/sources`;
|
||||
this.sourcePublicPath = () => `${this.reactPath()}/public`;
|
||||
this.typeJsonDestPath = () => `${this.sourcePublicPath()}/types.json`;
|
||||
|
||||
this.dataJsonSourcePath = () => `${this.pluginPath()}/data.json`;
|
||||
this.dataJsonDestPath = () => `${this.reactPath()}/src/stores/data.json`;
|
||||
}
|
||||
|
||||
private getVaultPath() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue