This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arg from 'arg'; | |
import inquirer from 'inquirer'; | |
import { createProject } from './main'; | |
function parseArgumentsIntoOptions(rawArgs) { | |
const args = arg( | |
{ | |
'--git': Boolean, | |
'--yes': Boolean, | |
'--install': Boolean, |