mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
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:
committed by
Kevin Barabash
parent
549104c5a8
commit
9b565a6375
16
check-node-version.js
Normal file
16
check-node-version.js
Normal 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");
|
||||
}
|
Reference in New Issue
Block a user