Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier",
"jest"
],
"plugins": ["@typescript-eslint", "prettier", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand Down
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 80
}
}
26 changes: 12 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript in Node.js",
"preLaunchTask": "npm: build",
"program": "${workspaceFolder}/src/index.ts",
"protocol": "inspector",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart"
}
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript in Node.js",
"preLaunchTask": "npm: build",
"program": "${workspaceFolder}/src/index.ts",
"protocol": "inspector",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"sourceMaps": true,
"smartStep": true,
"internalConsoleOptions": "openOnSessionStart"
}
]
}
4 changes: 1 addition & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
{
"type": "typescript",
"tsconfig": "simple-typescript-starter/tsconfig.json",
"problemMatcher": [
"$tsc"
]
"problemMatcher": ["$tsc"]
}
]
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🧰 Simple TypeScript Starter | 2021
# 🧰 Simple TypeScript Starter | 2022

> We talk about a lot of **advanced Node.js and TypeScript** concepts on [the blog](https://khalilstemmler.com), particularly focused around Domain-Driven Design and large-scale enterprise application patterns. However, I received a few emails from readers that were interested in seeing what a basic TypeScript starter project looks like. So I've put together just that.

Expand Down Expand Up @@ -41,4 +41,3 @@ Format your code.
#### `npm run prettier-watch`

Format your code in watch mode, waiting for file changes.

1 change: 1 addition & 0 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"use strict";
// eslint-disable-next-line no-console
console.log('Hello world!');
8 changes: 3 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module.exports = {
transform: {
'^.+\\.ts?$': 'ts-jest'
'^.+\\.ts?$': 'ts-jest',
},
testEnvironment: 'node',
testRegex: './src/.*\\.(test|spec)?\\.(ts|ts)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
"roots": [
"<rootDir>/src"
]
};
roots: ['<rootDir>/src'],
};
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"ext": ".ts,.js",
"ignore": [],
"exec": "ts-node ./src/index.ts"
}
}
Loading