Reputation: 1187
When we install Bower or Grunt via npm, we can use the bower or grunt command line tool. Looking inside, it seems to have generated a .cmd file for Windows and (probably, because I haven't looked into it) a .bach file for Unix based system.
I looked at the source code in Github, but haven't got a clue. How does those npm projects generate the cmd batch file which supports both kind of OSes?
Upvotes: 1
Views: 519
Reputation:
Are you looking for this repo ?
https://github.com/ForbesLindesay/cmd-shim
Upvotes: 1