UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

19 lines 766 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateInstallation = void 0; const FS_1 = require("./FS"); /** * Validates that all needed directories are existing inside a ZenTS application. * This function is called on bootup and will throw an fatal error when a needed directory * doesn't exist. */ async function validateInstallation() { const checkDirs = [FS_1.fs.resolveZenPath('controller'), FS_1.fs.resolveZenPath('view')]; for (const checkDir of checkDirs) { if (!(await FS_1.fs.exists(checkDir))) { throw new Error(`Fatal Error: Dir "${checkDir}" doesn't exists!`); } } } exports.validateInstallation = validateInstallation; //# sourceMappingURL=validateInstallation.js.map