Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const simpleGit = require('simple-git')
- const github = 'https://github.com/'
- const week = "5"
- const day = "1"
- const dailyExercise = 'lab-passport-roles'
- const pairExercise = 'lab-authentication-with-passport'
- const studentsUser = [
- // {name: "Leticia", git: "letiescanciano/"},
- // {name: "María", git: "gabaldon/"},
- // {name: "Noah", git: "NoahRiseUp/"},
- // {name: "Paula", git: "pactices/"},
- // {name: "Teo", git: "ambarino/"},
- // {name: "Tino", git: "tinoguti/"},
- // {name: "Lucía", git: "lulastray/"},
- // {name: "Sachín", git: "sachin6291/"},
- {name: "Anthony", git: "totixter/"},
- {name: "Jorge Rodríguez", git: "JorgeAngst/"},
- {name: "Ben", git: "benjamingarciap/"},
- {name: "Manu", git: "Marnelas/"},
- {name: "Juan", git: "jperezGago/"},
- {name: "Jorge L. Hernández", git: "JorgeLHdezFdez/"},
- {name: "Cris", git: "LadyCrispy/"},
- {name: "Alessio", git: "evilloh/"}
- //-------------------------------------------------------------- {name: "Ferbo", git: "Ferbo13/"}
- ]
- // const firstProject = [
- // {name: "María", git: "gabaldon/", project: "catch-the-light"},
- // {name: "Tino", git: "tinoguti/", project: "zombie-attack"},
- // {name: "Lucía", git: "lulastray/", project: "videojuego-Maths-Attack"},
- // {name: "Ferbo", git: "Ferbo13/", project: "El-Capitan"},
- // {name: "Jorge", git: "JorgeAngst/", project: ""},
- // {name: "Ben", git: "benjamingarciap/", project: "IRONHACK_Navecitas_Locas"},
- // {name: "Anthony", git: "totixter/", project: "president-fighter"},
- // {name: "Cris", git: "LadyCrispy/", project: "Peludos-en-Apuros"},
- // {name: "Alessio", git: "evilloh/", project: "Get-Trumped"},
- // ]
- const studentsPair = [
- {pair: "Noah y Alessio", git: "evilloh/"},
- {pair: "Lucía y Tino", git: "lulastray/"},
- {pair: "María y Sachín", git: "sachin6291/"},
- {pair: "Cris y Paula", git: "pactices/"},
- ]
- const dailyFolder = `../Exercises/week${week}/day${day}/${dailyExercise}`
- const pairFolder = `../Exercises/week${week}/day${day}/${pairExercise}`
- studentsUser.forEach(user => {
- simpleGit().clone(`${github}${user.git}${dailyExercise}`, `${dailyFolder}/${user.name}`)
- console.log(`Downloading ${dailyExercise} from ${user.git}`)
- })
- studentsPair.forEach(user => {
- simpleGit().clone(`${github}${user.git}${pairExercise}`, `${pairFolder}/${user.pair}`)
- console.log(`Downloading ${pairExercise} from ${user.git}`)
- })
- // firstProject.forEach(user => {
- // simpleGit().clone(`${github}${user.git}${user.project}`, `../FirstProject/${user.name}`)
- // console.log(`Downloading ${user.project} from ${user.git}`)
- // })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement