JSPM

  • Created
  • Published
  • Downloads 32
  • Score
    100M100P100Q62885F
  • License MIT

CLI to setup tinyhttp apps

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 (@tinyhttp/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @tinyhttp/cli

    npm GitHub Workflow Status Coverage

    The tinyhttp CLI to quick-start new projects.

    Install

    Node.js 16.8+ is required.

    pnpm i -g @tinyhttp/cli

    Usage

    tinyhttp new <template> [folder]

    tinyhttp new basic my-app

    Arguments

    • template is the name of template from examples folder.
    • folder argument is optional

    Flags

    • --pkg - custom package manager to use for running installation commands.

    Some flags help you to quickly create popular tool configurations for Node.js projects so you don't have to write them from scratch.

    • --prettier - creates a Prettier config (and installs Prettier)
    • --eslint - creates an ESLint config (and installs ESLint, Prettier and plugins)
    • --eslint-ts - creates an ESLint config for a TypeScript project (and installs ESLint, Prettier, TypeScript and plugins)
    • --full - --prettier and --eslint combined