@exoskeleton/cli
@exoskeleton/core 脚手架和 cli 工具
Last updated a month ago by bigmogician .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @exoskeleton/cli 
SYNC missed versions from official npm registry.

@exoskeleton/cli

@exoskeleton/core 脚手架和 cli 工具

配合@exoskeleton/core使用效果更佳

安装

本地安装

npm install @exoskeleton/cli --save-dev
yarn add @exoskeleton/cli -D

全局安装

npm install @exoskeleton/cli --global
yarn global add @exoskeleton/cli

开发姿势

0.cli 配置文件

@exoskeleton/cli 开放了一个配置文件,用来简化 cli 参数的使用,类似 webpack,可以使用--config 参数修改配置文件的名字,默认为exoskeleton.config.js

exoskeleton.config.js - 一个简单的配置文件

const path = require("path");

module.exports = {
  tsconfig: "tsconfig.json",
  inspect: true,
  typeCheck: true,
  transpile: true,
  debug: "*",
  mock: "http://127.0.0.1:8001",
  // exoskeleton router 的命令配置
  // 编译生成routers,不再需要手动书写routers文件
  routers: {
    enabled: true,
    always: false,
    approot: "/v1",
    filetype: "ts",
    details: true
  },
  // exoskeleton-cli监控的文件修改列表,自动重启node服务
  watch: [
    path.join(__dirname, "app/**/*.*"),
    path.join(__dirname, "config/**/*.*"),
    path.join(__dirname, "plugins/**/*.*")
  ],
  // 忽略的文件列表
  ignore: [],
  // exoskeleton config 的命令配置
  // 编译ts配置文件,支持DI能力 @1.1.0 引入
  configCompiler: {
    enabled: true,
    force: true,
    configroot: "app/config",
    outputroot: "config
  }
};

1. 启动

# cmd:exo 或者 exoskeleton
# 本地安装@exoskeleton/cli
npx exo dev --inspect --tsconfig app/tsconfig.json
# 全局装过@exoskeleton/cli
exo dev --inspect --tsconfig app/tsconfig.json

Current Tags

  • 0.1.3                                ...           latest (a month ago)

29 Versions

  • 0.1.3                                ...           a month ago
  • 0.1.2                                ...           a month ago
  • 0.1.1                                ...           7 months ago
  • 0.1.0                                ...           7 months ago
  • 0.0.9-beta.7                                ...           8 months ago
  • 0.0.9-beta.6                                ...           8 months ago
  • 0.0.9-beta.5                                ...           8 months ago
  • 0.0.9-beta.4                                ...           8 months ago
  • 0.0.9-beta.3                                ...           8 months ago
  • 0.0.9-beta.1                                ...           8 months ago
  • 0.0.8-beta.1                                ...           8 months ago
  • 0.0.8                                ...           a year ago
  • 0.0.7-rc.1561624977782                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1-rc.1561455328425                                ...           a year ago
  • 0.0.1                                ...           a year ago
  • 0.0.1-rc.1561455096875                                ...           a year ago
  • 0.0.1-rc.1561454695093                                ...           a year ago
  • 0.0.1-rc.1561444609717                                ...           a year ago
  • 0.0.1-rc.1561442979955                                ...           a year ago
  • 0.0.1-rc.1561442262690                                ...           a year ago
  • 0.0.1-rc.1561439012497                                ...           a year ago
  • 0.0.1-rc.1561438972416                                ...           a year ago
  • 0.0.1-rc.1                                ...           a year ago
Maintainers (1)
Downloads
Today 12
This Week 17
This Month 148
Last Day 5
Last Week 81
Last Month 102
Dependencies (12)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |