ghosttheme-cli
Advanced tools
Comparing version 1.0.2 to 1.0.3
21
cli.js
@@ -5,2 +5,4 @@ #! /usr/bin/env node | ||
const version = "1.0.3" | ||
// check git | ||
if (!shell.which("git")) { | ||
@@ -10,14 +12,23 @@ shell.echo("Sorry, git is not install"); | ||
} | ||
// node version | ||
let version = shell.exec("node --version", { silent: true }).stdout; | ||
let nodeVersion = shell.exec("node --version", { silent: true }).stdout; | ||
// slice argv as we don't need the forst two elements (in this case) | ||
const args = process.argv.slice(2, process.argv.length); | ||
// get args first | ||
const projectName = args[0]; | ||
// get args second | ||
const packageManger = args[1] ? `${args[1]} install` : "yarn install"; | ||
if (projectName === "version" || projectName === "--version") { | ||
shell.echo(version); | ||
shell.exit(); | ||
} | ||
if (projectName.length > 0) { | ||
shell.echo("Installing start with ", version, "..."); | ||
shell.echo("Installing start with ", nodeVersion, "..."); | ||
@@ -63,1 +74,7 @@ let clone = shell.exec( | ||
shell.echo("Let start the working with ghost theme and tailwind css."); | ||
version | ||
// get args first | ||
const versionName = args[0]; | ||
{ | ||
"name": "ghosttheme-cli", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "ghosttheme-cli help to create a basis boilerplate code for ghost theme", | ||
@@ -5,0 +5,0 @@ "main": "cli.js", |
@@ -25,2 +25,6 @@ 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. | ||
1. ghost-theme | ||
2. ghost-theme version or ghost-theme --version | ||
## ghost-theme | ||
```javascript | ||
@@ -34,4 +38,12 @@ ghost-theme name-the-project // install all dependencies by default with yarn | ||
``` | ||
## ghost-theme version or ghost-theme --version | ||
```javascript | ||
ghost-theme version | ||
or | ||
ghost-theme --version | ||
``` | ||
### note | ||
`ghost-theme my-project` use by default yarn. | ||
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
3871
58
48