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 -yCreates the structure:
src/index.tswithdotenvpre-configured.gitignore,README.md,.env,.env.exampleLICENSE.txt
Installs dependencies:
typescript,tsx,tsup,@types/node,dotenv
Creates
tsconfig.jsonEdits
package.jsonwith useful scripts
- Inicializa com
npm init -y - Cria a estrutura:
src/index.tscomdotenvjΓ‘ pronto.gitignore,README.md,.env,.env.exampleLICENSE.txt
- Instala dependΓͺncias:
typescript,tsx,tsup,@types/node,dotenv
- Cria
tsconfig.json - Edita
package.jsoncom 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"β runstsx watch src/index.ts"build"β bundles withtsup"start"β runs the build with NodeJS
"dev"β rodatsx watch src/index.ts"build"β empacota comtsup"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.