@akash.dev/react-start 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/cli.js +5 -13
- package/package.json +1 -1
- package/readme +0 -29
package/bin/cli.js
CHANGED
@@ -11,23 +11,15 @@ const runCommand = command =>{
|
|
11
11
|
}
|
12
12
|
const repoName = process.argv[2];
|
13
13
|
console.log(repoName);
|
14
|
-
const
|
15
|
-
|
16
|
-
// console.log(my);
|
17
|
-
// repoName2.push('a')
|
18
|
-
let newa = repoName2.join("/")
|
19
|
-
// console.log(repoName2);
|
20
|
-
console.log(newa);
|
21
|
-
|
22
|
-
// let mypath = `C:/Users/my-pc/Documents/GitHub/react-starter/a`;
|
23
|
-
const gitCheckoutCommand = `git clone https://github.com/arakash-developer/reactjs-start.git ${newa}`;
|
24
|
-
// const installDepsCommand = `cd ${repoName} && npm install`;
|
14
|
+
const gitCheckoutCommand = `git clone --dept 1 https://github.com/arakash-developer/reactjs-start ${repoName}`;
|
15
|
+
const installDepsCommand = `cd ${repoName} && npm install`;
|
25
16
|
// console.log(`Cloning the repository with name ${repoName}`);
|
26
17
|
console.log(`Installing Packages for ${repoName} @akash.dev`);
|
27
18
|
const checkedOut = runCommand(gitCheckoutCommand);
|
28
19
|
if(!checkedOut) process.exit(-1);
|
29
20
|
console.log(`Installing dependencies for ${repoName} @akash.dev`);
|
30
|
-
|
31
|
-
|
21
|
+
const installedDeps = runCommand(installDepsCommand);
|
22
|
+
if(!installedDeps) process.exit(-1);
|
32
23
|
console.log(`Congratulation!! You are Ready @akash.dev`);
|
33
24
|
console.log(`cd ${repoName} && npm run dev or npm start @akash.dev`);
|
25
|
+
|
package/package.json
CHANGED
package/readme
CHANGED
@@ -1,29 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
// #!/usr/bin/env node
|
6
|
-
// const {execSync} = require('child_process');
|
7
|
-
// const runCommand = command =>{
|
8
|
-
// try{
|
9
|
-
// execSync(`${command}`,{stdio: 'inherit'});
|
10
|
-
// }catch(e){
|
11
|
-
// console.error(`Failed to execute ${command}`,e);
|
12
|
-
// return false;
|
13
|
-
// }
|
14
|
-
// return true;
|
15
|
-
// }
|
16
|
-
// const repoName = process.argv[2];
|
17
|
-
// console.log(repoName);
|
18
|
-
// const gitCheckoutCommand = `git clone --dept 1 https://github.com/arakash-developer/reactjs-start ${repoName}`;
|
19
|
-
// const installDepsCommand = `cd ${repoName} && npm install`;
|
20
|
-
// // console.log(`Cloning the repository with name ${repoName}`);
|
21
|
-
// console.log(`Installing Packages for ${repoName} @akash.dev`);
|
22
|
-
// const checkedOut = runCommand(gitCheckoutCommand);
|
23
|
-
// if(!checkedOut) process.exit(-1);
|
24
|
-
// console.log(`Installing dependencies for ${repoName} @akash.dev`);
|
25
|
-
// const installedDeps = runCommand(installDepsCommand);
|
26
|
-
// if(!installedDeps) process.exit(-1);
|
27
|
-
// console.log(`Congratulation!! You are Ready @akash.dev`);
|
28
|
-
// console.log(`cd ${repoName} && npm run dev or npm start @akash.dev`);
|
29
|
-
|