nope/lib/templates/index.js.handlebars

19 lines
567 B
Handlebars
Raw Normal View History

2021-01-08 08:10:23 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
2021-01-08 15:58:55 +00:00
const runNopeBackend = require("../../../dist/lib/cli/runNopeBackend");
2021-01-08 08:10:23 +00:00
if (require.main === module) {
process.on("unhandledRejection", (reason, p) => {
console.log("Unhandled Rejection at: Promise", p, "reason:", reason);
console.error(reason);
throw reason;
});
runNopeBackend
.runNopeBackend({
file: path.join(__dirname, "settings.json"),
2021-01-08 15:58:55 +00:00
channel: "{{layer}}",
log: "{{logLevel}}"
2021-01-08 08:10:23 +00:00
})
.catch(console.error);
}