项目作者: adonisjs-community

项目描述 :
Boilerplate to create a new AdonisJs typescript project
高级语言: TypeScript
项目地址: git://github.com/adonisjs-community/create-adonis-ts-app.git
创建时间: 2019-07-14T10:26:31Z
项目社区:https://github.com/adonisjs-community/create-adonis-ts-app

开源协议:MIT License

下载







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

  1. npm init adonis-ts-app hello-world

Yarn users

  1. yarn create adonis-ts-app hello-world

Options

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

  1. npm init adonis-ts-app
  1. _ _ _ _
  2. / \ __| | ___ _ __ (_)___ | |___
  3. / _ \ / _` |/ _ \| '_ \| / __|_ | / __|
  4. / ___ \ (_| | (_) | | | | \__ \ |_| \__ \
  5. /_/ \_\__,_|\___/|_| |_|_|___/\___/|___/
  6. npm init adonis-ts-app <project-name>
  7. Options
  8. --boilerplate [api, web, slim] Select the project boilerplate
  9. --name <string> Specify application name
  10. --eslint <boolean> Enable/disable eslint setup
  11. --prettier <boolean> Enable/disable prettier setup
  12. --encore <boolean> Enable/disable encore setup
  13. --debug <boolean> Turn on the debug mode

boilerplate

Choose the boilerplate by passing the flag

  1. 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

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

eslint

Configure eslint

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

prettier

Configure prettier

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

encore

Configure encore

  1. 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.

  1. npm init adonis-ts-app hello-world -- --debug

Built with ❤︎ by Harminder Virk