diff --git a/demos-run-v1.js b/demos-run-v1.js index 4f8df18..994859e 100644 --- a/demos-run-v1.js +++ b/demos-run-v1.js @@ -9,6 +9,8 @@ const fs = require('fs'); const util = require('util'); const execProm = util.promisify(exec); +const repoName = 'website' // Change to match actual repo name on git.tcf.ventures + // Simple sleep function using a promise function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); @@ -67,6 +69,23 @@ async function main() { // Now that chalk is installed, require it for future logs const chalk = require('chalk'); + // Initialize fresh git just in case its not already + await executeCommand( + 'git init', + '⚙️ Initializing git... Git-er done.', + 'Git initialized!', + chalk.yellow + ); + + // Pull latest files from #main branch + // Its a read-only access token, don't worry + await executeCommand( + 'git pull https://cbarnett:a72f754efcf65404e5fbc2a70a8f08619fe058bb@git.tcf.ventures/TCF-Ventures-LLC/' + repoName, + '📥 Importing repo files... Are these your files? 🃏', + 'Files Imported!', + chalk.green + ); + // Install remaining dependencies await executeCommand( 'npm install',