UNPKG

sx-cli-tool

Version:

Laravel va Vue frameworklaridagi monolith arxitektura loyihalarni boshqarish uchun mo'ljallangan CLI tool

20 lines (19 loc) 980 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatPhpFile = formatPhpFile; exports.formatJsFile = formatJsFile; exports.formatTsFile = formatTsFile; exports.formatVueFile = formatVueFile; const child_process_1 = require("child_process"); function formatPhpFile(filePath) { (0, child_process_1.execSync)("npx prettier --write --plugin=@prettier/plugin-php " + filePath, { stdio: "inherit", cwd: __dirname }); } function formatJsFile(filePath) { (0, child_process_1.execSync)("npx prettier --write --plugin=@prettier/plugin-php " + filePath, { stdio: "inherit", cwd: __dirname }); } function formatTsFile(filePath) { (0, child_process_1.execSync)("npx prettier --write --plugin=@prettier/plugin-php " + filePath, { stdio: "inherit", cwd: __dirname }); } function formatVueFile(filePath) { (0, child_process_1.execSync)("npx prettier --write --plugin=prettier-plugin-vue " + filePath, { stdio: "inherit", cwd: __dirname }); }