midway-bin
Midway Command Tools
Last updated 8 years ago by czy88840616 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install midway-bin 
SYNC missed versions from official npm registry.

midway-bin

Package Quality PRs Welcome

this is a sub package for midway.

midway developer tool, extends [egg-bin].


Install

$ npm i midway-bin --save-dev

Usage

Add midway-bin to package.json scripts like [egg-bin], but just replace command by `midway-bin:

{
  "scripts": {
    "dev": "midway-bin dev",
    "debug": "midway-bin debug",
    "test-local": "midway-bin test",
    "test": "npm run lint -- --fix && npm run midway-local",
    "cov": "midway-bin cov",
    "lint": "eslint .",
    "pkgfiles": "midway-bin pkgfiles",
    "autod": "midway-bin autod",
    "ci": "npm run lint && npm run autod -- --check && npm run pkgfiles -- --check && npm run cov"
  }
}

Command

midway-bin add new command

  • build
  • clean
  • doc

build

build typescript source file to dist directory like tsc and copy js/css/html file to same place.

$ midway-bin build

options

  • --clean -c clean dist directory before build

copy static file

we can copy static file when ts file compiling.

// in package.json
  "midway-bin-build": {
    "include": [
      "app/public",
      "app/view"
    ]
  }

it will be copy src/app/public to ${outDir}/app/public.

The outDir field is configured in the tsconfig.json File, see compiler-options.

clean

clean a dist directory by build

$ midway-bin clean

doc

generate application document by typedoc

$ midway-bin doc

options

like typedoc, see link

  • --options [typedoc.js] Specify a js option file that should be loaded.
  • --out -o [outPath] Specifies the location the documentation should be written to.
  • --mode -m default value is file, Specifies the output mode the project is used to be compiled with.
  • --exclude Exclude files by the given pattern when a path is provided as source.
  • --theme default value is default Specify the path to the theme that should be used.
  • --excludeExternals default value is true Prevent externally resolved TypeScript files from being documented.
  • --ignoreCompilerErrors default value is true Generates documentation, even if the project does not TypeScript compile.
  • --hideGenerator default value is true Do not print the TypeDoc link at the end of the page.

Tips: If the options parameter is supplied, the other default parameters are invalid

License

MIT

Current Tags

  • 2.2.4                                ...           beta (6 years ago)
  • 0.2.0-alpha.1663751b                                ...           canary (8 years ago)
  • 1.20.3                                ...           latest (6 years ago)
  • 2.0.15                                ...           next (7 years ago)

85 Versions

  • 2.2.4                                ...           6 years ago
  • 2.2.3                                ...           6 years ago
  • 2.2.2                                ...           6 years ago
  • 2.2.1                                ...           6 years ago
  • 2.2.0                                ...           6 years ago
  • 1.20.3                                ...           6 years ago
  • 1.20.1                                ...           6 years ago
  • 2.0.15                                ...           7 years ago
  • 1.18.6                                ...           7 years ago
  • 1.18.5                                ...           7 years ago
  • 2.0.10                                ...           7 years ago
  • 2.0.9                                ...           7 years ago
  • 2.0.8                                ...           7 years ago
  • 2.0.7                                ...           7 years ago
  • 2.0.5                                ...           7 years ago
  • 2.0.4                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 2.0.0-beta.16                                ...           7 years ago
  • 2.0.0-beta.15                                ...           7 years ago
  • 2.0.0-beta.14                                ...           7 years ago
  • 2.0.0-beta.13                                ...           7 years ago
  • 2.0.0-beta.12                                ...           7 years ago
  • 2.0.0-beta.11                                ...           7 years ago
  • 2.0.0-beta.10                                ...           7 years ago
  • 2.0.0-beta.9                                ...           7 years ago
  • 2.0.0-beta.8                                ...           7 years ago
  • 2.0.0-beta.7                                ...           7 years ago
  • 2.0.0-beta.6                                ...           7 years ago
  • 2.0.0-beta.5                                ...           7 years ago
  • 1.17.1                                ...           7 years ago
  • 1.17.0                                ...           7 years ago
  • 2.0.0-beta.4                                ...           7 years ago
  • 1.16.4                                ...           7 years ago
  • 1.16.3                                ...           7 years ago
  • 1.16.2                                ...           7 years ago
  • 1.16.1                                ...           7 years ago
  • 1.15.1                                ...           7 years ago
  • 1.15.0                                ...           7 years ago
  • 1.14.4                                ...           7 years ago
  • 1.14.3                                ...           7 years ago
  • 1.14.1                                ...           7 years ago
  • 1.14.0                                ...           7 years ago
  • 1.12.1                                ...           7 years ago
  • 1.12.0                                ...           7 years ago
  • 1.11.4                                ...           7 years ago
  • 1.11.3                                ...           7 years ago
  • 1.11.2                                ...           7 years ago
  • 1.10.8                                ...           7 years ago
  • 1.10.7                                ...           7 years ago
  • 1.10.5                                ...           7 years ago
  • 1.10.2                                ...           7 years ago
  • 1.9.0                                ...           7 years ago
  • 1.5.6                                ...           8 years ago
  • 1.5.0                                ...           8 years ago
  • 1.4.7                                ...           8 years ago
  • 1.4.3                                ...           8 years ago
  • 1.4.1                                ...           8 years ago
  • 1.3.0                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.7.0                                ...           8 years ago
  • 0.6.5                                ...           8 years ago
  • 0.6.4                                ...           8 years ago
  • 0.6.3                                ...           8 years ago
  • 0.6.2                                ...           8 years ago
  • 0.6.0                                ...           8 years ago
  • 0.5.0                                ...           8 years ago
  • 0.3.8                                ...           8 years ago
  • 0.3.2                                ...           8 years ago
  • 0.3.1                                ...           8 years ago
  • 0.3.0                                ...           8 years ago
  • 0.2.4                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.1.6                                ...           8 years ago
  • 0.2.0-alpha.1663751b                                ...           8 years ago
  • 0.1.5                                ...           8 years ago
  • 0.1.4                                ...           8 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 137
Today 0
This Week 0
This Month 97
Last Day 0
Last Week 1
Last Month 0
Dependencies (5)
Dev Dependencies (5)

© 2010 - cnpmjs.org x YWFE | Home | YWFE