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
purs compile "src/**/*.purs" \
${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
pkgs.mkShell {
buildInputs = [
......@@ -60,6 +68,7 @@ pkgs.mkShell {
install-purs-packages
build-purs
build-purs-from-store
build
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