Update configuration files

This commit is contained in:
Oliver Davies 2025-10-10 02:33:03 +01:00
parent c3cf2f249a
commit 13b6653536
7 changed files with 58 additions and 36 deletions

View file

@ -1 +1 @@
use flake use flake .

View file

@ -3,10 +3,8 @@
PATH="${PATH}:./vendor/bin" PATH="${PATH}:./vendor/bin"
tmux new-window -dn scratch tmux new-window -dn scratch
tmux new-window -dn sculpin tmux new-window -dn server
tmux new-window -dn tailwind
tmux send-keys -t sculpin "sculpin generate --server --watch" Enter tmux send-keys -t server "./watch" Enter
tmux send-keys -t tailwind "cd assets && tailwindcss --input css/tailwind.css --output ../source/build/tailwind.css --watch" Enter
nvim . nvim .

View file

@ -1,20 +1,27 @@
{ {
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; inputs = {
devshell.url = "github:numtide/devshell";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = inputs: outputs =
let inputs:
system = "x86_64-linux"; inputs.flake-parts.lib.mkFlake { inherit inputs; } {
pkgs = import inputs.nixpkgs { inherit system; }; imports = [ inputs.devshell.flakeModule ];
in
systems = [ "x86_64-linux" ];
perSystem =
{ pkgs, ... }:
{ {
devShells.${system}.default = devshells.default = {
with pkgs; packages = with pkgs; [
mkShell {
buildInputs = [
nodePackages.browser-sync nodePackages.browser-sync
php php
phpPackages.composer phpPackages.composer
]; ];
}; };
}; };
};
} }

View file

@ -1 +1 @@
use flake use flake .

10
storybook/.tmux-sessionizer Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
: "${NODE_ENV:=development}"
tmux new-window -dn scratch
tmux new-window -dn server
tmux send-keys -t server "./watch" Enter
nvim .

View file

@ -1,19 +1,26 @@
{ {
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; inputs = {
devshell.url = "github:numtide/devshell";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = inputs: outputs =
let inputs:
system = "x86_64-linux"; inputs.flake-parts.lib.mkFlake { inherit inputs; } {
pkgs = import inputs.nixpkgs { inherit system; }; imports = [ inputs.devshell.flakeModule ];
in
systems = [ "x86_64-linux" ];
perSystem =
{ pkgs, ... }:
{ {
devShells.${system}.default = devshells.default = {
with pkgs; packages = with pkgs; [
mkShell {
buildInputs = [
nodejs nodejs
nodePackages.npm nodePackages.npm
]; ];
}; };
}; };
};
} }

View file

@ -4,7 +4,7 @@ set -euo pipefail
export PATH="$PATH:./node_modules/.bin" export PATH="$PATH:./node_modules/.bin"
NODE_ENV="${NODE_ENV:-development}" : "${NODE_ENV:=development}"
storybook dev \ storybook dev \
--exact-port \ --exact-port \