Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grammyjs/create-grammy

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/create-grammy

Scaffold grammY projects in minute

  • 0.2.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

Create grammy

Fast and simple command line tool to setup the needed files to quickly create Telegram bots powered by the grammY bot framework. This tool allows you to create projects from several templates, maintained by both official team and third-party users.

Here is a preview of the tool: https://asciinema.org/a/504541

Install

TODO: Release executables

Install using Go.

go install github.com/grammyjs/create-grammy@latest

After installation, run gmy command to use the tool. You can provide a project name as the first argument.

Templates

Open a pull request by adding your own templates to the templates.json file. There are currently three platforms that you can add templates to: Deno, Node.js, and other templates.

Each template should contain the following fields:

  • name — Name to be shown in the templates list in CLI. Recommended to use "owner/repository" as the name if it's a repository.
  • typerepository or subfolder. If your template is an entire repository, use repository as type, or if it is a subfolder in a repository use subfolder as the type.
  • owner — GitHub repository owner.
  • repository — GitHub repository name.
  • docker_prompt — Should the CLI prompt the user to add default docker files.
  • tsconfig_prompt — Should the CLI prompt the user to add the default tsconfig.json file.

You also need to add the following fields according to your template:

"repository" type
  • branch — Primary repository branch name. Try your best to keep that branch up-to-date.
"subfolder" type
  • path — Path to the subfolder where the template is located at.
For Deno templates
  • cache_file — When the user chose to cache dependencies, deno cache command will get executed for the specified file. Point to deps.ts, or the entry point of the template.

Keywords

FAQs

Package last updated on 02 Nov 2022

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

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