midway-init
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. midway-demo - Simple example boilerplate
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