Socket
Socket
Sign inDemoInstall

@dreamonkey/cli-ghostwriter

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dreamonkey/cli-ghostwriter

Execute a command providing a preset of question-answer pairs, the package will fill in the answers for you


Version published
Weekly downloads
4
Maintainers
2
Install size
44.5 kB
Created
Weekly downloads
 

Readme

Source

@dreamonkey/cli-ghostwriter

Execute a CLI command providing a preset of question-answer pairs, the package will take over and fill in the answers for you

Installation

$ npm install @dreamonkey/cli-ghostwriter
# or
$ yarn add @dreamonkey/cli-ghostwriter
# or
$ pnpm install @dreamonkey/cli-ghostwriter

Usage

import {
  ACCEPT_DEFAULT,
  cliCreate,
  DOWN_KEY,
  WHITESPACE_KEY,
} from "@dreamonkey/cli-ghostwriter";

const answersMap: Record<string, string | undefined> = {
  "What would you like to build?": ACCEPT_DEFAULT, // App
  "Project folder": "my-project-folder",
  "Remove existing files and continue?": "y",
  "Pick Quasar version": ACCEPT_DEFAULT, // Qv2
  "Pick script type": DOWN_KEY, // TypeScript
  "Pick Quasar App CLI variant": ACCEPT_DEFAULT, // Webpack
  "Package name": "my-project",
  "Project product name": "My Project",
  "Project description": "",
  Author: ACCEPT_DEFAULT,
  "Pick a Vue component style": DOWN_KEY, // composition-setup
  "Pick your CSS preprocessor": ACCEPT_DEFAULT, // SCSS
  "Check the features needed for your project": `${DOWN_KEY}${WHITESPACE_KEY}${DOWN_KEY}${DOWN_KEY}${WHITESPACE_KEY}`, // checks: ESLint (default), Pinia, Axios
  "Pick an ESLint preset": ACCEPT_DEFAULT, // prettier
  "Install project dependencies?": DOWN_KEY, // No
};

await cliGhostwriter({
  command: "pnpm create quasar",
  answersMap,
  endingMarker: "Enjoy! - Quasar Team",
  // enableLogs: true
});

FAQs

Last updated on 07 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc