Last active
October 31, 2025 14:10
-
Star
(211)
You must be signed in to star a gist -
Fork
(100)
You must be signed in to fork a gist
-
-
Save Klerith/47af527da090043f604b972b22dd4c01 to your computer and use it in GitHub Desktop.
Revisions
-
Klerith revised this gist
Nov 22, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Pasos para usar Node con TypeScript con Nodemon Más información - [Docs Oficiales](https://nodejs.org/en/learn/getting-started/nodejs-with-typescript) 1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo ``` -
Klerith revised this gist
Aug 28, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
Klerith revised this gist
Aug 28, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
Klerith revised this gist
Aug 28, 2023 . 1 changed file with 0 additions and 18 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,18 +0,0 @@ -
Klerith revised this gist
Aug 28, 2023 . 2 changed files with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # Node con TypeScript - TS-Node-dev (preferido) ### Otras formas en este mismo Gist 1. Instalar TypeScript y demás dependencias ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,8 +21,10 @@ npx tsc --init --outDir dist/ --rootDir src ``` 4. Crear scripts para dev, build y start ``` "dev": "nodemon", "build": "rimraf ./dist && tsc", "start": "npm run build && node dist/app.js" ``` -
Klerith revised this gist
Aug 28, 2023 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,17 @@ npm i -D typescript @types/node ts-node nodemon rimraf npx tsc --init --outDir dist/ --rootDir src ``` 3. Crear archivo de configuración Nodemon - nodemon.json ``` { "watch": ["src"], "ext": ".ts,.js", "ignore": [], "exec": "npx ts-node ./src/app.ts" } ``` 4. Crear scripts para dev, build y start ``` "dev": "nodemon", "build": "rimraf ./dist && tsc", -
Klerith revised this gist
Aug 28, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Node con TypeScript - Recomendado 1. Instalar TypeScript y demás dependencias ``` -
Klerith revised this gist
Aug 28, 2023 . 1 changed file with 2 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,21 +4,13 @@ ``` npm i -D typescript @types/node ts-node nodemon rimraf ``` 2. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto) ``` npx tsc --init --outDir dist/ --rootDir src ``` 3. Crear scripts para dev, build y start ``` "dev": "nodemon", "build": "rimraf ./dist && tsc", -
Klerith revised this gist
Aug 28, 2023 . 1 changed file with 17 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ # Node con TypeScript - TS-Node-dev (preferido) 1. Instalar TypeScript y demás dependencias ``` npm i -D typescript @types/node ts-node-dev rimraf ``` 2. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto) ``` npx tsc --init --outDir dist/ --rootDir src ``` 3. Crear scripts para dev, build y start ([Más sobre TS-Node-dev aquí](https://www.npmjs.com/package/ts-node-dev)) ``` "dev": "tsnd --respawn src/app.ts", "build": "rimraf ./dist && tsc", "start": "npm run build && node dist/app.js" ``` -
Klerith revised this gist
Aug 28, 2023 . 2 changed files with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # Pasos para usar Node con TypeScript con Nodemon Más información - [Docs Oficiales](https://nodejs.dev/en/learn/nodejs-with-typescript/) 1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Pasos para usar Node con TypeScript con Nodemon - Simplificado 1. Instalar TypeScript y demás dependencias ``` -
Klerith revised this gist
Aug 25, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ npx tsc --init --outDir dist/ --rootDir src ``` 4. Crear scripts para dev, build y start ``` "dev": "nodemon", "build": "rimraf ./dist && tsc", "start": "npm run build && node dist/app.js" ``` -
Klerith revised this gist
Aug 22, 2023 . 1 changed file with 26 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,26 @@ # Pasos para usar Node con TypeScript - Simplificado 1. Instalar TypeScript y demás dependencias ``` npm i -D typescript @types/node ts-node nodemon rimraf ``` 2. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto) ``` npx tsc --init --outDir dist/ --rootDir src ``` 3. Crear archivo de configuración de Nodemon - **nodemon.json** ``` { "watch": ["src"], "ext": ".ts,.js", "ignore": [], "exec": "npx ts-node ./src/app.ts" } ``` 4. Crear scripts para dev, build y start ``` "dev": "nodemon" "build": "rimraf ./dist && tsc", "start": "npm run build && node dist/app.js" ``` -
Klerith revised this gist
Aug 22, 2023 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ # Hola -
Klerith revised this gist
Aug 18, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,7 @@ npm install -D ts-node nodemon 6. Crear script para correr en desarrollo en el **package.json** ``` "dev": "nodemon" "dev": "npx nodemon" // En caso de no querer instalar nodemon ``` 7. Instalar rimraf (Herramienta que funciona similar al rm -f) eliminar directorio -
Klerith revised this gist
Aug 18, 2023 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,6 +32,7 @@ npm install -D ts-node nodemon 6. Crear script para correr en desarrollo en el **package.json** ``` "dev": "nodemon" "dev": "npx nodemon" **// En caso de no querer instalarlo** ``` 7. Instalar rimraf (Herramienta que funciona similar al rm -f) eliminar directorio -
Klerith revised this gist
Aug 18, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ npm install -D ts-node nodemon ``` 6. Crear script para correr en desarrollo en el **package.json** ``` "dev": "nodemon" ``` 7. Instalar rimraf (Herramienta que funciona similar al rm -f) eliminar directorio -
Klerith revised this gist
Aug 18, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,15 +31,15 @@ npm install -D ts-node nodemon ``` 6. Crear script para correr en desarrollo en el **package.json** ``` "dev": "npx nodemon" ``` 7. Instalar rimraf (Herramienta que funciona similar al rm -f) eliminar directorio ``` npm install -D rimraf ``` 8. Crear scripts en el package.json para construir e iniciar en producción ``` "build": "rimraf ./dist && tsc", "start": "npm run build && node dist/app.js" -
Klerith revised this gist
Aug 18, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ npm i -D typescript @types/node npx tsc --init --outDir dist/ --rootDir src ``` 3. **Opcional** - Para traspilar el código, se puede usar este comando ``` npx tsc npx tsc --watch -
Klerith revised this gist
Aug 18, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ npm i -D typescript @types/node npx tsc --init --outDir dist/ --rootDir src ``` 3. (Opcional) Para traspilar el código ``` npx tsc npx tsc --watch -
Klerith revised this gist
Aug 18, 2023 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # Pasos para usar Node con TypeScript Más información - [Docs Oficiales](https://nodejs.dev/en/learn/nodejs-with-typescript/) 1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo ``` -
Klerith created this gist
Aug 18, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,48 @@ # Pasos para usar Node con TypeScript 1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo ``` npm i -D typescript @types/node ``` 2. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto) ``` npx tsc --init --outDir dist/ --rootDir src ``` 3. Para traspilar el código ``` npx tsc npx tsc --watch ``` 4. Configurar Nodemon y Node-TS ``` npm install -D ts-node nodemon ``` 5. Crear archivo de configuración de Nodemon - **nodemon.json** ``` { "watch": ["src"], "ext": ".ts,.js", "ignore": [], "exec": "npx ts-node ./src/app.ts" } ``` 6. Crear script para correr en desarrollo en el **package.json** ``` "start:dev": "npx nodemon" ``` 6. Instalar rimraf (Herramienta que funciona similar al rm -f) eliminar directorio ``` npm install -D rimraf ``` 7. Crear scripts en el package.json para construir e iniciar en producción ``` "build": "rimraf ./dist && tsc", "start": "npm run build && node dist/app.js" ```