jerusalem-init-react
Version:
This is a command line application that allows you to create a boilerplate for a complete react application and it has many features
19 lines (15 loc) • 444 B
JavaScript
const program = require('commander');
const cp=require('child_process')
program
.parse(process.argv);
if (program.args && program.args.length)
{
cp.exec(`git clone https://github.com/mregydev/reactBoilerPlate.git ${program.args[0]}`,(err,stdout,stderr)=>{
console.log("project created bro")
})
}
else
{
console.log("problem in execcuting check that you path name of the project")
}