https://github.com/alexigbokwe/expresswebjs-preset-ts
https://github.com/alexigbokwe/expresswebjs-preset-ts
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexigbokwe/expresswebjs-preset-ts
- Owner: Alexigbokwe
- Created: 2021-04-12T15:33:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-26T14:21:54.000Z (about 2 years ago)
- Last Synced: 2025-02-26T00:28:42.764Z (8 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
# ExpressWebJs Preset Typescript
This is the base config files **(recommended by the core team)** for `typescript` to be extended to your ExpressWebJs typescript projects.
## Usage
Install the package from npm registry as follows```sh
npm i -D expresswebjs-preset-ts# yarn
yarn add -D expresswebjs-preset-ts
```and then setup your config file to extend the base config
**tsconfig.json**
```json
{
"extends": "./node_modules/expresswebjs-preset-ts/tsconfig",
"compilerOptions": {
"paths": {
"App/*":["./App/*"],
"Config/*":["./Config/*"],
"Database/*":["./Database/*"],
"Routes/*":["Routes/*"],
}
}
}
```