JSPM

npm-init-ts

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q17492F
  • License GPL-3.0

CLI to scaffold Node.js projects with full TypeScript setup.

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

    Readme

    npm-init-ts

    Create Node.js TypeScript projects in seconds! This CLI initializes a project with structure, TS, .env, tsup, tsx, and more!


    Crie projetos Node.js com TypeScript em segundos!
    Este CLI inicializa um projeto com estrutura, TS, .env, tsup, tsx, e muito mais!

    πŸš€ How to Use | Como usar

    npx npm-init-ts

    🧰 What It Does | O que ele faz?

    • Initializes with npm init -y

    • Creates the structure:

      • src/index.ts with dotenv pre-configured
      • .gitignore, README.md, .env, .env.example
      • LICENSE.txt
    • Installs dependencies:

      • typescript, tsx, tsup, @types/node, dotenv
    • Creates tsconfig.json

    • Edits package.json with useful scripts


    • Inicializa com npm init -y
    • Cria a estrutura:
      • src/index.ts com dotenv jΓ‘ pronto
      • .gitignore, README.md, .env, .env.example
      • LICENSE.txt
    • Instala dependΓͺncias:
      • typescript, tsx, tsup, @types/node, dotenv
    • Cria tsconfig.json
    • Edita package.json com scripts ΓΊteis

    πŸ“‚ Final Structure | Estrutura final

    πŸ“¦ your-project/
    β”œβ”€β”€ src/
    β”‚   └── index.ts
    β”œβ”€β”€ .env
    β”œβ”€β”€ .env.example
    β”œβ”€β”€ .gitignore
    β”œβ”€β”€ LICENSE.txt
    β”œβ”€β”€ package.json
    β”œβ”€β”€ tsconfig.json
    └── README.md

    πŸ“œ Created Scripts | Scripts Criados

    • "dev" β†’ runs tsx watch src/index.ts
    • "build" β†’ bundles with tsup
    • "start" β†’ runs the build with NodeJS

    • "dev" β†’ roda tsx watch src/index.ts
    • "build" β†’ empacota com tsup
    • "start" β†’ roda o build com NodeJS

    πŸ“ License | LicenΓ§a

    This project automatically adds a LICENSE.txt to your project.


    Este projeto adiciona um LICENSE.txt ao seu projeto automaticamente.