advanced-module-watcher

1.0.0-rc.4 • Public • Published

Module watcher

Designed for developers to help develop node modules. Watches a developed module changes locally runs specified build script and copies as a dependency to another module "./node_modules" folder

Install

Should be installed locally as a dependency for the developed module

npm install advanced-module-watcher

Launching

npx watch-module

Config file

Config file should be placed at the root of the developed module and file name is: watcher.config.json

{
  "dist": "./dist",
  "dependent-paths": [
    "../example/test-module"
  ],
  "include": [
    "./src",
    "./package.json"
  ],
  "ignored": [
    "/src/autoGenerated"
  ],
  "build": "npm run build"
}

dist - a build folder of the developed module that gets published to npm
dependent-paths - paths of modules that depend on the developed module
include - paths where to watch changes of the developed module
ignored - paths where to ignore changes
build - command that builds the developed module\

Package Sidebar

Install

npm i advanced-module-watcher

Weekly Downloads

1

Version

1.0.0-rc.4

License

ISC

Unpacked Size

4.34 kB

Total Files

5

Last publish

Collaborators

  • capricorngaikov