Skip to content

Commit

Permalink
fix(pix-ctl-full): readd dev and bundle cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed Dec 19, 2023
1 parent aec6562 commit 1da131e
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 384 deletions.
64 changes: 32 additions & 32 deletions pix-ctl-full/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,36 +121,36 @@
runtimeInputs = with pkgs; [ entr ps-command ];
text = ''find {src,test} | entr -s "purs-nix $*"'';
};
# webpack = pkgs.writeShellApplication {
# name = "webpack";
# runtimeInputs = with pkgs; [ nodejs ];
# text = ''npx webpack "$@"'';
# };
# serve = pkgs.writeShellApplication {
# name = "serve";
# runtimeInputs = with pkgs; [ webpack ];
# text = ''BROWSER_RUNTIME=1 webpack serve --progress --open "$@"'';
# };
# dev = pkgs.writeShellApplication {
# name = "dev";
# runtimeInputs = with pkgs; [
# concurrent
# runtime
# purs-watch
# serve
# ];
# text = ''
# concurrent \
# "purs-watch compile"\
# serve\
# "runtime up"
# '';
# };
# bundle = pkgs.writeShellApplication {
# name = "bundle";
# runtimeInputs = with pkgs; [ webpack ];
# text = ''BROWSER_RUNTIME=1 webpack --mode=production "$@"'';
# };
webpack = pkgs.writeShellApplication {
name = "webpack";
runtimeInputs = with pkgs; [ nodejs ];
text = ''npx webpack "$@"'';
};
serve = pkgs.writeShellApplication {
name = "serve";
runtimeInputs = with pkgs; [ webpack ];
text = ''BROWSER_RUNTIME=1 webpack serve --progress --open "$@"'';
};
dev = pkgs.writeShellApplication {
name = "dev";
runtimeInputs = with pkgs; [
concurrent
runtime
purs-watch
serve
];
text = ''
concurrent \
"purs-watch compile"\
serve\
"runtime up"
'';
};
bundle = pkgs.writeShellApplication {
name = "bundle";
runtimeInputs = with pkgs; [ webpack ];
text = ''BROWSER_RUNTIME=1 webpack --mode=production "$@"'';
};
docs = pkgs.writeShellApplication {
name = "docs";
runtimeInputs = with pkgs; [
Expand Down Expand Up @@ -190,8 +190,8 @@
purs-tidy
ps-command
purs-watch
# dev
# bundle
dev
bundle
docs
tests
];
Expand Down
Loading

0 comments on commit 1da131e

Please sign in to comment.