UNPKG

jetup

Version:

Jetup: JavaScript Project Setup! Jetting-up your next JS project in seconds with one command, using fully modular, customizable presets, instantly ready to code!.

23 lines 782 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProjectModule = void 0; const framework_1 = require("../../framework"); const utils_1 = require("../../utils"); class ProjectModule extends framework_1.BaseModule { constructor() { super(...arguments); this.registry = ProjectModule; } async setup() { if (!(0, utils_1.isFileExists)((0, utils_1.cwd)('package.json'))) { this.logger.info(`initializing npm project...`); this.logger.stop(); await (0, utils_1.runCommandInAlternateScreen)('npm init'); } else { this.logger.info(`project already initialized!`); } } } exports.ProjectModule = ProjectModule; //# sourceMappingURL=index.js.map