Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Ivanjosevera's full-sized avatar

Ivan Vera Ivanjosevera

  • Colombia, Antioquia - Medellin
View GitHub Profile
import arg from 'arg';
import inquirer from 'inquirer';
import { createProject } from './main';
function parseArgumentsIntoOptions(rawArgs) {
const args = arg(
{
'--git': Boolean,
'--yes': Boolean,
'--install': Boolean,
import chalk from 'chalk';
import fs from 'fs';
import ncp from 'ncp';
import path from 'path';
import { promisify } from 'util';
const access = promisify(fs.access);
const copy = promisify(ncp);
async function copyTemplateFiles(options) {