Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adonisjs-community/adonis-preset-ts

Tsconfig and tslint config presets for AdonisJs projects
https://github.com/adonisjs-community/adonis-preset-ts

Last synced: 8 days ago
JSON representation

Tsconfig and tslint config presets for AdonisJs projects

Awesome Lists containing this project

README

        




[![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] [![synk-image]][synk-url]


# 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"
],
"outDir": "./build",
"rootDir": "./",
"paths": {
"App/*": ["./app/*"],
"Config/*": ["./config/*"],
"Contracts/*": ["./contracts/*"],
"Database/*": ["./database/*"]
}
},
"include": ["**/*"],
"exclude": ["node_modules", "build"]
}
```


Built with ❤︎ by Harminder Virk

[npm-image]: https://img.shields.io/npm/v/adonis-preset-ts/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://www.npmjs.com/package/adonis-preset-ts/v/alpha "npm"

[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript

[license-url]: LICENSE.md
[license-image]: https://img.shields.io/github/license/adonisjs-community/adonis-preset-ts?style=for-the-badge

[synk-image]: https://img.shields.io/snyk/vulnerabilities/github/adonisjs-community/adonis-preset-ts?label=Synk%20Vulnerabilities&style=for-the-badge
[synk-url]: https://snyk.io/test/github/adonisjs-community/adonis-preset-ts?targetFile=package.json "synk"