refactor(ags): output css to tmp
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
0d63f3ecd8
commit
bc57df4ff7
3 changed files with 1 additions and 35 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,6 +3,4 @@
|
|||
*node_modules/
|
||||
*types/
|
||||
*build/
|
||||
**/ags/style.css
|
||||
**/ags/flake.lock
|
||||
result*
|
||||
|
|
|
@ -5,7 +5,7 @@ import { execAsync, monitorFile } from 'resource:///com/github/Aylur/ags/utils.j
|
|||
const watchAndCompileSass = () => {
|
||||
const reloadCss = () => {
|
||||
const scss = `${App.configDir}/scss/main.scss`;
|
||||
const css = `${App.configDir}/style.css`;
|
||||
const css = '/tmp/ags/style.css';
|
||||
|
||||
execAsync(`sassc ${scss} ${css}`).then(() => {
|
||||
App.resetCss();
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
inputs.main.url = "path:../../../../.";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
main,
|
||||
}: let
|
||||
inherit (main.inputs) nixpkgs;
|
||||
supportedSystems = ["x86_64-linux"];
|
||||
|
||||
perSystem = attrs:
|
||||
nixpkgs.lib.genAttrs supportedSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
attrs system pkgs);
|
||||
in {
|
||||
devShells = perSystem (_: pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
nix
|
||||
git
|
||||
alejandra
|
||||
typescript
|
||||
bun
|
||||
nodejs_18
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
formatter = perSystem (_: pkgs: pkgs.alejandra);
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue