Some dev tools (actually some shell scripts) to work on multiple Git repositories and NPM modules arranged in a tree structure.
-
gitr: a recursive git commandRuns the given Git command recursively in all the Git repositories located under the current directory and below.
-
npmr: a recursive npm commandRuns the given NPM command recursively in all the Git repositories being NPM modules (ie. they have a package.json file at their root) located under the current directory and below.
-
node_modules_rmDeletes all the
node_modulesdirectories under the current directory and below. -
package-lock_rmDeletes all the
package-lock.jsonfiles under the current directory and below.
You can copy those scripts manually, or automatically have a symbolic links to
them from this Git repository to your ~/bin directory through the provided
install script:
$ mkdir -p ~/bin
$ git clone https://github.com/madarche/dev-tools.git
$ cd dev-tools
$ ./install