# HG changeset patch # User Marcin Kuzminski # Date 2018-07-31 16:34:11 # Node ID 2e893c5ad02a77240893fdddc8d76f2edbe9b797 # Parent 4b708e2803811e7448fee695c3e876f404c477ab js: added better build instructions for JS libraries. diff --git a/pkgs/README.rst b/pkgs/README.rst --- a/pkgs/README.rst +++ b/pkgs/README.rst @@ -29,14 +29,13 @@ NodeJS dependencies .. code:: shell - # switch to pkgs dir - pushd pkgs - node2nix --input ../package.json \ - -o node-packages.nix \ - -e node-env.nix \ - -c node-default.nix \ - -d --flatten --nodejs-6 - popd + 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-6 " @@ -45,8 +44,6 @@ Bower dependencies .. code:: shell - bower2nix bower.json pkgs/bower-packages.nix - # or nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix"