ghosttheme-cli
Advanced tools
Comparing version 1.0.6 to 1.0.7
23
cli.js
@@ -1,10 +0,10 @@ | ||
#! /usr/bin/env node | ||
#!/usr/bin/env node | ||
import shell from "shelljs"; | ||
import json from "./package.json" | ||
const version = "1.0.6" | ||
console.log(json,' json for version') | ||
const version = "1.0.7" | ||
// check git | ||
@@ -16,2 +16,3 @@ if (!shell.which("git")) { | ||
// node version | ||
@@ -27,3 +28,3 @@ let nodeVersion = shell.exec("node --version", { silent: true }); | ||
// get args second | ||
const packageManger = args[1] ? `${args[1]} install` : "yarn install"; | ||
const packageManger = args[1] || "yarn" | ||
@@ -38,6 +39,6 @@ | ||
shell.echo("Installing start with ", nodeVersion, "..."); | ||
shell.echo("Installing start with ", nodeVersion); | ||
let clone = shell.exec( | ||
`git clone https://github.com/officialrajdeepsingh/helloworld.git ${projectName}`, | ||
`git clone https://github.com/officialrajdeepsingh/hello-world.git ${projectName}`, | ||
{ silent: true }, | ||
@@ -67,9 +68,9 @@ ); | ||
let installPackage = shell.exec(packageManger, { silent: true }); | ||
shell.echo(`${packageManger} install`) | ||
let installPackage = shell.exec(`${packageManger} install`, { silent: true }); | ||
if (installPackage.code !== 0) { | ||
shell.echo(`${args[1] ? args[1] : "yarn"} install is failed ` ); | ||
shell.exec("ls"); | ||
shell.exec("cd .."); | ||
shell.exec("ls"); | ||
shell.cd('..'); | ||
shell.echo("deleting the file"); | ||
@@ -76,0 +77,0 @@ shell.rm("-Rf", projectName); |
{ | ||
"name": "ghosttheme-cli", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "ghosttheme-cli help to create a basis boilerplate code for ghost theme", | ||
@@ -5,0 +5,0 @@ "main": "cli.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3916
56