Socket
Socket
Sign inDemoInstall

ghosttheme-cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghosttheme-cli - npm Package Compare versions

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];

2

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc