🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

pastry-cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pastry-cli

Node CLI for effectively pasting template files/directories

Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
5
-58.33%
Maintainers
1
Weekly downloads
 
Created
Source

Pastry-CLI

This CLI helps speed up your workflow, project guidelines and code reusability by adding support for pasting template building blocks.

Installation

Install either to your project npm i pastry-cli or globally npm i -g pastry-cli

Setup/Usage

  • Create a /pastries directory in your project root.
  • Populate the directory with template files/folders.
  • run pastry inside your terminal while in the root directory of your project.

The cli will guide you through the rest of the steps.

Optional Snippets

With optional snippets you can predefine parts of code you might want to use in a file. For example this will prompt you if you want to include the log snippet:

// pastry-start log
console.log('I may be part of the file, yay!')
// pastry-end log

Available Arguments

-n | --name define the new name

-p | --path define the new path to paste the blueprint into (from current working directory)

-t | --template specify the name of the template you want to use

-h | --help lists available commands

Configuration

Configuration can be done by creating a .pastryconfig.json in the root directory for the project.

{
  "templateDir": "{YOUR_TEMPLATE_DIRECTORY}" // default = pastries
}

Keywords

cli

FAQs

Package last updated on 19 Sep 2019

Did you know?

Socket

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