Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
name: 'task',
depends: ['name']
},
{
name: '.'
},
{
name: 'production',
depends: ['name']
}
];
/* ====== Initialize ====== */
figlet('GTB', function (err, data) {
console.log(data.toString());
gtbConfig = readGtbConfig();
initialize();
});
function addCliCommands() {
program
.option('-n, --name [projectName]', 'option: Run project')
.option('-t, --task [taskName]', 'option: Run specific gulp task on a project [default]', 'default')
.option('-p, --production', 'option: Set production mode')
.option('list', 'command: List all the projects')
.option('add [add]', 'command: Adds a new project to gtb')
.option('deploy [deploy]', 'command: Deploys project to surge.sh')
.option('delete [delete]', 'command: Deletes project')
.option('.')
.parse(process.argv);
return;
}
serverStarted = true;
let port = parseInt(config.common.port || '3000');
app.set('port', port);
let server = http.createServer(app);
server.listen(port);
server.on('error', onError);
server.on('listening', () => {
var addr = server.address();
var bind = typeof addr === 'string'
? 'pipe ' + addr
: 'port ' + addr.port;
console.log('Listening on ' + bind);
});
figlet('GXB-BOX', 'ANSI Shadow', function (err, text) {
if (err) {
console.error(err);
}
console.log(colors.rainbow('\n=*=*=*=*=*=*=*=*=*==*=*= ๅ
ฌไฟกๅฎๆฐๆฎไบคๆๅฎขๆท็ซฏๅทฒๅฏๅจ =*=*=*==*=*=*=*=*=*=*=*=\n'));
console.log(colors.cyan(`${(text || '').split('\n').map(function (line) {
return `\t${line}`;
}).join('\n')}`));
console.log(colors.rainbow('=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=**=*=*=*=*=*=*==*=*=*=\n'));
});
};
function startWatch() {
figlet('Reactathon', function (err, data) {
if (err) {
console.log('Something went wrong...');
console.dir(err);
return;
}
process.stdout.write(
CLEARSCREEN + yellow(data) + '\n' +
yellow(invert('Fire!')
)
);
setTimeout(() => {
bs.init({ proxy });
console.log(green(invert('Watching...')));
}, 1000)
});
const logName = ( task, done ) => {
figlet( pkg.name, {
font: `Isometric${ Math.floor( Math.random() * ( 4 - 1 + 1 ) ) + 1 }`,
}, ( error, data ) => {
if ( ! error ) {
data.split( '\n' )
.forEach( ( line ) => {
logData( task, line );
} );
logData( task, '' );
}
if ( 'function' === typeof done ) {
done();
}
} );
};
async function main() {
const filename = await findUp('README.md');
const report = await runTest(filename);
const isValid = R.isEmpty(report);
figlet(capitalise(pkg.name), { font: 'univers' }, (_, data) => {
data && console.log(chalk.gray(data));
console.log(
chalk.gray('Version:'.padStart(data ? 70 : 0)),
pkg.version,
'\n\n'
);
report.forEach(({ type, line, column, message }) => {
console.log(
theme.status(theme.statusType.failure)(` ${type} `),
theme.separator(':'),
theme.label('Line'),
theme.value(line),
theme.separator('/'),
theme.label('Column'),
theme.value(column),
console.log(chalk.red(await new Promise((resolve): void => figlet('Hydrogen', (e, data): void => resolve(data)))));
}
export default function fig () {
figlet('JDC O2 Team', function (err, data) {
if (err) {
console.log('Something went wrong...')
console.dir(err)
return
}
debugger
console.log(data)
})
}
export default function fig () {
figlet('JDC O2 Team', function (err, data) {
if (err) {
console.log('Something went wrong...')
console.dir(err)
return
}
console.log(data)
})
}