Commit 6629d18e authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski Committed by Alexandre Delanoë

[nix] build script to build & browserify

parent 34fc680a
...@@ -51,6 +51,14 @@ let ...@@ -51,6 +51,14 @@ let
purs compile "src/**/*.purs" \ purs compile "src/**/*.purs" \
${builtins.toString (builtins.map storePath (builtins.attrValues purs-packages))} ${builtins.toString (builtins.map storePath (builtins.attrValues purs-packages))}
''; '';
build = pkgs.writeShellScriptBin "build" ''
#!/usr/bin/env bash
echo "Compiling"
build-purs-from-store
echo "Bundling"
yarn pulp browserify --skip-compile -t dist/bundle.js --src-path output
'';
in in
pkgs.mkShell { pkgs.mkShell {
buildInputs = [ buildInputs = [
...@@ -60,6 +68,7 @@ pkgs.mkShell { ...@@ -60,6 +68,7 @@ pkgs.mkShell {
install-purs-packages install-purs-packages
build-purs build-purs
build-purs-from-store build-purs-from-store
build
pkgs.yarn pkgs.yarn
]; ];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment