@hstech/node-ts-dev

1.0.8 • Public • Published

@hstech/node-ts-dev

FORKED FROM https://github.com/jsynowiec/node-typescript-boilerplate

This packages aims to hold all needed development dependencies files and packages for a Typescript/NodeJS based project

Usage

Install

YARN

yarn add --dev @hstech/node-ts-dev

PNPM

pnpm install -D @hstech/node-ts-dev

NPM

npm install -D @hstech/node-ts-dev

Package.json

You package.json should look like this

{
  // Load eslint config
  "eslintConfig": {
    "extends": "./node_modules/@hstech/node-ts-dev/.eslintrc"
  },

  // load prettier config
  "prettier": "./node_modules/@hstech/node-ts-dev/.prettierrc.json",

  // Use nodemon
  "scripts": {
    "serve": "nodemon --config ./node_modules/@hstech/node-ts-dev/nodemon.json"
  },

  // @hstech/node-ts-dev MUST BE installed as a dev dependency
  "devDependencies": {
    "@hstech/node-ts-dev": "^1.0.0"
  }
}

tsconfig.json

Create a tsconfig.json file in your project root and it should have at least this configuration

{
  "extends": "@hstech/node-ts-dev",
  "include": ["src/**/*", "__tests__/**/*"],
  "exclude": ["node_modules"]
}

FAQ

PNPM

If you are using pnpm don't forget to create a .npmrc file with the following configuration

public-hoist-pattern[]=eslint
public-hoist-pattern[]=eslint-plugin*
public-hoist-pattern[]=@typescript-eslint*
public-hoist-pattern[]=jest
public-hoist-pattern[]=ts-node
public-hoist-pattern[]=nodemon
public-hoist-pattern[]=@types/*
public-hoist-pattern[]=tslib

Otherwise your runtime won't see the needed executables to work properly See More

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.81latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.81
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @hstech/node-ts-dev

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

183 kB

Total Files

10

Last publish

Collaborators

  • roonie007