Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { tasks } from './tasks'
import { CliState } from './src/contracts'
const USING_YARN = !!(process.env.npm_execpath && process.env.npm_execpath.includes('yarn'))
/* eslint-disable-next-line */
const BADGE = " _ _ _ _ \n / \\ __| | ___ _ __ (_)___ | |___ \n / _ \\ / _` |/ _ \\| '_ \\| / __|_ | / __|\n / ___ \\ (_| | (_) | | | | \\__ \\ |_| \\__ \\\n/_/ \\_\\__,_|\\___/|_| |_|_|___/\\___/|___/\n"
/**
* Help screen output
*/
const HELP = `${colors.green(USING_YARN ? 'yarn create adonis-ts-app' : 'npx create-adonis-ts-app')} ${colors.dim('')}
${colors.yellow('Options')}
${colors.green('--boilerplate')} ${colors.green('')} ${colors.dim('Choose API boilerplate')}
${colors.green('--name')} ${colors.green('')} ${colors.dim('Define custom application name')}
${colors.green('--eslint')} ${colors.green('')} ${colors.dim('Enable/disable eslint setup')}
`
/**
* Running all the tasks to create a new project.
*/
export async function runTasks (args: string[]) {
const argv = getops(args, {
string: ['boilerplate', 'name'],
boolean: ['eslint'],
default: {
eslint: null,
},
})
console.log(BADGE)
import { CliState } from './src/contracts'
const USING_YARN = !!(process.env.npm_execpath && process.env.npm_execpath.includes('yarn'))
/* eslint-disable-next-line */
const BADGE = " _ _ _ _ \n / \\ __| | ___ _ __ (_)___ | |___ \n / _ \\ / _` |/ _ \\| '_ \\| / __|_ | / __|\n / ___ \\ (_| | (_) | | | | \\__ \\ |_| \\__ \\\n/_/ \\_\\__,_|\\___/|_| |_|_|___/\\___/|___/\n"
/**
* Help screen output
*/
const HELP = `${colors.green(USING_YARN ? 'yarn create adonis-ts-app' : 'npx create-adonis-ts-app')} ${colors.dim('')}
${colors.yellow('Options')}
${colors.green('--boilerplate')} ${colors.green('')} ${colors.dim('Choose API boilerplate')}
${colors.green('--name')} ${colors.green('')} ${colors.dim('Define custom application name')}
${colors.green('--eslint')} ${colors.green('')} ${colors.dim('Enable/disable eslint setup')}
`
/**
* Running all the tasks to create a new project.
*/
export async function runTasks (args: string[]) {
const argv = getops(args, {
string: ['boilerplate', 'name'],
boolean: ['eslint'],
default: {
eslint: null,
},
})
console.log(BADGE)
import { isEmptyDir, logger, colors } from '@adonisjs/sink'
import { ensureDirSync, removeSync } from 'fs-extra'
import { Application } from '@adonisjs/application/build/standalone'
import { tasks } from './tasks'
import { CliState } from './src/contracts'
const USING_YARN = !!(process.env.npm_execpath && process.env.npm_execpath.includes('yarn'))
/* eslint-disable-next-line */
const BADGE = " _ _ _ _ \n / \\ __| | ___ _ __ (_)___ | |___ \n / _ \\ / _` |/ _ \\| '_ \\| / __|_ | / __|\n / ___ \\ (_| | (_) | | | | \\__ \\ |_| \\__ \\\n/_/ \\_\\__,_|\\___/|_| |_|_|___/\\___/|___/\n"
/**
* Help screen output
*/
const HELP = `${colors.green(USING_YARN ? 'yarn create adonis-ts-app' : 'npx create-adonis-ts-app')} ${colors.dim('')}
${colors.yellow('Options')}
${colors.green('--boilerplate')} ${colors.green('')} ${colors.dim('Choose API boilerplate')}
${colors.green('--name')} ${colors.green('')} ${colors.dim('Define custom application name')}
${colors.green('--eslint')} ${colors.green('')} ${colors.dim('Enable/disable eslint setup')}
`
/**
* Running all the tasks to create a new project.
*/
export async function runTasks (args: string[]) {
const argv = getops(args, {
string: ['boilerplate', 'name'],
boolean: ['eslint'],
default: {
eslint: null,
import { tasks } from './tasks'
import { CliState } from './src/contracts'
const USING_YARN = !!(process.env.npm_execpath && process.env.npm_execpath.includes('yarn'))
/* eslint-disable-next-line */
const BADGE = " _ _ _ _ \n / \\ __| | ___ _ __ (_)___ | |___ \n / _ \\ / _` |/ _ \\| '_ \\| / __|_ | / __|\n / ___ \\ (_| | (_) | | | | \\__ \\ |_| \\__ \\\n/_/ \\_\\__,_|\\___/|_| |_|_|___/\\___/|___/\n"
/**
* Help screen output
*/
const HELP = `${colors.green(USING_YARN ? 'yarn create adonis-ts-app' : 'npx create-adonis-ts-app')} ${colors.dim('')}
${colors.yellow('Options')}
${colors.green('--boilerplate')} ${colors.green('')} ${colors.dim('Choose API boilerplate')}
${colors.green('--name')} ${colors.green('')} ${colors.dim('Define custom application name')}
${colors.green('--eslint')} ${colors.green('')} ${colors.dim('Enable/disable eslint setup')}
`
/**
* Running all the tasks to create a new project.
*/
export async function runTasks (args: string[]) {
const argv = getops(args, {
string: ['boilerplate', 'name'],
boolean: ['eslint'],
default: {
eslint: null,
},
})