UNPKG

bluecodex

Version:

Turn repetitive dev tasks into CLI commands with Typescript

21 lines (17 loc) 511 B
import { file } from "../file/file"; import { ioc } from "../ioc"; export async function ensureLocalGitIgnore() { const localGitIgnoreFile = file( ioc.project.localBlueFolderPath, ".gitignore", ); if (await localGitIgnoreFile.exists()) return; await localGitIgnoreFile.save([ "# You can use this folder to make customizations", "# or experiment with new commands before you share with your team.", "", "# Files in this folder are not tracked on git", "*", "", ]); }