JSPM

@trapar-waves/cli-template

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q70625F
  • License MIT

A CLI template with TypeScript, tsup, consola, destr, and picocolors, offering efficient builds, logging, data parsing, and colorful output, with ESLint for quality.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@trapar-waves/cli-template) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @trapar-waves/cli-template

    npm version npm dm License GitHub last commit

    A CLI template project built with modern tools and practices.

    ✨ Features

    • CLI Tooling: Likely provides a command-line interface (CLI) tool using ts-node and tsup, enabling seamless script execution and build processes.
    • Modern TypeScript Support: Leverages TypeScript (typescript) to ensure type safety and improve code quality during development.
    • Efficient Logging: Utilizes consola for structured and customizable console logging, enhancing the debugging experience.
    • Data Parsing Utilities: Includes destr for parsing and stringifying JSON-like data structures, likely aiding in configuration or data handling tasks.
    • Colorized Output: Employs picocolors for lightweight terminal styling, ensuring clear and visually appealing CLI output.
    • Linting and Code Quality: Integrates ESLint with @antfu/eslint-config, indicating a focus on clean, maintainable, and consistent code.
    • Fast Build Workflow: Uses tsup as a build tool, potentially offering optimized bundling and transpilation for TypeScript projects.

    🚀 Getting Started

    Follow these instructions to get the project running locally.

    Prerequisites

    • Ensure you have the following installed:
      • Node.js (>= 18.x recommended)
      • Package manager (npm, yarn, or pnpm)
      node -v
      npm -v # or yarn -v or pnpm -v

    Installation

    1. Clone the repository:
      git clone https://github.com/Trapar-waves/cli-template.git
      cd cli-template
    2. Install dependencies:
      # Use your preferred package manager
      npm install
      # or
      yarn install
      # or
      pnpm install

    🛠️ Usage

    Available Scripts

    Common scripts available via npm run <script>, yarn <script>, or pnpm <script>:

    • start: Starts the CLI tool using ts-node for development purposes.
    • start:node: Runs the CLI tool directly with Node.js, bypassing TypeScript compilation.
    • build: Creates a production-ready build using tsup.
    • build:watch: Watches for file changes and rebuilds the project automatically during development.

    Example:

    # Run the CLI tool in development mode
    npm run start 
    
    # Build the project for production
    npm run build 

    💻 Tech Stack

    Key technologies used in this project include:

    • Framework/Library: Built as a CLI tool using Node.js.
    • Language: TypeScript for type-safe and maintainable code.
    • Logging: Enhanced console output with consola.
    • Build Tool: Optimized builds using tsup.
    • Linting: Ensures code quality with ESLint and @antfu/eslint-config.

    See the package.json for a full list of dependencies.

    🤝 Contributing

    Contributions are welcome!

    📄 License

    Distributed under the MIT License. See LICENSE file for more information.

    👤 Author