[nix] minify-bundle command added

parent 40d51410
...@@ -41,6 +41,13 @@ let ...@@ -41,6 +41,13 @@ let
pulp browserify --skip-compile -t dist/bundle.js --src-path output pulp browserify --skip-compile -t dist/bundle.js --src-path output
''; '';
minify-bundle = pkgs.writeShellScriptBin "minify-bundle" ''
#!/usr/bin/env bash
set -e
minify dist/bundle.js > dist/bundle.min.js
'';
repl = pkgs.writeShellScriptBin "repl" '' repl = pkgs.writeShellScriptBin "repl" ''
#!/usr/bin/env bash #!/usr/bin/env bash
...@@ -68,6 +75,8 @@ pkgs.mkShell { ...@@ -68,6 +75,8 @@ pkgs.mkShell {
build-purs build-purs
build-watch build-watch
build build
minify-bundle
pkgs.minify
repl repl
pkgs.pulp pkgs.pulp
pkgs.spago pkgs.spago
......
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