feat(greetd): use astal instead of ags

This commit is contained in:
matt1432 2024-03-24 13:54:33 -04:00
parent 9bceac68cd
commit 3f0d4bb691
12 changed files with 153 additions and 191 deletions
modules/ags/astal/js

View file

@ -29,19 +29,19 @@ export const transpileTypeScript = async(host) => {
// Create the dir if it doesn't exist
`mkdir -p /tmp/astal-${host}; ` +
// Let bun see tsconfig.json
`cd ${App.configDir};` +
`bun build ${App.configDir}/${host}.ts ` +
'--external resource:///* ' +
'--external gi://* ' +
'--external cairo ' +
'--external */fzf.es.js ' +
// Since bun wants to right in cwd, we just redirect stdin instead
// Since bun wants to write in cwd, we just redirect stdin instead
`> ${outPath}`,
]).catch(print);
if (host !== 'greeter') {
watchAndCompileSass(host);
}
watchAndCompileSass(host);
return await import(`file://${outPath}`);
};