install_sailor() {
  npm install git+https://github.com/elasticio/sailor-nodejs.git#master
}

run_tests() {
  if [[ $(read_json "$build_dir/package.json" ".scripts.test") != "" ]]; then
    npm test
  else
    warning "No tests specified. Please do it ASAP!"
  fi
}

remove_dev_dependences() {
  npm prune --production
}
install_sailor() {
  npm install git+https://github.com/elasticio/sailor-nodejs.git#master
  echo "node ./node_modules/sailor-nodejs/run.js" > sail.sh
  echo "node ./node_modules/sailor-nodejs/runService.js \${1} \${2} \${3}" > serve.sh
}

run_tests() {
  if [[ $(read_json "$build_dir/package.json" ".scripts.test") != "" ]]; then
    npm test
  else
    warning "No tests specified. Please do it ASAP!"
  fi
}

remove_dev_dependences() {
  npm prune --production
}

Add sail.sh and serve.sh scripts to root folder
Add sail.sh and serve.sh scripts to root folder