Update libs (#28)
* added prompt context library * updated libs, except chalk that should not be updated * updated libs and fixed speed
This commit is contained in:
@@ -11,7 +11,7 @@ const getConfirmation = async (branchName: string, stackName: string) => {
|
||||
const confirm = new Confirm({
|
||||
name: 'confirm',
|
||||
message: `Will create ${chalk.yellow(
|
||||
url + '.photowall-test.xx'
|
||||
url + '.photowall-test.xx',
|
||||
)} and publish ${chalk.green(branchName)} to it, continue?`,
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@ module.exports = {
|
||||
toolbox,
|
||||
config.gh_token,
|
||||
'Photowall',
|
||||
'photowall'
|
||||
'photowall',
|
||||
);
|
||||
const branchOptions = branches.map((item) => item.name);
|
||||
|
||||
@@ -78,7 +78,7 @@ module.exports = {
|
||||
print.error(`
|
||||
|
||||
The stack ${chalk.yellow(
|
||||
stackName
|
||||
stackName,
|
||||
)} is already taken, try the update command instead.
|
||||
|
||||
`);
|
||||
@@ -91,14 +91,14 @@ module.exports = {
|
||||
print.error(`
|
||||
|
||||
The stack must begin with ${chalk.yellow(
|
||||
'test-'
|
||||
'test-',
|
||||
)} and then something after like ${chalk.yellow('test-yourname-1')}.
|
||||
|
||||
`);
|
||||
if (toolbox.fromMenu()) {
|
||||
await toolbox.menu.showMenu(
|
||||
'deployment testservers',
|
||||
defaultMenuSettings
|
||||
defaultMenuSettings,
|
||||
);
|
||||
} else {
|
||||
exit();
|
||||
@@ -112,8 +112,8 @@ module.exports = {
|
||||
const cmd = `make create-stack STACK_ENVIRONMENT_NAME=${stacksuffix} GITHUB_BRANCH=${branchName}`;
|
||||
print.fancy(
|
||||
`Running [${chalk.yellow(
|
||||
cmd
|
||||
)}] in folder [${`${config.photowall_repo}/cloudformation/`}]`
|
||||
cmd,
|
||||
)}] in folder [${`${config.photowall_repo}/cloudformation/`}]`,
|
||||
);
|
||||
const output = await system.run(cmd, {
|
||||
cwd: `${config.photowall_repo}/cloudformation/`,
|
||||
@@ -128,7 +128,7 @@ module.exports = {
|
||||
if (toolbox.fromMenu()) {
|
||||
await toolbox.menu.showMenu(
|
||||
'deployment testservers',
|
||||
defaultMenuSettings
|
||||
defaultMenuSettings,
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user