midway-init

    1.20.3 • Public • Published

    midway-init

    Package Quality PRs Welcome

    this is a sub package for midway.

    Document: https://midwayjs.org/midway

    Install

    $ npm i midway-init -g
    $ midway-init -h

    Create a boilerplate by type

    $ midway-init --type midway-ts

    Or select a boilerplate by yourself

    $ midway-init
    ? Hello, traveller.
      Which template do you like? … 
    ❯ midway-ts - Simple midway application boilerplate by ts.(by @midwayJs)
      midway-demo - Simple example boilerplate for find bug or submit to midway-examples.(by @midwayJs)
      midway-ts-strict - Simple midway application boilerplate by ts with ng style and strict eslint rules.(by @waitingsong)
      midway-ts-ant-design-pro - A front-end and back-end separation project includes midway(ts) and ant-design-pro.(by @tw93)
     

    Command

    Usage: midway-init
    Options:
      --type          boilerplate type                                                [string]
      --dir           target directory                                                [string]
      --template      local path to boilerplate                                       [string]
      --package       boilerplate package name                                        [string]
      --registry, -r  npm registry, support china/npm/custom, default to auto detect  [string]
      --version       Show version number                                             [boolean]
      -h, --help      Show help                                                       [boolean]
    

    Custom Template

    You can custom your boilerplate by light-generator and use it by command midway-init --package [your package name]

    Example

    midway-init --package=midway-boilerplate-typescript

    License

    MIT

    Install

    npm i midway-init

    DownloadsWeekly Downloads

    118

    Version

    1.20.3

    License

    none

    Unpacked Size

    28.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • czy88840616
    • lellansin