JSPM

  • Created
  • Published
  • Downloads 128
  • Score
    100M100P100Q83141F
  • License MIT

Boilerplate to create a new AdonisJs typescript project

Package Exports

  • create-adonis-ts-app
  • create-adonis-ts-app/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-adonis-ts-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


npm-image license-image synk-image


Create AdonisJS App

AdonisJS Typescript starter template

This is the official starter template to create AdonisJS applications. You can choose between one of the following boilerplates

  • api: Project structure + dependencies tailored for creating a REST API server.
  • web: Traditional web application with server rendered templates and pre-configured support for sessions.
  • slim: A smallest possible AdonisJS application. Still way powerful and feature rich than an Express application.

Creating a new app

npm init adonis-ts-app hello-world

Yarn users

yarn create adonis-ts-app hello-world

Options

Execute the following command to see the help output and available options

npm init adonis-ts-app
    _       _             _         _     
   / \   __| | ___  _ __ (_)___    | |___ 
  / _ \ / _` |/ _ \| '_ \| / __|_  | / __|
 / ___ \ (_| | (_) | | | | \__ \ |_| \__ \
/_/   \_\__,_|\___/|_| |_|_|___/\___/|___/

npm init adonis-ts-app <project-name>

Options
--boilerplate [api, web, slim]    Select the project boilerplate
--name <string>                   Specify application name
--eslint <boolean>                Enable/disable eslint setup
--prettier <boolean>              Enable/disable prettier setup
--encore <boolean>                Enable/disable encore setup
--debug <boolean>                 Turn on the debug mode

boilerplate

Choose the boilerplate by passing the flag

npm init adonis-ts-app hello-world -- --boilerplate=web

name

Define the application name. The name property inside the package.json file will reflect this value

npm init adonis-ts-app hello-world -- --name=my-app

eslint

Configure eslint

npm init adonis-ts-app hello-world -- --eslint

prettier

Configure prettier

npm init adonis-ts-app hello-world -- --prettier

encore

Configure encore

npm init adonis-ts-app hello-world -- --encore

debug

Debug the project creation process. This flag will use the verbose output for better debugging experience.

npm init adonis-ts-app hello-world -- --debug
Built with ❤︎ by Harminder Virk