How to use the @adonisjs/sink.colors.dim function in @adonisjs/sink

To help you get started, we’ve selected a few @adonisjs/sink examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AdonisCommunity / create-adonis-ts-app / index.ts View on Github external
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)
github AdonisCommunity / create-adonis-ts-app / index.ts View on Github external
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)
github AdonisCommunity / create-adonis-ts-app / index.ts View on Github external
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,
github AdonisCommunity / create-adonis-ts-app / index.ts View on Github external
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,
    },
  })