clean up
This commit is contained in:
@@ -7,7 +7,7 @@ import { execSync } from "child_process";
|
||||
let envPath = './.env';
|
||||
let q = `${Cyan('?')} \x1b[1m`;
|
||||
let ob = { streamSalt: randomBytes(64).toString('hex') }
|
||||
let rl = createInterface({ input: process.stdin,output: process.stdout });
|
||||
let rl = createInterface({ input: process.stdin, output: process.stdout });
|
||||
|
||||
console.log(
|
||||
`${Cyan("Welcome to cobalt!")}\n${Bright("We'll get you up and running in no time.\nLet's start by creating a ")}${Cyan(".env")}${Bright(" file. You can always change it later.")}`
|
||||
@@ -46,7 +46,7 @@ let final = () => {
|
||||
}
|
||||
console.log(Bright("\nI've created a .env file with selfURL, port, and stream salt."))
|
||||
console.log(`${Bright("Now I'll run")} ${Cyan("npm install")} ${Bright("to install all dependencies. It shouldn't take long.\n\n")}`)
|
||||
execSync('npm install',{stdio:[0,1,2]});
|
||||
execSync('npm install', { stdio: [0, 1, 2] });
|
||||
console.log(`\n\n${Green("All done!\n")}`)
|
||||
console.log("You can re-run this script any time to update the configuration.")
|
||||
console.log("\nYou're now ready to start the main project.\nHave fun!")
|
||||
|
||||
Reference in New Issue
Block a user