Include babelify step in browserify calls

This allows using ES6 syntax in our code, while maintaining backwards
compatibility for the generated file.
This commit is contained in:
Martin von Gagern
2017-01-07 01:29:41 +01:00
committed by Kevin Barabash
parent 549104c5a8
commit 9b565a6375
7 changed files with 39 additions and 5 deletions

16
check-node-version.js Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
var v = process.version;
v = v.replace(/^v/,"");
v = v.split(".");
v = v.map(function(s){
return parseInt(s);
});
var a = v[0], b = v[1], c = v[2];
if (a < 6 || (a == 6 && b < 5)) {
console.error("Node 6.5 or later required for development. " +
"Version " + process.version + " found");
process.exit(1);
} else {
console.log("OK");
}