#!/usr/bin/env bash

function install_dependency {
    echo " - Installing dependency: $1"
    sudo apt-get -y install $1  > /dev/null
}

function node_install {
    echo " - Node install: $1"
    npm install -g $1  > /dev/null
}


cho "+ apt-get update"
apt-get update > /dev/null

echo "+ intall node"
install_dependency nodejs

echo "+ intall typescript"
node_install typescript

echo "+ intall express"
node_install express

echo "+ intall gulp"
node_install gulp

echo "+ intall bower"
node_install bower

echo "= System Provision Complete "

#!/usr/bin/env bash

function install_dependency {
    echo " - Installing dependency: $1"
    sudo apt-get -y install $1  > /dev/null
}

function node_install {
    echo " - Node install: $1"
    sudo npm install -g $1  > /dev/null
}


echo "+ apt-get update"
apt-get update > /dev/null

sudo apt-get --purge remove node

echo "+ Prepare this machine to get node ..."
curl -sL https://deb.nodesource.com/setup | sudo bash -

install_dependency nodejs

sudo ln -s /usr/bin/nodejs /usr/bin/node

install_dependency npm

node_install typescript
node_install express
node_install gulp
node_install bower

echo "= System Provision Complete "

Fix provision script to remove conflict with node (Amateur Packet Radio Node Program)
Fix provision script to remove conflict with node (Amateur Packet Radio Node Program)

Signed-off-by: Michele Ursino <0d7cbec952c33d7c21e19d50988899883a4c91e0@amilink.com>
