1.3.2 • Published 3 years ago

ts-tipi v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ts-tipi 🐺

A cli tool to quickly create Typescript Projects in Node.js

Table of contents

Quick start

Create a new project

npx ts-tipi

Pick a template

  • ts-template
  • express
  • apollo-server

Access your project

cd <your-project-name>

Install the dependencies

npm i
# or 
yarn

Dev command

npm run dev
#or
yarn dev

Template Options

Every template comes with:

  • typescript
  • ts-node
  • ts-node-dev
  • nodemon
  • @types/node
  • prettier

List of commands

    "start": "node ./dist/index.js",
    "start:ts": "ts-node ./src/index.ts",
    "ts:build": "tsc",
    "ts:watch": "tsc --watch",
    "ts:nodemon": "nodemon ./dist/index.js",
    "dev": "ts-node-dev --respawn ./src/index.ts",
    "dev:nodemon": "nodemon ./src/index.ts"

Basic Usage

To run ts-node-dev

npm run dev 
#or
yarn dev

To run nodemon watching ts files

npm run dev:nodemon
#or
yarn dev:nodemon

To run Typescript files using ts-node

npm run start:ts
# or
yarn start:ts

To transpile to Javascript

npm run ts:build 
#or
yarn ts:build

Then to run the compiled js files

npm run start
#or
yarn start

Tsc watch and nodemon setup

Watch for changes in src/index.ts

npm run ts:watch
#or
yarn ts:watch

Watch for changes in dist/index.js

npm run ts:nodemon
#or
yarn ts:nodemon
1.3.2

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago