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

npm_i() {
    (which $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