Giter VIP home page Giter VIP logo

typescript-node-starter's Introduction

minimal typescript-node-starter

Minimal Webpack Typescript Starter Kit ๐Ÿ“ฆ

Includes

Scripts

npm run / yarn
dev ------------ run hot-reload with ts-node-dev
nodemon -------- run hot-reload with nodemon
build ---------- creates bundled webpack build
test ----------- runs tests with coverage reports

Sources

Offical TypeScript-Node-Starter:

https://github.com/Microsoft/TypeScript-Node-Starter

The definitive guide to TypeScript and possibly the best TypeScript book

https://basarat.gitbooks.io/typescript/docs/quick/nodejs.html

License

See the LICENSE file for license rights and limitations (MIT).

typescript-node-starter's People

Contributors

firsttris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

typescript-node-starter's Issues

updates

working off this, if you ever want to update...

jest.config.js

module.exports = {
  globals: {
    'ts-jest': {
      tsConfig: 'tsconfig.json',
    },
  },
  testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
  moduleFileExtensions: [
    'js',
    'json',
    'ts',
    'tsx',
  ],
  transform: {
    '^.+\\.(ts|tsx)$': 'ts-jest'
  },
  preset: 'ts-jest',
  testMatch: null,
}

package.json

a bit nuclear option to get latest packages

{
  "name": "typescript-node-starter",
  "version": "1.0.0",
  "description": "typescript nodejs starter",
  "author": "Tristan Teufel",
  "homepage": "https://teufel-it.de",
  "repository": {
    "type": "git",
    "url": "https://github.com/firsttris/typescript-node-starter.git"
  },
  "main": "dist/index",
  "devDependencies": {
    "@types/jest": "*",
    "@types/node": "*",
    "clean-webpack-plugin": "*",
    "jest": "*",
    "nodemon": "*",
    "prettier": "*",
    "ts-jest": "*",
    "ts-loader": "*",
    "ts-node": "*",
    "ts-node-dev": "*",
    "tsconfig-paths": "*",
    "tslint": "*",
    "tslint-config-prettier": "*",
    "tslint-loader": "*",
    "tslint-plugin-prettier": "*",
    "typescript": "*",
    "webpack": "*"
  },
  "scripts": {
    "dev": "ts-node-dev --inspect --no-notify -r ./register-ts-config-path.ts ./src/index.ts",
    "nodemon": "nodemon",
    "tslint:fix": "tslint --fix -c tslint.json \"*.{ts,tsx}\"",
    "test": "jest --coverage",
    "build": "webpack",
    "update:packages": "node ./bin/wipe-dependencies.js && rm -rf node_modules && npm update --save-dev && npm update --save"
  },
  "keywords": [
    "microserver",
    "nodejs",
    "typescript",
    "jest",
    "webpack",
    "prettier"
  ],
  "license": "MIT"
}

https://khalilstemmler.com/blogs/tooling/enforcing-husky-precommit-hooks/

also nice series here ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.