{"_id":"@mihanizm56/webpack-stream-watcher","_rev":"25-19d00712758a3af3b91673cc0de5ebe3","name":"@mihanizm56/webpack-stream-watcher","dist-tags":{"beta":"0.1.6-beta.2","latest":"2.0.0"},"versions":{"0.0.1-beta.0":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.1-beta.0","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"a604ea45267fbad9c5491a64465606542a4bee25","_id":"@mihanizm56/webpack-stream-watcher@0.0.1-beta.0","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-BJbeZ1gvCyeVL7ZWwuJ0uY573IqIs3QVQb8crXUjISpsHW3EZhbC783kxk2p6VLAxo/XsmkbGCE58cNTGItzrw==","shasum":"da4592ba97eb2bfbc840e784a026567f52070e09","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.1-beta.0.tgz","fileCount":7,"unpackedSize":5813,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW+FlCRA9TVsSAnZWagAA/zwP+wZgLmg/JXlrzuYHehot\nrRMwuadVVVQ1vuaDXsZk0fvwcHiSCP9xuBYXwmN6uMYKQ4uQL6SK+IilR9Nu\ngcxxp/3U73wf++ZLVEzX4Qw1slLifhOyK0xNJO9TugavMKSKsi81n1ZYPLNM\nZDmX5mM6XRBRguxuyo/AJU9rG/o1JX9uiv6uyncaTf0Znzs9VgxbuI0vk7OZ\nosuLTMwREZMkA7Kad/fvcOuIuINp0LZJa8qvc4HFZ7z6OExJB+HPDpNk1TtR\njrTKxseNqmvZyDpk+Djn1cixXo8/JtAgEawYKtRf1apoOmFvrzbx9HT5DU5n\nOfyx/nr5CSgDjcOfDJQNAfUPm5rQol3VziafBVkV2MY2kG3E5U4q0mnk2Mae\nC9WcWH4F1eTNdHEGIAAk1bZoVklK0TrZoHSXTKNlpcupircpIBj0Tt/oFS/Y\nmLdKGY3h3h5533M7u5uJzTsYF05lm+y+E1Vz0SLbXmarVuTTS/bQ48NA+kIp\nwrcv6fd8G/LsZ3SCA3QqqQPjxun+UO0VcL6XztG4CagAmFubxrPiWiFSaY3A\nLbHaFlKq+xNmQf81Sr5hGcpSe6t8SEbHvhrO0SfanCSjflSDvFOq2zLf0IT/\nBtWR3aABnGq6NRUcWXMzVxG0vqeqEIHOSEZMSZ5ByLkU0Z+eyvyrjfzY1MQd\nmkAQ\r\n=VnNY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9oxSf/R5WKkNVFRLTiFV6YfEtJc1XLJdJ9kB8NUmGaAiAEDEpzcaZX/LVWUvgk5suoiHERD3xs+YOJ3FI7j8T1NQ=="}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.1-beta.0_1599856997097_0.9103843986623745"},"_hasShrinkwrap":false},"0.0.1-beta.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.1-beta.1","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"ERROR: No README data found!","readmeFilename":"README.md","gitHead":"a13f82218c7544114e8c793a4259b00e6feb100f","_id":"@mihanizm56/webpack-stream-watcher@0.0.1-beta.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-p7xxAqoFpOfl5CCXlLFQz59VPLs/JeB2DTnXDIiu85HpQeXU16o2vBuPcLzMDDSSAvPuIMVNc78D06bPLOygng==","shasum":"41ab8d5ac7d22ed95a6346394c53af8cc87b71b6","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.1-beta.1.tgz","fileCount":7,"unpackedSize":5899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW+H8CRA9TVsSAnZWagAArnQP/1Q6gyHD4Qrph9c+L8d+\nv8uuf8IWV43TxWCldx58RXvaib+rL4IY08CmCdznYA0Vcy6GpSmP1OC820+a\nmsHpWoMu6abV3Zj+wTJNF9TmINVt4S+pHxZvdjw1XGgZgy0wALPyzdBL/o/9\nNQzDdQbR3tW7wJrZhTRBJ9aJeYhHObXVLE9hFvRbrjjy2TBP0I3EORXR7gxX\nLIRiZy3X3VRh1o6Na6ljpKDga2zVX6tHJOuCii+/ztAqpEkYkUIEFz6Hoyey\n3QXquCyfC9rRMZwZ7ta4uySgngrzY9FzbK0cSNZIcLjRUV2vBATyPIeOcXZz\nvTeu2sx11Lfe7OJRr4174lhXjijUkVMadIABcr59WtGfmMJR6uTxN9lmmd/N\nAyKCILhqDhjUQjzz8CrAZhUC7gDrCAttADbYbklN5x1ju+2Nzoi4RUFRI2zX\nZ7iwkg1pxji6aMWYRIBWNKp4u+OQj5jEGIZP/sNuaU7Pf7rnpkMIUujtrUjI\n3pzn/+2kgCPw4t9PRZFBZ/Gk+ITfq0PeiK0Gi66MEasfUfaZvY6fy2v/lOWu\n/awPcpA2umNKreppaL4SrXSheypcWmjxJU+8Fgf+5BxsjyQq9P6r787lPwq2\nUC/kmtw2KB0CElMo9ZJbqBsyuqwliUyCduF6J6uq0pCvzryKdUaDjKZSCAFs\nDj8A\r\n=JYPQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEhfvesjuBYiJpoyUeegbxjvJbUDkMpC+8RTnBVIVyFaAiEA/7sAfGP2oYQej/+mmC/XJiQoZZ53g1PVKgKozy6y0fk="}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.1-beta.1_1599857148292_0.9124879936948962"},"_hasShrinkwrap":false},"0.0.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.1","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"b811ccd6a71d610b758b61252de2ef641820d039","_id":"@mihanizm56/webpack-stream-watcher@0.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-MHcdw7MGznjW4vsZxPgjRgPa8WeQBQkpn0pzkuwTklkCSS5Xmwsh9/uDL+JaLEEe85liO38SRvRPsI7kd63ryw==","shasum":"1a1c7e2903d020b3a0aa7f22ae9cda0db5c03184","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.1.tgz","fileCount":7,"unpackedSize":5888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW+L/CRA9TVsSAnZWagAAJw8QAI5yiyX5PV2ZyjASUCyN\nQLOjM/GxPFuJZnce+x4Pvd8Y7eiY6pkuNuvUUT4/pcRRxBEb3Vh6dfu2YpCG\nQc3o0SAsZULLDY3jv5xyxdRqwtMCBcz785VR97JxK9qOgQJH2jVW66yCuxPJ\nw3pzMgExHgQdtrenli6az6coWM9mR958hOp6kEtd7VNUq5Lu0bSLlq4ssr2N\nRw2EoyEAXP6cWd+a1i/A9wQOKt7H4JGBHp9EcIc8tpkKL/hXng+htw1H2jQf\nX1ZPnM3Uk43vDc6WhNx2tjk9JPM6uhHAs172hKc0GLw800s61yl/mBDzmqpY\nexiwScu+s3XuienLb0kz4jpZemYL/ASG9hm7HcZfQ52zblyOLHM/Ph9mcEBD\nZM0S5td2bVygsAUEZ+7Y7qwwSn76oEn0wm/Izk6Quu0X4agWSb0CzFmE9oXR\ncaFS6sukzM1mdQK5GTqtnggm4l3NAyKbN3G7k973AgjPArebqhpKHLi+cGg0\ndADSNSC+Blphjnkwn/u8lmp87yu6XG2avR7XHrYb446ftfaOg4STAl6C5/ds\nZZSSUcEDbhaUYABC+5o8Q0dJWMUDhyaGGqLTxvm7Sm87t9PRE692GR+c3AHq\nqPbzrr3grg0nWfR7XFzukEMAXv/jMO5jSEEMhz65kqswfftd9E7TiXJHJxXv\nIPPq\r\n=P14q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0k4iq+T5x4G1/i5N+wamn3N3zql3GBOuGcgH1dArMwgIgb1BFpcbE/txNnYiRevGcLgdqviYXSY+P4PrSNW5BNH4="}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.1_1599857407067_0.9587524210635683"},"_hasShrinkwrap":false},"0.0.3-beta.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.3-beta.1","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"68ba73548f68995a43a55f46d738af99959a2d44","_id":"@mihanizm56/webpack-stream-watcher@0.0.3-beta.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-eEb8E/nB7jT7trCBdF91gL9lY2YPoGXHRy2+yYmtsOYpKajVU2jkVwmVTPAyUwyJdwriXaDitkbhsuw1gZFswg==","shasum":"4b206aa01cf8399f0243b577668d0eb4e635d350","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.3-beta.1.tgz","fileCount":7,"unpackedSize":7961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW+qSCRA9TVsSAnZWagAAqRsP/jBQwDUPlYjT0dVAsnZd\nrdUj1ZdPeynRDSGYLuPEVWQQBMYFGbX+X/OEk61GFHAixxhZxmZJs7GrZDwe\nyQwGmmUvvvje/sGqy5ekAMXkUg6RLM+3gifVf67ljZyrr/7mYmk2kEHso/yp\nmyG560bbYFnRoh/mENk0xAjN+xM0jaZ5doD8Y+tTlrLv+dthssX4ATU0CMQ3\niHxmPxhANR2YdPiVPAWWzeZyLDoco1OXdYLAOj5xB4d5BviL7GnVTvj4jxKf\nCL8IdxgD8hBqYy93Iyw3CqeUw7HAw46lmn6TUm3E/bNjiktXtugmf6LFQUqB\nFHt6Acdx8UBipLVhxQiOKnq4KZp2Apy6BXNpIEYYrVAYUvwgKpLt48bQgJYv\nGocgfmlw71O8ZLflvupLqU4MoN0gdg+nOxQMxMhHpiWVkGwKEKpmvDi74uVO\nHPYdwQljm9js5MxwZYY/fPBNb4lYaPBEP6hb+FLSuJcOwXlV7uR0XvvYZJo0\nxoI5RZO9UxebAuYKaod54+krM9lyD+RxIbk/bH+lgi5J8ery+0DsOxJB7tX0\nJ8O8cUnfsSlUCcYXpjFdMdjBNJGx0+DlMoKpiloqIfZqK4FPYKFz1Jykjh3v\nLGlPaQTYJAGGP7Zxgi5eaCZBJbkaqT4j/JjjRBrmgGLAk7xQwaTXu8ex7h13\nwxvz\r\n=wQ0J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF3PdmVyJ4ZTenkIAMUHM2sJt6Hf4G11TJ3f2TJdb+KAIhAIiL7V0qkoDd7A8XA74JPBUSiXBhv3AqM59+r6sp3Hi4"}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.3-beta.1_1599859345409_0.5177033854690398"},"_hasShrinkwrap":false},"0.0.3-beta.2":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.3-beta.2","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"2509712444a5a037064a2d013350841acd6db094","_id":"@mihanizm56/webpack-stream-watcher@0.0.3-beta.2","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fYtSu3COZkIjHIB09rP5d8aztiZJ6Fbye9Yxvjaz5gwyqS9aaF9cDuY/VDISxiMVzEeLx6YzdfiC1u1VUA+eXw==","shasum":"54bfc4c4b1619186c8018cf86be7a28642ae8fc9","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.3-beta.2.tgz","fileCount":15,"unpackedSize":16166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW+uyCRA9TVsSAnZWagAAt1oP/3/qBCvXFlaEsRI2d9q8\nTIqiojwoulsFGPjWGKs9ubKbOb0zHa/BGmLHV9dDEX1el62QA0ZO0joCpW9s\n1TGKkbm+00STEVEU6CHJ5cHDXn0y3XYkUx0wjfou+jrvx6LAQTIza+VWachn\n4Fowkrd7ilJ79N9zXJxOa1pRrENvzZPw9d5/wsdhkQnxlJowYZCECwOkDRI4\nPFSm1aLpAKfiJD/GzJAq0lCtFF3eZscUx05pVeQx17S7Gt1fCvOPIUA3sFUx\nisIeCi4/eNUGC67gNXQTjRoctXT6Ck8od8w0JFEeaxjVLdMh83FtqvhQYN2J\ncZmbdqP9aX04BaOvp5asBMfmufQegDmuhYK5AAyQrdBHm7ZcSII77xGlTVmT\nmw4lCVnZzr8+4/kAwoddviHrnxHgL4mLp+RFdRPMqIaXmND8yEBOGnDgu/f/\n8sOVmG7wA1CJSLd7jHjhTyNaZL/Tv940TkO+GEh2KlwpS0N0KhPHdvZE+FU5\n980uk+MGbfuM3BfF0HMkf1QijS1E8tVCIp7si7SUa0oqVauWbtXtJAWUfYkO\nEoo/F5UDvQAmqbpKNZiTvt4BDYs3d+VW0PSmraadanVWN/vLODj2/HS9EeHl\n2Q4qR4ZStFaBF1QRTduqCGUTALH7E9TBxKJMpCM6GVVw+2xGcmlFUk4Osuih\nj25L\r\n=/Fom\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3+VgXHj7CeLL+VLUPNBzScCXM7OkMRB0HMi9MX9ldTgIhANMz4CKIAK3x8t0hn2wh9P0lG7NXe3pc4GKutFzG8Y72"}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.3-beta.2_1599859634021_0.5710146199612993"},"_hasShrinkwrap":false},"0.0.3-beta.3":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.3-beta.3","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"f77ed1aea8974ac78dedfaacb5f80b581c08f5cf","_id":"@mihanizm56/webpack-stream-watcher@0.0.3-beta.3","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+YHO9bQz28IieJIZXjjUhMR/1OjYlKTblArwu70Lt6Mqd3cAlUJOILOe22O/G4hol1FGt2CcE566DyOlEnoVVw==","shasum":"9bd51101d0b36a402ea12a7ce24a19d360879a68","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.3-beta.3.tgz","fileCount":7,"unpackedSize":7877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW/CBCRA9TVsSAnZWagAAtTMP/1y8EbnktC68aJXcX+Z7\nV8rqz4+hm7e33tPJEbphJxYCY5pQ3fUw5v57AA/ZYw0xVMhe6UQ2P5ZXHB0P\nCzwZieNtOLO8g5FkzxzG1tK4YUxwqK+2KQt2GQQ2fZ1nnjrXAjUqNVQYgX+B\nwj9IEbsX7OO8ZRNen4rs8h7aZEBo9z11H9K1K3c+AFIt6fkKGVCt0sUZlD+o\nD/eGoZoC5h/KbFi8CaLm4DG8Di+g6t8gRfJwxceLuqdKLdhzwDzmpTmFelJ2\nj0ZgiP5/2WF7yJF8M+tPiGjYt0SqniMmVcSzlATBey1n6Mj+NPOyquOaz2Vg\ncBgj6OflXwyQd0QRMzmOfmCTplz/2e3EOCE2v+CejEIVO94O2v16rDrjCv2l\n8JtkiQWvqedQF0sE3TEPYFTBxItn5BJE61i9Gbx6juexoE9/bZVUgeiLMnwi\nY2RZIP9RNhLl1tKuahB0Gnpmf4tz23+TFjlOapqMSmM7WNDqjVjZDi9a+AMG\n8j5nPZ7BS/zateqixGYFKQ/DODQn1i55APKb/PfcpgKTp8togtpWeE13lj/t\nu7SFEaTakNoXu43GZKhb1814v+GIosMTjVj9ZffMbBffN0yZDCjg7eW7DGPn\nyJeQY5Hwu0JaJGHEQdjTvyLRUUHBNQsd3j/WL6kW/zpNmLVNK1FnqesWFyBp\n7xtK\r\n=/olt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICD50EI63+mcG1bi8tULJHdA1Ey3Wpz3TYCsyJhLY1DVAiEApeswRDMTGDqoVRZTudMp6xFV6XwLmo+PM+AcCbVo7wM="}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.3-beta.3_1599860865272_0.7992499306928651"},"_hasShrinkwrap":false},"0.0.3":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.3","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"4efe3d22f11385bd255a932850d59eddf35481eb","_id":"@mihanizm56/webpack-stream-watcher@0.0.3","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-6+chVNs+fBNNK3E7BVi1S2lcV/hf+TJNNcyWQVFFGHikeBqvtR3JH3YtcALurF8TpHjhP6OqITL+EkA2ps6rzw==","shasum":"7411f40f0c0b222e14f334655d46301abea54bc5","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.3.tgz","fileCount":7,"unpackedSize":7870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW/G3CRA9TVsSAnZWagAA+GEP/3l9+h2G0VY1GZ9vf/0L\nRcHQCmZz2cIJqm3hWmMp+yquHGVDSPz/yKwgIprpB1qzm7bEQYZ7e58/dffK\n1i7pIfy3PAx71fq3ltR4k21+n3UnPwRiyx09BZFzTTeXLzvCiPR9jqWE1a/U\nSonSAjKodELbxfUfVL/Sezqwf2vSglU7C3yk54FW38Bxn0UBCS6XebTQWpnK\nBOGD8NqdX+Nwz23MrwLUV7Sx5PylsK2ZFzVaDTCc9c9kAgQwpV1ewZSPd5BC\npEgmkrS/gvUjD6iZD5Fxd+QTuMF2exz1H86EKhxB42u+zc75+9CFFxD0YThs\n4IyAkPvmTlQbogQx6yqMa1Wv7zOWAJvyM3GWWDkeDJ4JcOghQdoYOJPwemj5\nBMFsCHyYXEYQm5cUd67BI58jVXAVFdnifDkp37zAihTJXQTmrA24QSfoO+Lj\ni4WgZqWctRKQm+lRnBqV3MoyL4W+mSbSBoKn4NbR/uq8iukboWjsEJhrWzuM\nYllpPXiuNK30ExV6xPYLvSO4T4aZKTD85urlofaOrEwJJquRkobDBGKx0pHb\ngYy5/0dNiztwxtwzjJemQxjVjv+gd0ETABuccAdOUYUDOhiwW9CJhtIFbjaH\nm26lMRWycfAGcdZInviD5qubIqXQYN4DVmwlLHdNXnczea5CglHEcZL6vX5Z\npjiL\r\n=E4a1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIELgRkKw2Y0Tdza4zEbGC4BWcq3CmVlpWFU2oKlxhcuaAiAHnUg16GbmekKOVHANYBLgesNDfhhjPo/vGHzoA6xFqg=="}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.3_1599861174600_0.8613881445380664"},"_hasShrinkwrap":false},"0.0.4-beta":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.4-beta","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"c9a1170c3d48ede5823dc86fa56a70b071120c1e","_id":"@mihanizm56/webpack-stream-watcher@0.0.4-beta","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-96p/A5hBHWpHxqcPLqKmbbKpdKLC5rHufclqRMYGB3ktqGbYmxxMrQduCEytupidCHj1+L6PsB/YeGLrNsRKSQ==","shasum":"09115676177ed847cd44e0d2c90ede5a64532af5","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.4-beta.tgz","fileCount":7,"unpackedSize":8237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXS48CRA9TVsSAnZWagAAt0wP/1hERduqSQbcAgrswSUp\nAMLaQYm425PjQ6JQhLMpWwSTZ0SLbLDld7MdQq1rJJ3nW1AVs7qib2RIVc7a\nlWhkxmUdbEL4DN5/Y95NmPbmH0yfXaEv7BDzOBwiJp+7/GndpeZZQV+7vr29\nI2h2gSon2Tlv2HqHuMFd6ze6LQcXtY3iuLrtrIXDnAwXLrXPkVXF3njPk0Nu\n8870am0Z3kPgmE66JkHjxCuneOAubyQ/bTlfQVQRIoaaIsU/5tg3ypT3DS0C\nvmPsfIpOKdceG+mUEhxv1oPaAADITZI0XEJzVgBm/mw1qRkXjX/M/4gNywFg\nS2Xp912tTJD7l+ES5Wet1pkUJfp4XjNvPnQ5W2o9d2sm9Cgc6UxiGxPArww6\nzkIHitGXQClZED63tSwXT9b8OI348kSrxEo542Yscbt4ga8DeQA8h8VPoDwk\nAM6jm2F72s3oofF2suGIr4ITqOX0XeehHZpSam33prIu22nlz7j5LnXpB+XA\nuWoNg25W7ekU5kOYjvgAiE0fxi923EiwaP7Dqic3k+qTSVR1oVdW9QkdSWMW\n5hy2dfmM77XDy+eUj9mgl6Ngg3FF56mnL5jewO8BAJClCObJ3nYvryG5zXKP\nRO5FL+0ulAZKJqjNaQ8FDZ7TBgLi96ed+vcecdLh9HHYDqJusLQPh/UCHER1\nx6DO\r\n=Sbtr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuMQCicMz1uSD/gBH3XHYxV86P6n7I3l/cmMfvXdSwTAIgMH12DLI7ffiKu7W+7sxzJwsby+36TZC9EPhTBxYMJmE="}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.4-beta_1599942204057_0.03131395761066713"},"_hasShrinkwrap":false},"0.0.4-beta.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.0.4-beta.1","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"0dd642e1c17bc10c6e695e0bbbf57d42df0a85f1","_id":"@mihanizm56/webpack-stream-watcher@0.0.4-beta.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qVovM7gHbZxPPb8LuPIg0LA0/laCaAT8RJe7/+ObAV3IN+mj3AJEYEhzU2mOWzWcnENnimeVNQmvQBWosBqWiA==","shasum":"afeb4cf83970e416275d189f74f9aca95e86e9ee","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.0.4-beta.1.tgz","fileCount":7,"unpackedSize":8239,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXS5yCRA9TVsSAnZWagAAOggP/31bE8oUgospvtjxUeTE\nl4mjQWJtXM2gIHEgJAMckg4PtAvWPT8pq2JtdfIg/GBx8g/nevXgM8r5CsSc\ncWfJB9/mDxpoil0ZPyEu5i03R64optK9ZifXZrhI7OA/UUdTYSgmRwPqo6ut\nm7spzNnyu67LDlVKNU8SkAkGrQdD2dvBzSmfJvN67eFQ8fWwjxRji+n6DzlF\ngWCmNKa14CtJpvnzlo5x8cVjggIQ6+AMiNi6Q23kBLfKXutw6galCEMZMeih\ng3s0wQzWfO7A5nngig4ypbdsxYy7qFRODS7xWet7yc3Y7wr5MTAN+/nfWBAZ\nkXuIoK4Qj2Z0chGcpRVIDr9cRKn85x18x0C7MKYhFPQvktJwNjW9kavRiicJ\nIj6JhKDfOSDsoz3jQ8/Xfd8A4F/WMV+nJc1VhAsfiWpv42ZzfFy65vaYDQOo\nA2/vpXh6QGxeDsC/vPBJz5hc1FT66UjB6ADnJtH0yARAbERnh6rv+fHkHsWk\nYjtzmQNwuVF9PaQQDeux6MFl+7CrxuzVuuk7kKyMMVRD5tFPLulL1HBOzraf\nhUvWuu06PowC2LoypBG32J3166a7Idv+KHk6p/Gv5Yc2Xm8+MNa5j2Gsq+Tm\nrK/VXJiiIkfL6yMm4CuYek8L0S0D6EqTsIODIb/nezznCXBl3sIA44iWpRUA\n8WFf\r\n=iaPi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqyCWbIXItLGQOC/pXHppz/KTS1f9NCBeY13EmzpiB0AiBOqcbO1nqfJESyBYvTbk/SY44ns3/Jb8HgERePzyUSuQ=="}]},"maintainers":[{"name":"mihanizm56","email":"m.727507@gmail.com"}],"_npmUser":{"name":"mihanizm56","email":"m.727507@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.0.4-beta.1_1599942258462_0.08776121153680405"},"_hasShrinkwrap":false},"0.1.0-beta.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.0-beta.1","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"259cd42952aeb929e4eb1dafd0d24a793fb35dd6","_id":"@mihanizm56/webpack-stream-watcher@0.1.0-beta.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-YxMtHjVvODXp9tunh64F32poHWdNdZJEFWenYeRDMb3Ezm5g+bf6CAQMfVk7PQkBtAODkG4oVVt+RlhggxjogQ==","shasum":"82eb03c45437cf65b757283904c729df10170c0e","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.0-beta.1.tgz","fileCount":7,"unpackedSize":8369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoJarCRA9TVsSAnZWagAA3dkP/1SMt+IvvLT4TbuZuyWa\nx+FINJL8xktFtK9JMmQspWdHyPgKbadTW7XpT3q3YPkiLz62lxm6sBmRnQ51\ndH1iwoUlnwuO22zH2mYNrd898GsKzHIFLGRVeQSQQYRrXkNZeQhf6oyrYjzH\nZM/5npbE+gY2uttyP6v4orUQ5ADcqO7jS1w38SaCu2NOWnWETjFxcWYyGvUO\n3L9+Z/gEaU3E7i7Maj29tX6jYcPpMKtffW4tFgCCyxDcTTB782QMIZh7poag\nMsH7z2gDvTk10HA+v0kMXi+M28LvKLCnkIcYa93qzvxbRgfMPn17H46fm2iN\nxxBWfz2kZJGFizAePqrCDp5JCFEu4seLtMnHv5vDF3I02XQOnD8yxrvQKs5R\nyT06a5d49J+VYBN6RFQ51L9umsoS88RfhDf08sBbcHQBbeqWW/hBz/dGOx14\nZ6q/cx6jcucGSW1MaWzyyBGbXOk9NAdkr0T551i088+4wU8Gy3+BWlc2W0GA\nI5uqbPeWj+R6sli6m7tG/sOb3T4Kg0iLRlQCkEIhWoiYIThAEJcxu+Wj7gn5\nlsmkNS9TO+h6JPS4vARZREEH4MIrmYfciPOWtfspocyMFiabMJWYjPwt+Y3s\nH2uymBaEHPWe3q9Xzp2jR62d35v/k6lDwQP3YZHVFHHDayOjwAYeqye/mtG9\nl+qj\r\n=yMNn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbQd7yzIsnbU+xL5SVj3lq2M4bb6JCkxZynsUiNyDyIwIgfWUEFFHIUddZDrxKoFcxO47kWi9nTZ1Dj+WlCsgMhOM="}]},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.0-beta.1_1604359851038_0.3447433231654269"},"_hasShrinkwrap":false},"0.1.0-beta.2":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.0-beta.2","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"a35fa53d0ab51a1505eb4c9fa20a307d42744fc4","_id":"@mihanizm56/webpack-stream-watcher@0.1.0-beta.2","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zUttvIxt55FuBUKJucGz2MbV7YtZ79FmyDYZtm0a3m/YIzXXrLt7K4PcSeuvEHkGqKRp7RKYemcFII2tCVlLwQ==","shasum":"e2f50606e13d513fc895580f162f1a89c513c1f3","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.0-beta.2.tgz","fileCount":7,"unpackedSize":8344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoK9vCRA9TVsSAnZWagAA/NgP/3yX4J/BWsyIkMShRAal\neNEzdIwFnUBajYAieu6ojy5cm1vkqDN8RdQIgI0IYIVqyLdqjCtVAVV5Sl/+\nsMy2g2159Uv9AStpAJKlSGGtpNHs2s0DrQWZpRmbfOE0bgBTTo4kSQo6YzXJ\nGVdkg5d9E7C0sx6/H3PIEmT/jJa2936lKjoKZX44yfWsHYXuIj/1cTwS8Ped\nptV4FrePuuS8+3+Zo8nR4LUEEdKmEWeiGhcz3XtDI9Ay81yc+qBiaxfkoAWA\ndi1qfwe0LJ94GyrQPxZWHJaGZzbvCfg7WVG5ISuSSP7lL0tmDkUU6RjfL21f\n19yDSZPLTL5IoZ0zMesrvqR7f+BrzsVlHqV0aqEBlwLwyZZrLIYmr6rOh6hc\nWdxCQ1/cbpumXK0/e8iq7wi9GdrIAahAPGVgohyofK7Az7DjcLY0fQfMtSG7\nvbr7g4iCi5PPk///DF5k/iCrcINhTGW5m+o26o0/G7CZGcA+wdAG4gQ1Gz0l\nHWFMTVgv/H9/kL6Y/36qnWad0MlQu0+8/WQQ3pa7Ln/hal0ZhogElVUTLw9e\n+enlRVU0qbaVlSHJkPqp3XGl1XOQdNQ0wsRQQYkuLeW2QKdyypZeICw2rEcs\ncfr7o1euS79QS5z0Cc4WiDnX3xa1rbsujgLe+cqI8mAargvms6qIJKJ8tBVy\na48s\r\n=ILjI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB5DZ2s24W3xTkzMH4foDv0AU7uZD//Ugh/HzehGIyopAiBdlYhZtsElLE/EZcKIrcTqXqI4igITUGjAyH+qr48qnQ=="}]},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.0-beta.2_1604366190871_0.41269428157819665"},"_hasShrinkwrap":false},"0.1.0":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.0","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"d84ea5250c7c73e5151a42b875c0813205118287","_id":"@mihanizm56/webpack-stream-watcher@0.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TXJyyoFjfPVimtLFLjyCwWngJl9afOXb0Ok7RLDkhMoUoG7LcHbWGmYxIRyO1Y3bLync0XvUawhg3IdDzpf0UQ==","shasum":"40251d9c8fbe34a232082d9d5e5f14ace2bfef67","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.0.tgz","fileCount":7,"unpackedSize":8345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoLEsCRA9TVsSAnZWagAAZZ4P/2r3Xrh9ATULurZFGzmf\nbrW8r21ht4CM41geXKv3mUVObQc9w51Ef/c6aL1TeOQwDjlwkWByQc+RP5QW\nj1Q++yCd+S/7oRZuaZUAQVT0vB9B0iXhgiEJ1G4Elx2GlepGy/pE8HIdUaqH\ncWS4Upe408MA+c9q1UKIs6O+R6jvWES+zNn4wmg6Rls9x6tplEHlXmCtmHp1\nEh0wX5N8EzPyV//O2Fmlljl1aQgfIu2KsxqVOqjV1KpzgZUpGGsSlntyHVPK\n2ciDRmAu7wC1a59amCNPaMlBZB96uzdiyCs92V/sC9x13h9tHoI4rxJPhGTw\nREjqdWjUZwv8iBQubH+Z6rbBze5ndwJhiSJTQOICHImm/gSNYPLXRHBhYGyX\nK7UxoN2PAXHKVG/L/ti1jxDb2G7fpoyvl4bKeu3ZrPpRes8/y6oLvkJC2wJd\n6cgg11y+nJtxriSKVCMSRqUoNf/TZ3XMShJX+1d2ZqMj6Ar3/Fyyv7whcw9x\nDpphTYpmy40XNbJqTfebPtIvTrXRWkgtyRQYpTKHQvPHQ2mPRwQUKQbAOqu6\nJBp12XJORMxy23AVjsDlx+OsBCB5LvanjVWPIjrza+0lScX8cKqEcBjOnKyL\nyvD6kaE3o0Jcxn7KppAFfPGYJx0hcX46w3qkeQp4U4BZeKMrVb4WR3rnlL0s\nh/op\r\n=CBLa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd92DU1OnpLIEqsThOYYVCgRoXzJlGXNVh9YfuFNM9yAIhAI5zS/5FQzAexW0+WhMeNVFFk5dhdH1klB7dZO/Y9xXT"}]},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.0_1604366635758_0.19102989831487704"},"_hasShrinkwrap":false},"0.1.1-beta.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.1-beta.1","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"442fda1041723d2b60d6d262a61f1bf2b89fe7b2","_id":"@mihanizm56/webpack-stream-watcher@0.1.1-beta.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ePLq7AzWlTx2o1ehXZAv3zhv4IDNbopM+6hHeCo14TkZE93YQJQWS4iYCchH1UFgEUvIPpfX5DLXTrdELa8E0Q==","shasum":"308c356da59448cc11d08f7e04d5cc6dbc153044","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.1-beta.1.tgz","fileCount":7,"unpackedSize":8365,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoequCRA9TVsSAnZWagAAqOUQAJdLBkuEmie9yKAFIrk8\nmnkAMW1rJ4nXOAYeVqSWtN7ypqgymkmxwrkm0/NqpOUhXV7CH69NsA4b4PkY\n9loGfw+ag8eCK24SZmzGSSe9ZqbnRuwRt7+M/4XiZ0vnZv63nG5gBZAGQLmj\n2Mwe25iM5lm91tiDOCwwn3bYpsx3mf2hBXewb3M5Pe3UWZBFjNggjnSjCCF5\n0h7FfEmRqzS14U+wEWUN3lIhBMVQe2KB8hHZcnKgortldybIc856Zsv1SUOH\nHLEO9yUvI/ik5EXU0/dhfE3qaAQP/3OgXFg4afxPSF5wyHRrkXdFp7KVAwKI\nPzZbJQcWmfeslyHIJsMjWWSH2yeOYY8tDCS3hqT+1r7kcBj401yAS30TISzI\n34xiA4SU66S/sHF/5AHd9/5lw3smejzJp7w+JreZ4KP94fJ8wXFks3YBUoiC\nXGyiOuEEZusjMfbuz/56V6YEs75AZmEhElPAxxpmVBZ1j6iNhMh36SSADeP8\nCmk8h3qZT2ZZD63D/0bFYZyvAR2yP26RSCZTFNRnvZ7+ATazAKXB76qCSXpe\nLEaQgHiiVARfRHf/DaG+mzazdChMU0l71qO0ZWo8JKqBCDkobssOP+VWY+zO\n0lzDQJNqnOxNAQ0ruvXTITgEyulQA/gisWRO+qEi+1qBAM0dSeldzzJ7tTt3\n4AXF\r\n=cFcv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoMKK/P3frlgME4A5wSdD7hKLBnIrb6NrNNJ1z/lwXyAiAvRyimHfZpr9/EuEtQU/yBvcqTWzX1iWObk+KEJ+u8SQ=="}]},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.1-beta.1_1604446893809_0.9108166197699838"},"_hasShrinkwrap":false},"0.1.1-beta.2":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.1-beta.2","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"6f5f940a74214a7ee97d13d13332a1d2e425fd4f","_id":"@mihanizm56/webpack-stream-watcher@0.1.1-beta.2","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cEceF37IGWkIIJF7udIHcih21gUmr6veyYN2dfMJ2PhsU9w1mNt/V81ana0rqDYCGSGbgGIl4pEHDukDJoidSw==","shasum":"c40f3170ed811244686c5a093eace834d0506be5","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.1-beta.2.tgz","fileCount":7,"unpackedSize":8323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoe/eCRA9TVsSAnZWagAAwpkP/3GE3pEXl2lm6dodtj4F\n4rzOppLbbDT3VJA3GFbyC0X4LyJa3aXCkT9WWKB5ibRJtg8gpE5EzmzB8rbh\n2z5GpN9fLrbIcOCtDTkjX3lKd+mrDh2YqUpoz5fe6nYDisPTQC2fpk7RwCIb\nLPW5FY57hfeKpuBlfVL/pOsPwSEj2R7KZ7jvUjw1RGpJFh1xmwY0VdKa/hsm\nNvwbF2Vb/Zyuy9Q0GaLqd8poW+8VGUIrhCUZYHrr9H5TPvLUTBy7qPLgsEsA\nk22VuHstrOjEJ7kHEk4ygEt4uO55hgepeAkO7R6cFUY4rk2U76KoNxbWoFGn\n0ia6et6a6xlzQZE5M2BdFOY+baw8em5fXfq2en2rSWZvuB8gINwhLYse9zWi\nBu8yk4d0mU4EEhoSQNu2A/DtO0mP/A83vhIGqr8BjjSoXqQJWaWbEmNuCyD1\nRAX98UT0QIbbS4iJfryvFCoUz1DsUlaIXXjx4F+5+JjKlj+FyycREoO2Lwv8\nwpbazfDgG+oEbaIm2+qXDjWUAAAiXg7zyELBNMjmOz05/BntmuKBr3Qfq5GC\njbb6/Hfz/HbE8XfyNCEuU1fVnEc/86Iv661ZAGHVjVBuc1LXxGC3ao8xqbfE\nI3lif2vG+TGcX6ZFmfd8RGL8yu9C+oOlvYKH1a5GmxQLa6QhYjss9nwUZnA3\nEmw+\r\n=XEhC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJlDOI6PaRK7rtRLfPJH5O9h6qmWTHudoK5gSssfmhqAIhAP0tgVeI7rRRCZAJ3NlAZ4H1UShgL/hLm1pqywAVOOEw"}]},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.1-beta.2_1604448221640_0.6028918186383732"},"_hasShrinkwrap":false},"0.1.1-beta.3":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.1-beta.3","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"3de02ac0de5445de9bd0493085a62bc6cd2358e1","_id":"@mihanizm56/webpack-stream-watcher@0.1.1-beta.3","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-W7BbrL9FjYC/rtYF7+Tz6b1vXQ1OzxpZ+M5/Y4SOl1LMZdB6d3bSie+qDoFIw8Pm7qS/gH61jlSMZ9S4YKVX/g==","shasum":"691609750850fc0c6a836fdf262a25f2e446c84f","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.1-beta.3.tgz","fileCount":7,"unpackedSize":8608,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfofTnCRA9TVsSAnZWagAAw2QP/izgw2h424xkwkOTD8Da\nsreBfVUdaw1Eofzop+IOzqPqV/s87aWmCzhP7JEfg3ekQcgg3ld47YUSBepP\n1DUlG3lRwVVOBfbpnMOe7/K7/ENEoIHN/Ol0uicz/WtLMm3sLJ85kl45X5cO\n7DEoWamcKiAfuk9ky2ab/dE/AAdhThwXm1lrjVzTx43gWVVglYi8OrpCDTqa\n/bMp5K7ZLZaZNk2ltarmabIiYgdnzXPfzWBI2PCVRtf9QJ5AqswKE1Bbn6tK\ne147xgP68pYbuDY2rln8qj1Rf+e0liOeYsuW5sL9s7FTdZ7ba0V0UAGbLRe2\n+49TxJ95EVjgp4aa9+C6O7qcM/hx90ySJcJ0I2YsKMBoJQCJHaLgScf4pVtD\nfXnbjKttPOb2tJB0Nr5+t3LwsmhGCo/8UnMYX4IHf3383THxW/c8UAD/AeWo\nhb75KOM1ipo9lVdjmuiGvQ9mYwwS8eTdViI9XrPew0GMrTBhs/rMIxdw95CC\n2aIrw+zs9HeKmYLHskFWKHrvjjPG2Y1IzlPUGv06UgdZf5fLidtL1kTTghkZ\nQmN6JZna4Mhep46+w7nP9egTPCqTfDXmRCmAQRzXLFDiRQHrtZ+73YjuwEbw\n5yCwpSNYV3BkmV4OI3rv5y/co4nVES/0szMkVS2ppdvtcGQwvAXE3D5ZZYls\nvqzQ\r\n=nNMT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEnY3eeMzLZ+gwmxL7jC9ECypg36H8A4qVydHFS4MotAiEAksN7qw15HBFX3saw272S1M5zomdrq8GzWycKUX8qjiU="}]},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.1-beta.3_1604449511181_0.9474968845451599"},"_hasShrinkwrap":false},"0.1.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.1","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"283e4c9fb714c5f8cea5105c31e6bf8bdbc394fc","_id":"@mihanizm56/webpack-stream-watcher@0.1.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-nDmJLZLDNYZ82kMsoHwO/l91XIrGrwwJRxXapXD0ifWUDac1+Fb+esc5hUjxj58KVpmA4yXaUMauceEp5iIQag==","shasum":"777695f4d1253c92834f92fd37bd6b73e670a4f8","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.1.tgz","fileCount":7,"unpackedSize":8601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfofYICRA9TVsSAnZWagAAgAYP/RiX0aUIdD3R9pdO+kg4\n2gZ2LJzPFKpOgHRiWWc+fbX0+EZfAeKkxE190uY9nQVi4HC/x1npjsLffmCK\nKNEN11ANYxA+WYo1aAAHzXe8pJ5/x9BfWw5DsV3F6OENjelEk7qCTaEmikeH\nFQ7VBF2JUZ4Vfvr9HSpSQk6QiT8y52LhYa6H5CoGY2AUJG6O7KR7GM4iclzK\ntZqldvTPMvcMyJYPfMmEDjgdLQJklFJYHPbkPVuST6EJ8O76XTvA7wN0dQnD\nBru8RivGMJrZnIAk8dgscMaecWgD8g8s9Y3UrV8WZr4wJYHbmVGaESpZf58Y\nyt3BifLtB6PjRDofOq1M6s/8bW/skqWaCbhoO9YiZy26LToYSnav7ttaSyY2\nRN2SKvZTBusr35yd2Uq6WtOYIa9sXt+s/yPBqlpeOk2bnWJd+XXKqD9hlnh4\neLwAcUYGCdrqW5uLk4SmQ2kd/vprpeudSdjYSd/1WHEKaqmOA8ZxPoidhAeg\nXokDu04k/nX4HdkziI/aFScHZJR4k/lKsiDnE+TafV51NGaYTCjDuJiuDEZv\n4Tr62ZL+/EOSPDjFQwC9PC8MDUYRlUfCrYZDRPXUQDxYxv5OMXX9drk46d3E\n4d3s7/hAwCuSclaOmZDla3kgrf7ltkdfQQpsGeKmix/SuQBbMXIRdH28n2OG\nL+n3\r\n=FIDD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNbuqLnWpqgLn7moBtPGdTFuUocG7DU2T+ikBWvopHAQIhAMQGGAcNTNhy9Kktf9fs4YQRYdcUu+b+BcHxcI/Mk4Fy"}]},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.1_1604449800416_0.8166285698048155"},"_hasShrinkwrap":false},"0.1.2":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.2","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"32b2c266fa8a866867b5112fe8787b8504825b43","_id":"@mihanizm56/webpack-stream-watcher@0.1.2","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rqGRbUc4tvbj0Wvgqi9TDEHlO0RWPEEx69vqpiMwzkTRzeor5lZ41VFwIMYICiU/hMV49NuG5VIs/ebycz7sfA==","shasum":"1fb269f0b5acd4519a85d3b4870966bfe111bb0e","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.2.tgz","fileCount":7,"unpackedSize":8607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpCQ5CRA9TVsSAnZWagAAiW0P/iBpYMwZ/BA5cD5VAZ/a\nY9WwS6JSFNQWOsqOPJ4NJkun3cKqiWVaqRWkkmL826GVI7YAjGcnsHFWLnm7\nnhtrYT/z/bBm/O5uRlA6qqHV/QD50IyzBkzBRn/fvSvE7U8nzC/iqol7xJ4c\n1nyRQGLQ1zROS2hxFrGdQXWLe8YuetP5WIuwf07xiCg2tg7UblDIJAIOfaip\nOodBQZ/OZc5iBef+8jszqb/UzM67Rau+o0EqaFT8d2ROgckXebn3xLDo3diA\nU/4rsH4HiIAjNwbQXTANT1u3o6/Z8znR8xKS0VnGSFTzIpOay96c/36nGRSp\npIpu2iZvEJKq0sLwPanxwhLbF/kPL6zOkcMXDrGcW/HwOQ/2ibKZnunp/Bst\nbIDF7ETQxKlKuI+CpOPdOaobgf2Gr3COIuTcPk2AuPxrSfBDpGn92LjM+gaa\nWrgQbx3Ijs11dDL4OtyDaWcOJncdBGM54+KFYn6I8KvCUZczk2wOB7ZPffTR\nhnGsYI6e63SYQOnC2/ubL7oAVNVln69iCN5vQ8pHuE4hrWrge6KhejJbtFlA\n6XFpuk872D/OLa5Wt05dTyYTKsTc13WnZ9t2adWSb2FWmegGZ9exIruGx450\ni+yOz6kfUND7jIjt80E4GMK9pRCBSQfaX2NcLfYcB8B/SaynbSUhfRhyWPwW\nqzJQ\r\n=o9rW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCN8ahbgTg3F1wcWT2Uq+mk8yPOtEpPit13rvKlvZo5ZAIhAOJ61sPgGth1IQ1GZ3aUROHRsHrbdA8igOKNmu1a06Ve"}]},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.2_1604592696925_0.19359621179763087"},"_hasShrinkwrap":false},"0.1.3":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.3","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"4194081cd9e121fd06affe124cccc77c9111654c","_id":"@mihanizm56/webpack-stream-watcher@0.1.3","_nodeVersion":"12.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uqBogO6gRycgKOule6djVra5+MGvIZLm/32j2kKGy7w+zv8PDz/ewqFtSnAp24FdwXGMQJBoGV89qcP/CthE2w==","shasum":"7590c021093b27ece7fb6e83ad8c1c12a6169c54","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.3.tgz","fileCount":7,"unpackedSize":8566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpCTlCRA9TVsSAnZWagAAqxcP/1L+d7cDohPKb5hPxiXC\nZ4YLs8yF3eARH52oR3AWKLwQ9NXQUlQ0LVjzsPxakkqYoQTsSt1LKXjGAYeS\nlwqRAiU3YUwYMERILfjf+8/9JgaJmBlsDbyA0QrgdoKeMI8A5VfbP7GUNQgz\neAzNlevQ7vUPgEtU4v3gierDsFjtLuIeT8kG7+FavTv8RZxj2cfIBF9b4CoF\nnrChy9dIn5vhzdbQf9KCOVaQZ83+MGgGfk6XpNqcsuVfhnHWC0l2CnP1crv3\nlR/XAxmuKgd91/pze0FQzEFh7gHQMHNy9X5C1mrbItWUpXQmTX/mMTT9CKPy\nBAnGGl+sPz9cbSvlh26HqDURbyNOxpSFbBSGHrvgEuG/r8fcn5dLxggT+QMe\ne6GS1DN6YCJE0HhrcDY72zY5SJJGEOvBTK4guu/xoDP4jY4QjtMjyD2I6l+K\nwaCYmvjN6DSf/lsSVy/os6OrGE+GFeIBHk2WRjvS5GrCzovTtX51hyQ0MfKs\nvCQXVAqT50kzssDqod3FclOC0uw/q2ywoM3lYLWVVvUnDtzdJunCbIscPx2k\nc+F5fdy1dqHdtBHFr1OVzayruWs4XvbilC42n9MvoAl4G2S+CKCbT44X6ECb\nuzVSrIotv4rLbVJmyHDSw3hFbwWh0FFSctNuInFgI4e0SqxK3Cg8aLNA6NwR\nI5/x\r\n=t7/J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEVz1Kp4JgrTekPmAGnZBBdgr6ezt/Y4tojc2TXeTvVgIhALUtxor25dpID1CHgOFBJp+6EitOYqSQzVUBwJvFoQx5"}]},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.3_1604592869202_0.613829292363115"},"_hasShrinkwrap":false},"0.1.4":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.4","description":"webpack redux utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"78b79720f14a6e68a777aaab9261a580c104bfa2","_id":"@mihanizm56/webpack-stream-watcher@0.1.4","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-JfSQBU3kdNuDp+BQeOWvlDkGyolAOGEIDV3u/4m6WykQ/O8amPHpLoSPJ3pD1S222yQbxeKjdK8OyMS2a58dhA==","shasum":"143ef585b3bffa5070f0d62f65d2d8c8dd62eec8","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.4.tgz","fileCount":7,"unpackedSize":8577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpHZ6CRA9TVsSAnZWagAAxAUP/izk5LdlQuy8zK4xyBjf\nGkxJRhIJ3AOLYOieJ5xZHzD6rU5cMY73cK5qoikGMAkvLFSUV4QtzCqQxiEE\n/s6Vb+uxUA3d35uuRx94cFBXeCkMp4zh0XVDMQcFyZvSc50KrdsgvoudREIp\nX0EUJQlHLs8k31Q8cbXK0U7dI/g7Cw1uOI/2hMbZyp8ijNWi2WCpCI1h3Gjm\n8p4JfzmB0qv5evAXIrAAQdgEgJTv8laVkkrbA/FGcYHHR01ulM+wY/QkmXNw\nSUvjTVxNxkQjrkjGSg/vR5PaDYaqGGRH42EHMXbI97KyT0FBPmoqlNf/s+Te\nNVZEMByv1NdM5Dld3KJV3fk0Qmt9t1Ogd23c+uPnIo1ImKlKn/ISOie4y8Dd\n1Y0QaJe96q3Uz1oaMgQTfrBwxsJlWDkyqvDhSUtxOY0hAcCSv6iO1KM3oZKJ\nEAhPQCNbpMEa18JIrfOou2KwTZ8aPdiTU1qTth0VcVMUeSDg9S7RfR3t52od\nKdX4ot3aiqZ+TEtfY2JczYWgAmbM2fsERXkz+gNS6S2xO1hHFPN6uIaHfg6J\n4Ie/4jbgy71uyHCK3EVOFiJSU7dh4hsvfIUF4H9YSmCOarmHPMZeCk6P/Zrv\nB+yNwVvuPoFgJWaSUBJC3MsQRDYEdSta/W3PF2owQPls6qnzuIWa8fgxCeAP\nzxNA\r\n=smg3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZ6KfTSuimm4SmhMAWG6ldg5/oWHQDFzjDY5fgIHTQwwIhAOoIC0CKYxOiR4wK78KAIl3iiakEZmuio2fXOYl0hkMu"}]},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.4_1604613753599_0.49005759954087535"},"_hasShrinkwrap":false},"0.1.5":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.5","description":"webpack utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"20858c62bc14aeaae16ee5282a6dfa0ebd0c7f52","_id":"@mihanizm56/webpack-stream-watcher@0.1.5","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Qjgw9VKrFx2WsZnfxpsXePxzU1u0krxIWD3fPvwWyzZ36DbYCyRYwCUa0RPI7wk2oPMOkKgrpTWBdKnUIQ4EUg==","shasum":"8d67675ffa23d254c8ce7d7bc94f485662991b90","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.5.tgz","fileCount":7,"unpackedSize":7924,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIERE/5xm/Bdi+3lFFoa1TfTJCLF+q6okVmN0QA6TzWnUAiEA5YWGHR6G4zPoZPZ0Btm3D/x2auIet3pVvj+2dLQn1bw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZn/RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf2A//d6n+dUf3AyvU2uTboW2JXj6Uyyx+xqNGpbRL22/2t0TMdWzi\r\nMHBrWqJp5ShDk35+S+0PZEOdGoRJ61c6XLLcHTEd+UWD0XKhDF4XKm4pskf9\r\nebAjIPOwlBJAimubRKYa0rkLv6EDATUGITeNkjQGlTHeBkpW5DPMWFEwPlaF\r\nxs+UxFFFpReJXB4JIHDYZRNyuL9lYv6Wd0EanltgFnAR8bhyq7lyDs89Y79N\r\nreqH8QPfLM8cqYTQl0HqhR7eEXWSKmo6OThUkmHOwGV6idxtxYKcy9xh/Y4t\r\nIERU5+j58XHDfltxphtJGDx9Y5t6nVSPp3g/+VC+pfLHg3Wm0Gnj2GGbTWsL\r\nXM68yqR0elaSV9173WUWu1cdvM5SBthnWJoiGlsEPU60mhhe+36JBMUNm5A8\r\nlk/LqvcTVIVLZ5oNn1PYPeu9F9JNiah28aDunEEh+aWeeXSZqnjgFf7Quzd1\r\nPxUgl92CZfHenyazL3A7IVwpdLEAzQrnv66hyUFIyr4gePLBSkZ9Vspt1aKh\r\namu89rmJoZLLnA2Ldk8OhqYbrGbnZHCuxxRCTpKKNIB4u1dZd2kCWbunXUYX\r\n0XNzdIRxOaMY6DmjIB7o1ExQdSFfi98XEKapfQJA0tFukrdjmolc6BrJsOyg\r\nl7Shg0RaspdziLFypQf2nh+fTsUDqqxgleg=\r\n=Uqxm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.5_1650884560894_0.533669190985643"},"_hasShrinkwrap":false},"0.1.6-beta.1":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.6-beta.1","description":"webpack utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"8ddf92cc3be0b5099041e946997b2fb1662de3e1","_id":"@mihanizm56/webpack-stream-watcher@0.1.6-beta.1","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-FtRXvwJZpLQC/jcLr8ZCNRD9s6XW549t/a4HIWsh1j9Q1m0xJjce6nErDZnqZ7klCXTmdw0cVKogaIyqd2O+EA==","shasum":"4b798b5e511de8416474f15937ce40cfc999f01c","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.6-beta.1.tgz","fileCount":7,"unpackedSize":8578,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICvuXXSMRHVCjI+3ZnvQIJwDsNWr3GHyKUdkstrCPW5nAiBrStg7McWZVt2ME6UAi8JaLfg5P1P15dJPv/SIfNlQkg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZouyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomyBAAiljd7X39gT6sDLxbuer7nY+xydcW3gReR5mpXp+Neq7qO7MH\r\nL79m3WNxv6zyte6cj3fQhT+HFqZiBNZPqK576oGRtXHGu7BbYuAQMeH8+MyN\r\nS+hk8+ITUS+7OK80tuXzji5zN3heUl6ltWaYaaWm9HxkDg8LmSFBsWMxyjbR\r\nG42SyQkfcLP7/1qJcizoCO5Z83OQJctmiW0lfSEFFWn6kWv8+WmSqcxcF9bW\r\nuDyNcWNqgZQI6rKMKlxg6W0lQ9VQTQI87V1RUxMhRXiTyRKPffCgIojhThkC\r\nGPI6o9oeXOHaF+O8Or8qkxaurOQcwKWemVLgT7eQdKls2jkmh3DJqBdfVAcZ\r\nyRFhTucft0Rz37mN8wBWXAHBXOdsNUG4wfTcLuSgbB1GUsGmHLUGfxUjUsNd\r\nKVgfbMDWCxVLuIRfQabTX40Wiw3YnhkWW3Rm5XilLjjfLiVEzaUyd3XUC3Be\r\nro4OGOY6SbWMFJcbhMY2GsNK4zKAQrknszlJW41GoDSvnbIBZxI+4UXQNkU+\r\nwX4FEtBrBk3BB9Oky3xGdBKe7Zj8ohDzWzTF012+tdS4STPjcol8gKEvAf7k\r\nRdBqCnxCH/jPYBQj9T1ECtnk2DILm1BJAEjlnjSkfe80//JD+PY0nGGX/+3m\r\n90JULXVL3QDtwE17HnnlHjDsSdkiZkmo7jw=\r\n=5Jxt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.6-beta.1_1650887602180_0.47473465826598393"},"_hasShrinkwrap":false},"0.1.6-beta.2":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.6-beta.2","description":"webpack utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md","gitHead":"64524fd8315f8cbe6aab4a075d33c9aca4d2f6f4","_id":"@mihanizm56/webpack-stream-watcher@0.1.6-beta.2","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-AIKIpyzLe2vSJVqMnyTRUnCyTUGIsuQ5kzKVfA41TI9hcvILL0eTmVg/wP43op3MYkBQIsKBJXgN9sn6pO7GIg==","shasum":"2fffea1ce44369d54b1a5edf84161177f4219c19","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.6-beta.2.tgz","fileCount":7,"unpackedSize":8586,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFZzRuBrT4vYX5/rTCXbEyTmMhIX3EqIo1Cw2shIcjKwIgUT5gojHS4GfG+PrId2ef7hZ4EnXi3N7WipPSkc5y6e8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZoxCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdfxAAhZ4fQHY/bk57pPz41IbswikrlVxiewOVAo9aCLd+/jn3Qtps\r\noXSifT0gUSmhPGJfdTOrppIwyPL69RmsF6hD04ynjEaCqAev23nTsThfn7wI\r\nzV/OSm63gUQHZr8cqOfAdlZ+6V3basF2cybJ+vzJHlUOQdIpjy7+rOcH3Cs+\r\nrXvgBH3Z0Xwdco/38plyYbsGPACGQAoUwzwP7nsgcwrAu23ETzDU/l6V/PlN\r\nAVo9Z6CsgleqMoeIMyoIDxot+/Gf+S0ei1QhlxNhSQ/YjauPcFL2BHLYrsE6\r\nJwlVu+fjz823KTzc6UkpHDtjhoIVxYjkcsknqvXE0C6KbRjCLEJRpOXoPi9W\r\n6zTVup9RqdgD71PaLHTXyPmAxyCQggKoGR0QDc/v6qI8CkHwuJgglVSW8HYn\r\nxZipE1Bav0LOO/JbD31c+1kOKecJ6e148bNv7ByaAjCCP/cNTSpB+YX2cQGF\r\nasbbutCTt8SvETR8i0LJFcS+ZSMGgzB9Ef7pqjPWwQBC57J8nMdg8i91n5pQ\r\nGL1x4nGQh837Xcp33phtmiTs1BTadsIfKzdeU/ae8WFXhTtRnhPRuTvTB1pL\r\ndFgueU9N+jPDPoVSXAmkJEQY11/+Q3oBfmQGcg9QvRTKUlwREnlwGDYKqHOz\r\nocVNnX8suR4ko6A2sTM4sygidCa+bTXOzhc=\r\n=4/U0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.6-beta.2_1650887745942_0.5593514363028598"},"_hasShrinkwrap":false},"0.1.6":{"name":"@mihanizm56/webpack-stream-watcher","version":"0.1.6","description":"webpack utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"fa49f1b81fa59423553801fa5e8fde8f288f1268","_id":"@mihanizm56/webpack-stream-watcher@0.1.6","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-6XJsSzuhQ5W9LAVBUUx4rTa3ZEuTwzDYbMCEFGApiSFoqC02s53DDPUIPgZfL8JKRuZLkdhmyegr19rfWdXczQ==","shasum":"c63b3499c22f224fbcb9bf12c09beab9502832f6","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-0.1.6.tgz","fileCount":7,"unpackedSize":8579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+drFuH9KJRA5q9b+IgyEI1tbncLPhnMpBL3DzELD+VwIhAKnUXbPWfHuqGekyUJfVcQwwSjgsBuMka5LzzP40q3/Y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZoyTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrARxAAmWWPGuUPxTwDebte9Jf6ZEV3dpFmgbECNnZ4gQry5+l7rD43\r\n0wgoDeWRW4fw+shNJjt3MtKhUOMcEDFALLhJxdZ02SgShuIw9INuYZodaYlm\r\nAXnJ5ummIfmALHu8f0dmZdDnqNbtV4YZnvZmm9BEQe3oS6ubnAFGAvw1cCLR\r\nyqPooxcN6qH1f4E4OgzUJMjYeWJ/pU1BbS8AwiPcF7tgyrpyWSm5JI0qdN/6\r\nEI85hZIX/zpv57naJCqHHh+Wm+B2JqML50Nq5io4qAnbJkOEruYVb/NG8Jjk\r\nMvgURcZbwDHERS0pgtq81EghSL5VCwRcgQznAvmzy44eKFJJ9cNy4N/QY8tO\r\nlqFa3DAA5hJaU1dJilEizT3hIfGQMKqct+mEojgYgfWnZUy3vQe70B+PgSZ/\r\ncGL/ALnOG3PKk/xyx6yon9I2GR6fQWALO8h3m1qjNvjb08PZTwWIZJ7WDqxS\r\nJI+aGmDNxTHODC4X1iJ9AA2qgKA1vWHHRP3XGqCKLZ/RlFCA9Ub/mAVM7F0l\r\n6N/h8BDUI59k+IxoZOyiNSPhZYJXiY0O4zvKe7ZUcXItVfnDr0PuV3lsBQlW\r\nzM1JTkCyt5I6X3exkT3wbllT42A5tPBr55Ux9a8Su5AFv1775zX+SNus68b+\r\nYVgjC6dv7ATKapOqL9JjGVxaXXklR03r49s=\r\n=ei+P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_0.1.6_1650887827524_0.8959586658769882"},"_hasShrinkwrap":false},"1.0.6":{"name":"@mihanizm56/webpack-stream-watcher","version":"1.0.6","description":"webpack utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"1526712a722393e631ebc6cfc72b9a9c2110a92d","_id":"@mihanizm56/webpack-stream-watcher@1.0.6","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-e6aUHueo1fjNF79Op9nvxwSTK7e6I2By0TCUb7biQcMc03bBAz7Eun6IpoMIesyYDefpDCmg/pbrBPT7wVWOwA==","shasum":"b62534698a7bbefde6857063ad78832e7b406cb1","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-1.0.6.tgz","fileCount":7,"unpackedSize":8579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOMRH5yKYBZdFrkiOxO20GQm/MaK0q7uVZXp9S3kaBSgIgAXBfrL85oVX7sdBM6ZciOFteISlAq39FYlP68qBcbes="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZozAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcJhAAmuxoHaeUZJ5la1RFsHQEJggpfLVo74aAa8ht/GD4VYUdKeYY\r\no8Cuvtm7LUENCU7QdJz+zAHvtZCQC0snQO7o+NTghoyzAErr3hU2YOFuHqvZ\r\nIg95m1mwd5oU+V8Dkk9Xkad/iBIZJ3Jc15kShE2hChCjb3orw8oazJI/2Rn4\r\nnICn90dCN88pusW2PRfO6Z/iTBCqfo60nooOY9MbJu+4mcaKYcs7u7LNKQwU\r\nlIZG9zaeRVs3RjqYMJxJz/F9Pm87JJUYGjRkdGVai8v85yHje5+xuFeoXvXI\r\nUomVyHzrHDxchUxg0cCane49Pj+JK3TtoPsHAFFvyKhXwIQz7efXF/PpFZNi\r\nWLZ8Bhk8bChCMhO0llLdE5DceSl4FwhIP1k4BLeBZDEhC1+IsKbSBqfwNcsN\r\nEPNDIYu3TYMl8GUB93OVifb1V6IWCDDbwAON4qHSU+OdXTEclQCbLk1AbDGi\r\nBDXBXJiZC8agn+rmvDnDH+pqIRXX6LVBvYNt3hkN2BSYhmptbck5LdpZtSMR\r\nsl2RPek2xF8c/AV9B73GvF09zr6FxvVYU+aFcHg2Nc0x4euhIUDelgIueuwd\r\n2MSRwct3/byBb9PdjEfqVFqgN3kczyUQHyiNd2y4fXQRYiAeO+UpxJ8P1D7m\r\n2qh7A4lXcqhwlKgZAGG+WYIUgS3x2JWruHk=\r\n=aaTs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_1.0.6_1650887872194_0.91365675863436"},"_hasShrinkwrap":false},"2.0.0":{"name":"@mihanizm56/webpack-stream-watcher","version":"2.0.0","description":"webpack utils","license":"MIT","main":"lib/index.js","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"scripts":{"lint":"npx eslint ./config --ext .js --fix","commit":"git add . && git commit --no-edit","release":"npm run commit && git push && npm publish --access=public","beta":"npm run commit && git push && npm publish --tag beta --access=public"},"dependencies":{"colors":"1.4.0","dotenv":"8.2.0","ip":"1.1.5","ws":"7.3.1"},"devDependencies":{"@commitlint/cli":"8.2.0","commitizen":"4.0.4","cz-customizable":"6.2.0","eslint":"6.8.0","eslint-config-airbnb-base":"14.1.0","eslint-config-prettier":"6.5.0","eslint-import-resolver-alias":"1.1.2","eslint-loader":"3.0.2","eslint-plugin-import":"2.18.2","eslint-plugin-prettier":"3.1.1","eslint-plugin-security":"1.4.0","esprima":"4.0.1","husky":"3.0.9","prettier":"1.18.2"},"config":{"commitizen":{"path":"node_modules/cz-customizable"},"cz-customizable":{"config":"config/git/commitizen.js"}},"gitHead":"83eb5e4eb7a621f6dc7b93c1addc5642ffb328b0","_id":"@mihanizm56/webpack-stream-watcher@2.0.0","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","dist":{"integrity":"sha512-tli4frikSh1pw1nUQ2gYyiWgiRPva4kMCX0oLDK0Ns/KmICE1Q12pjsL5e8KyXcZtjp8MSdCM2sJ0qOsfv9mpg==","shasum":"e9888feda617fe8d40639c64feab33b2560b149a","tarball":"https://registry.npmjs.org/@mihanizm56/webpack-stream-watcher/-/webpack-stream-watcher-2.0.0.tgz","fileCount":7,"unpackedSize":8591,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLc2aMSSHdGgmZcoRbdZuBWItD/DIIkvlGHe1e7rUiMgIhALE7fpBaasyO5H2K7ANa9YGVQIEiXx+v6gkxGB2WYdch"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3I4HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoGg/+I4Zl8X2ki7vk1tOhlkYLlPDJh1G9lb79TA1mz/z555jRkJQF\r\np+HVy5Anu2DlZPAyRNFs83UmXLvNvHz7JIYcgmhy8CTBP0LHjzX0VsGpLLuh\r\npYNATjly7nxtLBnDrXP81l1PfjuVwclMjrqbxyG/TChDM71qEG7necesQSB2\r\nheSG9dnb9vrLDPQUmlO3v4tdewtIHX/T2HH6kMUZ9N5hnbgwZM/QSpSeel9K\r\nYHJflc5D0T11R7cgg70PM1XsjAwqvyge0eJSYeBnHY+1Sd8GKYyzh1YzuBbM\r\ni8bPLz40ph+zsPPvEbBh+9NoPNep9Bd0XtsBRn/xGtDnME1ab+SW5PJS6IZ0\r\nF2Z3fXCqyJaq6lc8CR8v3JHdtdiplZtYsTeQzUkwJS1lKdgWqmFVKkyENtvg\r\nmWFlw7MlUs+qqxdpUuehWsjKTKYWyEUMrd1yfh2OfaO+X5Ux6mSm/Y255hKZ\r\n7Ju619gsDV+ljK8TJP01HgMrt0igbdJ3j1DYMIrb45ZH8XYztB5YsI6lRCbN\r\nn1Xq3ggWiX44n9vkOyds4OgWNVh0R/uTXvAniDssIZLwo3nYFWnSLk9FD9Rf\r\nd8g1/OZ752xr/BoYgMOb/M0Cmargs4RxUy3C2mSBInjmhR7XmzOC5QOwVXCT\r\neCV5k6/K8blnArmwobOY6u1r1wv8zVLOnxU=\r\n=mRgF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mihanizm56","email":"m727507.56@mail.ru"},"directories":{},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-stream-watcher_2.0.0_1658621447232_0.4432395783434533"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-11T20:43:17.051Z","0.0.1-beta.0":"2020-09-11T20:43:17.234Z","modified":"2022-07-24T00:10:47.483Z","0.0.1-beta.1":"2020-09-11T20:45:48.389Z","0.0.1":"2020-09-11T20:50:07.207Z","0.0.3-beta.1":"2020-09-11T21:22:25.726Z","0.0.3-beta.2":"2020-09-11T21:27:14.173Z","0.0.3-beta.3":"2020-09-11T21:47:45.429Z","0.0.3":"2020-09-11T21:52:54.744Z","0.0.4-beta":"2020-09-12T20:23:24.161Z","0.0.4-beta.1":"2020-09-12T20:24:18.630Z","0.1.0-beta.1":"2020-11-02T23:30:51.152Z","0.1.0-beta.2":"2020-11-03T01:16:30.991Z","0.1.0":"2020-11-03T01:23:55.983Z","0.1.1-beta.1":"2020-11-03T23:41:33.950Z","0.1.1-beta.2":"2020-11-04T00:03:41.752Z","0.1.1-beta.3":"2020-11-04T00:25:11.302Z","0.1.1":"2020-11-04T00:30:00.561Z","0.1.2":"2020-11-05T16:11:37.070Z","0.1.3":"2020-11-05T16:14:29.346Z","0.1.4":"2020-11-05T22:02:33.752Z","0.1.5":"2022-04-25T11:02:41.072Z","0.1.6-beta.1":"2022-04-25T11:53:22.332Z","0.1.6-beta.2":"2022-04-25T11:55:46.096Z","0.1.6":"2022-04-25T11:57:07.651Z","1.0.6":"2022-04-25T11:57:52.359Z","2.0.0":"2022-07-24T00:10:47.420Z"},"maintainers":[{"name":"mihanizm56","email":"m727507.56@mail.ru"}],"description":"webpack utils","homepage":"https://github.com/mihanizm56/webpack-stream-watcher#readme","repository":{"type":"git","url":"git+https://github.com/mihanizm56/webpack-stream-watcher.git"},"bugs":{"url":"https://github.com/mihanizm56/webpack-stream-watcher/issues"},"license":"MIT","readme":"# @mihanizm56/webpack-stream-watcher\n\n## Webpack plugin that reloads the separated react-app on browser after your app was builded and runs the docker image to start your own app with .umd static files\n\n### Please note, that you must insert the plugin's requirements to your separated react-app\n### Please note, that this is works only in Linux and MacOs machine (windows 10 PRO maybe but was not tested)\n\n\n#### Plugin required environments:\n - PLT_IMAGE_PORT - port of your \"watching app\"\n - PLT_IMAGE_NAME - docker image name that will watcher run to server files via nginx\n - PLT_STREAM_SEND_PORT - the port to send web-socket messages\n\n### Insert the websocket server in the separate react-app\n\n```javascript\n// webpackDevServer.config.js\nconst WebSocket = require('ws')\n\nconst wss = new WebSocket.Server({ port: 5010 })\n\nmodule.exports = function(proxy, allowedHost) {\n  return {\n    // other settings\n    before(app, server) { \n      // create the connection\n      wss.on('connection', ws => {\n        // get trigger message\n        ws.on('message', message =>\n          // reload page \n          server.sockWrite(server.sockets,'content-changed')\n        )\n      })\n      \n      // other settings\n    },\n  };\n};\n\n```\n\n### Example of usage\n\n```javascript\n// webpack.config.js\nconst PlatformBuildWithWatchPlugin = require('@mihanizm56/webpack-stream-watcher');\n\nmodule.exports = {\n  // your config ...\n  plugins: [new PlatformBuildWithWatchPlugin()]\n};\n```\n\n#### The actual web-socket messager runs the command\n\n```javascript\n// node_modules/@mihanizm56/webpack-stream-watcher/reload-trigger.js\nconst WebSocket = require('ws');\n\nconst platformPort = process.env.PLT_STREAM_SEND_PORT || 5010;\n\nmodule.exports.reloadTrigger = () => {\n  const ws = new WebSocket(`ws://localhost:${platformPort}`);\n\n  ws.on('open', function open() {\n    ws.send('trigger');\n    ws.close();\n  });\n};\n```\n\n## The Websocket signal can be used in different approaches - not only to trigger reloads !!!\n","readmeFilename":"README.md"}