embark-area-51/bin/embark

34 lines
727 B
Plaintext
Raw Normal View History

2015-05-24 13:03:43 +00:00
#!/usr/bin/env node
try {
eval('let __nodeTest = 123;');
} catch(e) {
if (e.name === 'SyntaxError') {
2018-09-07 16:37:18 +00:00
console.error("unsupported version of NodeJS. Make sure you are running nodejs 8.11.3 or above");
process.exit();
}
}
2018-09-07 16:37:18 +00:00
function launchEmbark() {
var Cmd = require('../cmd/cmd');
var cli = new Cmd();
cli.process(process.argv);
}
const path = require('path');
require('colors');
try {
const dappPackage = require(path.join(process.cwd(), 'package.json'));
require('check-dependencies')(dappPackage, (state) => {
if (state.status) {
console.error('\nMissing dependencies. Please run npm install'.red);
process.exit();
}
launchEmbark();
});
} catch (e) {
launchEmbark();
}