Last active
January 14, 2025 18:04
Revisions
-
Klerith revised this gist
Sep 1, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains 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 @@ -11,7 +11,7 @@ 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 --clear src/app.ts", "build": "rimraf ./dist && tsc", "start": "npm run build && node dist/app.js" ``` -
Klerith created this gist
Aug 28, 2023 .There are no files selected for viewing
This file contains 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" ```