mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Reviewing dependencies.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
var chalk = require('chalk');
|
||||
var _ = require('lodash');
|
||||
|
||||
// Extracted from https://github.com/binduwavell/generator-alfresco
|
||||
|
||||
var ALF_BLUE = _.flow(chalk.bold, chalk.blue);
|
||||
var ALF_BLUE2 = _.flow(chalk.dim, chalk.blue);
|
||||
var ALF_ORANGE = _.flow(chalk.dim, chalk.yellow);
|
||||
var ALF_ORANGE2 = _.flow(chalk.bold, chalk.yellow);
|
||||
var ALF_GREEN = _.flow(chalk.bold, chalk.green);
|
||||
var ALF_GREEN2 = _.flow(chalk.dim, chalk.green);
|
||||
|
||||
var GEN_TEXT = _.flow(chalk.bold, chalk.blue);
|
||||
var ALF_TEXT = _.flow(chalk.bold, chalk.green);
|
||||
|
||||
var LEFT_PAD = ' ';
|
||||
var banner = [
|
||||
'',
|
||||
LEFT_PAD + ALF_BLUE(' ,****.'),
|
||||
LEFT_PAD + ALF_BLUE(' ,.**') + ALF_BLUE2('. ') + ALF_BLUE('`***** ') + ALF_ORANGE('<-_'),
|
||||
LEFT_PAD + ALF_BLUE(' *****') + ALF_BLUE2('*** ') + ALF_BLUE('**') + ALF_BLUE2('*** ') + ALF_ORANGE('####'),
|
||||
LEFT_PAD + ALF_BLUE(' $*****') + ALF_BLUE2('***:') + ALF_BLUE(':') + ALF_BLUE2('**** ') + ALF_ORANGE('####;'),
|
||||
LEFT_PAD + ALF_BLUE2(' _.-._`*') + ALF_BLUE2('**:') + ALF_BLUE(':') + ALF_BLUE2('*** ') + ALF_ORANGE('##') + ALF_ORANGE2('##') + ALF_ORANGE('##'),
|
||||
LEFT_PAD + ALF_BLUE(',**') + ALF_BLUE2('*****, *') + ALF_BLUE2('::') + ALF_BLUE2('* ') + ALF_ORANGE('.;') + ALF_ORANGE2('##### ') + ALF_GREEN('@'),
|
||||
LEFT_PAD + ALF_BLUE('****') + ALF_BLUE2('******,') + ALF_BLUE('\' ') + ALF_ORANGE('-=') + ALF_ORANGE2('#####\'') + ALF_GREEN(',@@@'),
|
||||
LEFT_PAD + ALF_BLUE('***\' ') + ALF_GREEN2('.,---') + ALF_GREEN(', ,.') + ALF_GREEN2('-==@@') + ALF_GREEN('@@@@@@'),
|
||||
LEFT_PAD + ALF_BLUE(' * ') + ALF_GREEN2('/@@@@@') + ALF_GREEN('\'') + ALF_GREEN2(',@ @') + ALF_GREEN('\\ ') + ALF_GREEN2('\'@@@@@') + ALF_GREEN('@@'),
|
||||
LEFT_PAD + ALF_GREEN2(' \'@@@@') + ALF_GREEN('/ ') + ALF_GREEN2('@@@ @@@') + ALF_GREEN('\\ ') + ALF_GREEN2('\':#\''),
|
||||
LEFT_PAD + ALF_GREEN(' !@@@@ ') + ALF_GREEN2('@@@@ @@@@') + ALF_GREEN('@@@@@^'),
|
||||
LEFT_PAD + ALF_GREEN(' @@@@ ') + ALF_GREEN2('@@@') + ALF_GREEN('@@ ') + ALF_GREEN2('@@@') + ALF_GREEN('@@@@\''),
|
||||
LEFT_PAD + ALF_GREEN(' `"$ ') + ALF_GREEN2('\'') + ALF_GREEN('@@@@@. ') + ALF_GREEN2('\'') + ALF_GREEN('##\''),
|
||||
LEFT_PAD + ALF_GREEN(' \'@@@@;\''),
|
||||
'',
|
||||
LEFT_PAD + GEN_TEXT(' DOCKER COMPOSE') + ALF_TEXT(' ALFRESCO'),
|
||||
''
|
||||
].join('\n');
|
||||
|
||||
module.exports = banner;
|
||||
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
const Generator = require('yeoman-generator');
|
||||
const chalk = require('chalk');
|
||||
const yosay = require('yosay');
|
||||
var banner = require('./banner')
|
||||
|
||||
/**
|
||||
* This module buids a Docker Compose template to test
|
||||
* Repository and Search Services/Insight Engine in
|
||||
@@ -15,6 +15,10 @@ module.exports = class extends Generator {
|
||||
// Options to be chosen by the user
|
||||
prompting() {
|
||||
|
||||
if (!this.options['skip-install-message']) {
|
||||
this.log(banner);
|
||||
}
|
||||
|
||||
const prompts = [
|
||||
{
|
||||
type: 'input',
|
||||
|
||||
Reference in New Issue
Block a user