ghosttheme-cli
Advanced tools
Comparing version 1.0.7 to 1.0.8
35
cli.js
@@ -5,8 +5,5 @@ #!/usr/bin/env node | ||
const version = "1.0.8"; | ||
const version = "1.0.7" | ||
// check git | ||
// check git | ||
if (!shell.which("git")) { | ||
@@ -17,3 +14,2 @@ shell.echo("Sorry, git is not install"); | ||
// node version | ||
@@ -29,5 +25,5 @@ let nodeVersion = shell.exec("node --version", { silent: true }); | ||
// get args second | ||
const packageManger = args[1] || "yarn" | ||
const packageManger = args[1] || "yarn"; | ||
// create version command | ||
if (projectName === "version" || projectName === "--version") { | ||
@@ -38,6 +34,8 @@ shell.echo(version); | ||
// check project name | ||
if (projectName.length > 0) { | ||
// installation message | ||
shell.echo("Installing start with ", nodeVersion); | ||
// clone repo | ||
let clone = shell.exec( | ||
@@ -48,3 +46,3 @@ `git clone https://github.com/officialrajdeepsingh/hello-world.git ${projectName}`, | ||
// Clone the repo | ||
// Clone the repo and check error | ||
if (clone.code == 128) { | ||
@@ -56,3 +54,3 @@ shell.echo( | ||
} | ||
// face any error stop command | ||
if (clone.code !== 0) { | ||
@@ -68,12 +66,11 @@ shell.echo(`Some thing wrong`); | ||
} | ||
// installation dependencies message | ||
shell.echo("Start Install the dependencies with", packageManger, "..."); | ||
shell.echo("Start Install the dependencies with", packageManger, "..." ); | ||
shell.echo(`${packageManger} install`) | ||
let installPackage = shell.exec(`${packageManger} install`, { silent: true }); | ||
// installtion faile then stop command and delete folder | ||
if (installPackage.code !== 0) { | ||
shell.echo(`${args[1] ? args[1] : "yarn"} install is failed ` ); | ||
shell.cd('..'); | ||
shell.echo(`${args[1] ? args[1] : "yarn"} install is failed `); | ||
shell.cd(".."); | ||
shell.echo("deleting the file"); | ||
@@ -83,5 +80,9 @@ shell.rm("-Rf", projectName); | ||
} | ||
} else { | ||
shell.echo("folder name is required"); | ||
shell.exit(); | ||
} | ||
shell.echo(`cd ${projectName}`); | ||
shell.echo("After run ghost start command"); | ||
shell.echo("Let start the working with ghost theme and tailwind css."); |
{ | ||
"name": "ghosttheme-cli", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "ghosttheme-cli help to create a basis boilerplate code for ghost theme", | ||
@@ -9,2 +9,6 @@ "main": "cli.js", | ||
"ghost", | ||
"ghostcms", | ||
"ghost-theme-cli", | ||
"ghosttheme blog", | ||
"ghosttheme-blog", | ||
"ghosttheme", | ||
@@ -11,0 +15,0 @@ "ghosttheme-cli" |
Ghost theme-cli help to provide a boilerplate theme for the developer. Developers quickly start working with a ghost theme. Ghost theme-cli official supports the tailwind CSS by default in your theme. | ||
## Currenlty ghosttheme-cli in beta maybe you feel some bugs with it | ||
## How to use ghosttheme-cli? | ||
@@ -53,2 +50,3 @@ With ghost theme-cli, you quickly start working with theme development with one command. | ||
## report bugs | ||
You face any bug feel free to [Submit us](https://www.google.com) |
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
5057
4
65
52