zenith-gen
Version:
A CLI tool designed to streamline the creation of projects within the Zenith Inova ecosystem, providing optimized configurations and modern development tools.
8 lines (7 loc) • 343 B
JavaScript
import fs from 'fs-extra';
import path from 'path';
import { prettierConfig, prettierIgnore } from '../templates/prettier.config.js';
export function configurePrettier(projectPath) {
fs.writeFileSync(path.join(projectPath, '.prettierrc'), prettierConfig);
fs.writeFileSync(path.join(projectPath, '.prettierignore'), prettierIgnore);
}