Socket
Book a DemoInstallSign in
Socket

midway-init

Package Overview
Dependencies
Maintainers
2
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

midway-init

[![Package Quality](http://npm.packagequality.com/shield/midway-init.svg)](http://packagequality.com/#?package=midway-init) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/midwayjs/midway/pulls)

latest
Source
npmnpm
Version
1.20.3
Version published
Maintainers
2
Created
Source

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

Keywords

midway

FAQs

Package last updated on 07 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts