Implement admin theme support (checkpoint)

This commit is contained in:
Joseph Garrone
2024-10-26 21:23:18 +02:00
parent dc4eac1a04
commit 0e93d4ed09
20 changed files with 401 additions and 73 deletions

View File

@ -52,6 +52,7 @@ export type BuildContext = {
account:
| { isImplemented: false }
| { isImplemented: true; type: "Single-Page" | "Multi-Page" };
admin: { isImplemented: boolean };
};
packageJsonFilePath: string;
bundler: "vite" | "webpack";
@ -448,7 +449,10 @@ export function getBuildContext(params: {
isImplemented: true,
type: buildOptions.accountThemeImplementation
};
})()
})(),
admin: {
isImplemented: fs.existsSync(pathJoin(themeSrcDirPath, "admin"))
}
};
if (