New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@upstash/bootstrapper

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@upstash/bootstrapper

Certainly! Here's a README file for your Upstash Bootstrapper:

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
0
Weekly downloads
 
Created
Source

Certainly! Here's a README file for your Upstash Bootstrapper:

# Upstash Bootstrapper

Upstash Bootstrapper is a command-line tool designed to quickly set up new TypeScript projects with a selection of popular development tools and configurations.

## Features

- Interactive CLI for easy project setup
- Support for multiple package managers (Bun and pnpm)
- Configurable tool selection:
  - Prettier
  - ESLint
  - Commitlint
  - Husky
  - tsup

## Prerequisites

- Node.js (version 14 or later)
- Bun or pnpm package manager

## Installation

```bash
# Clone the repository
git clone https://github.com/yourusername/upstash-bootstrapper.git

# Navigate to the project directory
cd upstash-bootstrapper

# Install dependencies
bun install
```

Usage

Run the bootstrapper with:

bun start

Follow the interactive prompts to:

  1. Enter your project name
  2. Select the development tools you want to set up
  3. Choose your preferred package manager (Bun or pnpm)

The bootstrapper will then:

  • Create a new project directory
  • Initialize a Git repository
  • Set up the selected tools with sensible default configurations
  • Update the package.json with appropriate scripts

Configured Tools

Prettier

  • Consistent code formatting
  • Configuration file: prettier.config.mjs

ESLint

  • Static code analysis
  • Configuration file: .eslintrc.json

Commitlint

  • Enforces conventional commit messages
  • Configuration file: commitlint.config.js

Husky

  • Git hooks for running scripts before commits and pushes
  • Configured hooks:
    • pre-commit: Runs linting, formatting, and tests
    • pre-push: Runs the build script
    • commit-msg: Checks commit message format

tsup

  • TypeScript build tool
  • Configuration file: tsup.config.ts

Scripts

The bootstrapper adds several npm scripts to your package.json:

  • prepare: Installs Husky hooks
  • lint: Runs ESLint
  • fmt: Runs Prettier
  • build: Runs tsup build
  • test: Runs tests (using the selected package manager)
  • format: Runs Prettier (write mode)
  • format:check: Runs Prettier (check mode)
  • lint:fix: Runs ESLint with auto-fix
  • lint:format: Runs both linting and formatting fixes

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

FAQs

Package last updated on 22 Jul 2024

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