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/*" ]
}
}
}
```
+31
View File
@@ -0,0 +1,31 @@
{
"name": "adonis-preset-ts",
"version": "2.1.0",
"description": "Preset files to be extended by tsconfig and tslint.json",
"files": [
"tsconfig.json",
"tslint.js",
"README.md"
],
"scripts": {
"release": "np"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AdonisCommunity/adonis-preset-ts.git"
},
"keywords": [
"typescript",
"tslint",
"adonisjs"
],
"author": "virk,adonisjs",
"license": "MIT",
"bugs": {
"url": "https://github.com/AdonisCommunity/adonis-preset-ts/issues"
},
"homepage": "https://github.com/AdonisCommunity/adonis-preset-ts#readme",
"devDependencies": {
"np": "^7.4.0"
}
}
+31
View File
@@ -0,0 +1,31 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": [
"ES2020"
],
"noUnusedLocals": true,
"skipLibCheck": true,
"incremental": true,
"noUnusedParameters": true,
"removeComments": true,
"declaration": false,
"moduleResolution": "node",
"outDir": "../../build",
"strictNullChecks": true,
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"rootDir": "../../",
"baseUrl": "../../"
},
"include": [
"**/*"
],
"exclude": [
"node_modules",
"build"
]
}