Skip to content

Instantly share code, notes, and snippets.

@levabd
Last active September 14, 2016 04:35
Show Gist options
  • Save levabd/3a0a72a92b80d8cee273c065a953cc20 to your computer and use it in GitHub Desktop.
Save levabd/3a0a72a92b80d8cee273c065a953cc20 to your computer and use it in GitHub Desktop.
Npm recipe for stack-updater

JS Build tool with Node.js

  • Node.js
  • Npm
  • Bower
  • Gulp
#!/bin/bash
set -e #exit immediately if a simple command exits with a nonzero exit value
/usr/bin/npm install -g bower
#!/bin/bash
set -e #exit immediately if a simple command exits with a nonzero exit value
/usr/bin/npm install -g gulp
[
{
"name": "Node",
"command": "/usr/bin/node -v",
"required": "6.5.0",
"comparison": ">=",
"installer": "npm.sh",
"order": "1"
},
{
"name": "Npm",
"command": "/usr/bin/npm -v",
"required": "3.10.3",
"comparison": ">=",
"installer": "npm.sh",
"order": "2"
},
{
"name": "Bower",
"command": "/usr/bin/bower -v",
"required": "1.7.9",
"comparison": ">=",
"installer": "bower.sh",
"order": "3"
},
{
"name": "Gulp",
"command": "/usr/bin/gulp -v | awk '{ print $4 }'",
"required": "3.9.1",
"comparison": ">=",
"installer": "gulp.sh",
"order": "4"
}
]
#!/bin/bash
set -e #exit immediately if a simple command exits with a nonzero exit value
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment