UNPKG

@seedneey/gint

Version:

creating a repo (in Github) for your project in one command

26 lines (24 loc) 678 B
const CLI = require("clui"); const Spinner = CLI.Spinner; const fs = require("fs-extra"); const _ = require("lodash"); const chalk = require("chalk"); const path = require("path"); module.exports = { setupConfig: async (data) => { const filePath = path.join(__dirname, "../templates/react"); const status1 = new Spinner("Configuring project..."); status1.start(); fs.copy(filePath, "./", function (err) { if (err) { console.error(err); } else { // console.log("success!"); } }); setTimeout(() => { status1.stop(); console.log(chalk.green(" - reactjs project configured ✔️ ")); }, 3000); }, };