@pricking/cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

@pricking/cli

program start, as esno & nodemon wrapper.

TODO

  • [x] new inst - init
  • [ ] new inst - test [可考虑集成 vitest]

inst

pricking-cli [命令]

命令:
  pricking-cli init
  pricking-cli start [options]

程式启动

选项:
  --help                显示帮助信息                                      [布尔]
  --version             显示版本号                                        [布尔]
  --confgPath, --cpath  cli config path                                 [字符串]

config

such as nodemon config, exclude exec, it consists of entryPoint and execArgs

{
  "entryPoint": "./src/index.ts",
  "watch": ["src"],
  "ext": "ts",
  "ignore": ["src/**/*.spec.ts"],
  "execArgs": [
    ["-r", "tsconfig-paths/register"],
    ["-r", "dotenv/config"],
    "dotenv_config_path=.dev-env"
  ],
  "env": {
    "APP_ENV": "development"
  },
  "delay": 500
}
interface IPrickingConf {
  entryPoint: string;
  watch?: string[];
  ext?: string;
  ignore?: string[];
  delay?: number;
  env?: any;
  execArgs?: Array<[string, string] | string>;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @pricking/cli

Weekly Downloads

7

Version

0.0.10

License

MIT

Unpacked Size

6.3 kB

Total Files

9

Last publish

Collaborators

  • flasco