UNPKG

deployment-tools

Version:

A Node.js scripts that helps you to compile and deploy the static assets (CSS/JavaScript/images) of your website without gulp and grunt using Node.js and npm scripts

10 lines (9 loc) 280 B
/* eslint-disable */ var exec = require('child_process').exec; exec('npm -v', function (err, stdout, stderr) { if (err) throw err; if (parseFloat(stdout) < 3) { throw new Error('[ERROR: React Boilerplate] You need npm version @>=3'); process.exit(1); } });