New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@dbbs/cli

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbbs/cli

DBBs CLI for code generation

npmnpm
Version
0.0.1
Version published
Weekly downloads
2
Maintainers
3
Weekly downloads
 
Created
Source

Name: dbbs-cli

Introduction

@dbbs/cli is a command-line tool inspired by the NestJS CLI. It is designed to facilitate the rapid setup of a Turborepo monorepo and the integration of pre-built business solutions, including applications and packages for various programming languages. The CLI automates the initial project structure, ensuring best practices and consistency across all applications.

This tool fetches ready-made solutions from the DBBS Solutions repository and integrates them into the generated project.

Installation

  • Install @dbbs/cli into your application globally using yarn.
yarn global add @dbbs/cli

Usage

Init Project

Once installed, you can run the CLI commands to initialize a new monorepo project:

dbbs-cli init <projectName>

What This Command Does

  • Creates a new Turborepo monorepo in the specified directory.

  • Fetches pre-built configurations and tools from DBBS Solutions, including:

    • ESLint configuration (Link)
    • TypeScript configuration (Link)
  • Sets up essential files like:

    • .gitignore
    • .prettierrc.json
    • .vscode/settings.json
    • .yarnrc.yml
    • Makefile
  • Configures Husky for Git hooks (pre-commit checks).

  • Creates a package.json with workspace configuration and standard scripts.

Available parameters

Parameter NameTypeDefault ValueDescription
projectNamestringnoneThe name of the new project to be initialized. This will be used for directory creation and project configuration.

Project Structure

When initialized, the monorepo will follow this structure:

📂 <app-name>/
│── 📄 package.json
│── 📄 tsconfig.json
│── 📄 .gitignore
│── 📄 .prettierrc.json
│── 📄 .yarnrc.yml
│── 📄 Makefile
│── 📂 .vscode/
│   ├── 📄 settings.json
│── 📂 .husky/
│   ├── 📄 pre-commit
│── 📂 typescript/
│   ├── 📂 apps/
│   ├── 📂 packages/
│       ├── 📂 eslint-config/
│       │   ├── 📄 package.json
│       │   ├── 📄 README.md
│       │   ├── 📄 node.js
│       │   ├── 📄 react.js
│       │   ├── 📄 react-native.js
│       ├── 📂 tsconfig/
│           ├── 📄 package.json
│           ├── 📄 README.md
│           ├── 📄 base.json
│           ├── 📄 react-spa.json
│           ├── 📄 react-native.json

How It Works

  • Run the command: dbbs-cli init <app-name>
  • The CLI fetches necessary configurations and dependencies from the DBBS Solutions repository.
  • A Turborepo monorepo structure is created with proper configurations.
  • Ready-to-use ESLint and TypeScript configurations are applied automatically.

Language and framework

  • JavaScript
  • TypeScript

Type

  • Package

Tech Category

  • Back-end
  • Front-end

License

The DBBS Pre-Built Solutions is open-source software licensed under the MIT License.

Authors and owners

  • Roman Bobrovskiy

External dependencies

  • yargs - Used for parsing CLI arguments.
  • path - Used for working with file and directory paths.

FAQs

Package last updated on 21 Feb 2025

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