This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+39
View File
@@ -0,0 +1,39 @@
<div align="center">
<img src="https://res.cloudinary.com/adonisjs/image/upload/q_100/v1558612869/adonis-readme_zscycu.jpg" width="600px">
</div>
<br />
<hr>
# Adonis Preset Typescript
This module contains the base config files **(recommended by the core team)** for `typescript` to be extended by your AdonisJS typescript projects.
## Usage
Install the package from npm registry as follows
```sh
npm i -D adonis-preset-ts
# yarn
yarn add -D adonis-preset-ts
```
and then setup your config file to extend the base config
**tsconfig.json**
```json
{
"extends": "./node_modules/adonis-preset-ts/tsconfig",
"compilerOptions": {
"types": [
"@adonisjs/core"
],
"paths": {
"App/*": [ "./app/*" ],
"Contracts/*": [ "./contracts/*" ]
}
}
}
```