aboutsummaryrefslogtreecommitdiff
path: root/bash/npm.sh
blob: dc1974c2683b7d0399c87ce2c2aa988cb07aa40c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

# FIXME: port to NixOS
npm_i() {
  (command -v "$1" &> /dev/null) || {
    yellow "Installing $2"
    npm i -g "$2"
  }
}

# npm_i eq edn-eq
# npm_i react-native react-native-cli
# npm_i detox detox-cli
# npm_i xml2json xml2json-command
# npm_i tern tern
# npm_i git-ssb git-ssb
# npm_i git-ssb-web git-ssb-web
# npm_i shadow-cljs shadow-cljs
# npm_i heroku heroku