UNPKG

skeet

Version:

Full-stack TypeScript Serverless Framework

89 lines (77 loc) โ€ข 2.58 kB
import chalk from 'chalk' export module Logger { export const successHex = chalk.hex('#39A845') export const warningHex = chalk.hex('#FFD02E') export const errorHex = chalk.hex('#B5332E') export const syncHex = chalk.hex('#3073B7') export const greyHex = chalk.hex('#BEBDBD') export const indigoHex = chalk.hex('#3950A0') export const pinkHex = chalk.hex('#D8A1C4') export const success = async (text: string) => { console.log(successHex(text)) } export const warning = async (text: string) => { console.log(warningHex(text)) } export const error = async (text: string) => { console.log(errorHex(text)) } export const errorString = async (text: string) => { return errorHex(text) } export const sync = async (text: string) => { console.log(syncHex(text)) } export const grey = async (text: string) => { console.log(greyHex(text)) } export const skeetAA = async () => { const row1SKEE = Logger.syncHex(' _____ __ __ ____________') const row1T = Logger.errorHex('______') const row2SKEE = Logger.syncHex(' / ___// //_// ____/ ____/') const row2T = Logger.errorHex('_ __/') const row3SKEE = Logger.syncHex(' \\__ \\/ ,< / __/ / __/ ') const row3T = Logger.errorHex(' / / ') const row4SKEE = Logger.syncHex(' ___/ / /| |/ /___/ /___ ') const row4T = Logger.errorHex(' / / ') const row5SKEE = Logger.syncHex('/____/_/ |_/_____/_____/') const row5T = Logger.errorHex(' /_/ ๐Ÿ› ๏ธ๐Ÿ› ๏ธ') console.log(`${row1SKEE}${row1T}`) console.log(`${row2SKEE}${row2T}`) console.log(`${row3SKEE}${row3T}`) console.log(`${row4SKEE}${row4T}`) console.log(`${row5SKEE}${row5T}`) } export const welcomText = async (appName: string) => { const title = warningHex( '\nโšกโšกโšก Buidl TypeScript Fullstack App Fast โšกโšกโšก' ) const text = ` $ cd ${appName} $ skeet s Go To : http://localhost:4000/graphql --- โœก Try Your first Query โœก --- mutation { createUser( name: "EpicsDAO" ) { id rawId name } } --------------------------------` console.log(title) console.log(greyHex(text)) } export const cmText = async () => { const text = ` ๐Ÿ’ƒ๐Ÿค๐Ÿ•บ We Support OpenSource Software Comunities ๐Ÿ’ƒ๐Ÿค๐Ÿ•บ Why? - OpenSouce Software Comunities should be deserved more ๐Ÿ’Ž How? - Incentivize for OpenSource Software Developments ๐Ÿ’ฐ What? - Solve/Create GitHub Issues as always ๐Ÿ› ๏ธ Epics Alpha: https://alpha.epics.dev/en/how-it-works/ ` console.log(successHex(text)) } }