Skip to content

adonisjs-community/adonis-preset-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


npm-image license-image synk-image


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

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

{
  "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

About

Tsconfig and tslint config presets for AdonisJs projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •