npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cjcarrick/ts-cli

v1.1.5

Published

Quickly scaffold typescript projects.

Downloads

6

Readme

ts-cli

Quickly scaffold typescript projects.

If you don't know how to get started with Typescript or Node, or you just want to build a simple project, look no further.

Invocation

pnpm dlx @cjcarrick/ts-cli [name]
# or
pnpm dlx @cjcarrick/ts-cli <runtime> [preset] [overrides] <name>

or

npx @cjcarrick/ts-cli [name]
# or
npx @cjcarrick/ts-cli <runtime> [preset] [overrides] <name>

Can be run interactively with prompts by specifying only a name at invocation, or flags and args can be passed at invocation to skip the prompts (see below).

Usage:
  ts-cli [name]
  ts-cli <runtime> [preset] [overrides] <name>

Positionals:
  name  The name of the new project to create                           [string]

Presets
  -0, --barebones  Disables as many things as possible. Default settings enable
                   most things.                                        [boolean]

Overrides
      --[no-]dev-script  Whether or not to add a dev script (using live-server o
                         r Nodemon)                                    [boolean]
      --[no-]eslint      Whether or not to use ESLint                  [boolean]
      --[no-]git         Whether or not to use Git                     [boolean]
      --[no-]prettier    Whether or not to use Prettier                [boolean]
      --[no-]source-map  Whether or not to generate source maps        [boolean]
      --[no-]css         Whether or not to include CSS files when targeting web.
                          Note that TSC will use vanilla CSS, and ESBuild will u
                         se SASS.                                      [boolean]
      --[no-]minify      Whether or not to minify transpiled JavaScript[boolean]
      --[no-]bundle      Whether or not to bundle modules (ESBuild only)
                                                                       [boolean]
      --[no-]esm         Whether or not to use ESM modules             [boolean]
      --pnpm             Use pnpm as package manager                   [boolean]
      --npm              Use npm as package manager                    [boolean]

Options:
      --help       Show help                                           [boolean]
      --version    Show version number                                 [boolean]
  -r, --runtime    What to transpile TypeScript to be able to run in
                                                 [choices: "web", "node", "bun"]
  -b, --builtTool  What to build TypeScript with.

Features

  • Builds for Node, Bun, or web, with or without ES Modules.
  • Asks lots of questions to accurately configure build tools, but does so only as necessary.
  • Supports [esbuild](https://esbuild.github.io/), which is much faster than tsc and can minify and bundle code on its own.
    • You can still use tsc if you want, but keep in mind this means you won't be able to bundle or minify your code out of the box.
  • Uses pnpm for much faster dependency installation and smaller node_modules
    • You can still use npm if you want.

Todo:

  • -[ ] handoff to vue-cli- Just use vue-cli instead.
  • [x] More codesplitting at index.ts
  • [ ] add swc