0.0.10 • Published 1 year ago

lmhot v0.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

@lmssee/hot

A simple hot start (abbreviated as lmhot). Simple, it's because only do one thing, listen for file changes, and restart the execution command

use

npx  lmhot

Using configuration files

Can configure files such as' lmssee.config.json ',' lmssee.config. ts', and 'lmssee.config.js' to configure hot values for heating updates If both configurations exist, the final configuration will be '.json'. If there is no '.json' file, the final configuration will be '.js' file Currently, only configuration files in the '.json' format are supported

{
  "hot": {
    /***  base */
    "base": "",
    /**  cwd   */
    "cwd": "",
    /**  Hot start-up listening files */
    "watch": "tools",
    /**
     * Default not listening to   *\/lib, *\/cjs, and *\/es
     * packaged content,can be changed according to actual situation
     */
    "skip": ["lib", "es", "cjs"],
    /**  Command used  */
    "code": "npx lm",
    /**
     *  The parameters passed in can be directly placed into
     *  the code attribute.
     *  After executing the command, pay attention to the order
     */
    "args": ["-al"],
    /** Other commands that need to be executed before executing  */
    "beforReStart": {
      "tools": "npm  run build "
    }
  }
}

If during startup, except for npx lmhot (non global installation) and lmhot (global installation), which have parameters after startup, the configuration file will be directly overwritten

At present, startup parameters are not supported, only the .json configuration file is supported

Configuration Description

watch : listening object

watch is the file or folder to listen to, defaulting to ., The current hot restart path. Can be changed by oneself

  watch : "cli"

If you want to listen to multiple folders, you can use arrays to modify the default values

  watch: ["cli", "tools"]

skip : Ignored files

skip Configure files that ignore listening If the build file is not included, it may cause an infinite loop: clean ->build ->clean ->build

If you have any questions, you can send a email or push twitter or directly submit question

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago