advanced-module-watcher
v1.0.0-rc.4
Published
Watches module changes locally runs specified build script and copies as a dependency to another module node_modules
Downloads
2
Maintainers
Readme
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\