# HG changeset patch # User Marcin Kuzminski # Date 2019-02-28 16:44:52 # Node ID 8a173d50912e0f1c8d0f0cdf06d86d7015ef92eb # Parent 8ce58b9bb04c18dc5831882da71691438b1382e9 makefile: added some handly functions for package generation diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -53,3 +53,12 @@ web-build: generate-pkgs: nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses" + +generate-js-pkgs: + rm -rf node_modules && \ + nix-shell pkgs/shell-generate.nix --command "node2nix --input package.json -o pkgs/node-packages.nix -e pkgs/node-env.nix -c pkgs/node-default.nix -d --flatten --nodejs-8" && \ + sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix + +generate-license-meta: + nix-build pkgs/license-generate.nix -o result-license && \ + cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json \ No newline at end of file