find /srv/code -maxdepth 4 -type f -regex ".*\(\(package\|composer|npm\\|bower\)\.json\|Gemfile\|requirements\.txt\\|\.gitmodules\)"

Find supported dependency manager manifests

List all dependencies manifests so you can install them. In a scenario where you want to deploy a number of web applications and run their dependency managers, how could you run all of them in a systematic order. One of the complexity is to ensure you get only your own top level dependencies. That way, you don recursively call development dependencies of your own dependencies. Otherwise you might end up discovering dependency management manifests that are already been pulled by your own projects. # Using this command This command helps me find them and I can then run what?s required to pull them from their respective sources. This command assumes the following: 1. Your code checkouts are in a flat repository layout (i.e. not nested). 2. Finds manifests for: - NPM (nodejs), - Composer (php), - bower, - requirements.txt (Python), and - git submodules
Sample Output
/srv/code/component1/repo/requirements.txt
/srv/code/component2/repo/generator/package.json
/srv/code/component3/repo/package.json
/srv/code/component4/repo/mediawiki/.gitmodules
/srv/code/component5/repo/bower.json
/srv/code/component5/repo/package.json
/srv/code/component5/repo/Gemfile
/srv/code/component6/repo/generator/package.json
/srv/code/component7/repo/.gitmodules
/srv/code/component8/repo/bower.json
/srv/code/component8/repo/.gitmodules

0
By: renoirb
2014-11-28 16:34:35

These Might Interest You

  • Create Debian package dependency graph using GraphViz


    3
    apt-cache dotty PKG-NAME | dot -Tpng | display
    auriza · 2010-01-02 16:20:56 1
  • If you want to know what OS are supported on "guest" machines on the Sun VirtualBox server.


    -1
    VBoxManage list ostypes
    0disse0 · 2010-04-23 06:50:42 0
  • when we add a new package to a aptitude (the debian package manager) we need to add the gpg, otherwise it will show warning / error for missing key Show Sample Output


    4
    wget -q http://xyz.gpg -O- | sudo apt-key add -
    gnuyoga · 2009-03-25 12:18:36 0
  • when we add a new package to a aptitude (the debian package manager) we need to add the gpg, otherwise it will show warning / error for missing key Show Sample Output


    2
    wget -q http://xyz.gpg -O- | sudo apt-key add -
    gnuyoga · 2009-03-25 12:18:29 0
  • release upgrades are major upgrades as from 8.04 to 8.10 or from 8.10 to 9.04 update-manager-core must be installed: sudo apt-get install update-manager-core in some cases you must edit '/etc/update-manager/release-upgrades' and set 'Prompt=normal'


    -1
    do-release-upgrade
    dizzgo · 2009-03-25 07:25:33 2
  • Finds all symbolic links in the specified directory which match the specified string pattern. I used this when upgrading from an Apple-supported version of Java 6 (1.6.0_65) to an Oracle-supported version (1.7.0_55) on Mac OS X 10.8.5 to find out which executables were pointing to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands (Apple version) vs. /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/bin (Oracle version). However, it appears the current JDK installation script already takes care of modifying the links. Show Sample Output


    1
    find directory -type l -lname string
    gumption · 2014-05-02 14:44:24 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: