{"_id":"@capsulajs/capsulahub-cli","_rev":"70-a8bf8d4cb1a4b75a7f1e0f9097bc102c","name":"@capsulajs/capsulahub-cli","dist-tags":{"latest":"0.0.3","snapshot":"0.0.2-alpha.1575380902.32","next":"0.0.2-next.35"},"versions":{"0.0.1":{"name":"@capsulajs/capsulahub-cli","version":"0.0.1","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"0.0.2-alpha.1","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"_id":"@capsulajs/capsulahub-cli@0.0.1","_nodeVersion":"10.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-wyiWarOvmBAhaeDCG1XIgfFjFw8oz6NPP5Yi6SZHzDgb4f0DjowEMEEV67bP2pI+kFjSuNFl9bEWmTQyGnHl+Q==","shasum":"d6ee6f72b1cb2103f9b29d1c7fd42219f99b7f7b","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.1.tgz","fileCount":60,"unpackedSize":78417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdG1E2CRA9TVsSAnZWagAAV/sP/3I0fApjg0evc6Ig4wU6\neZqEp8OjpEuSTY+IST+GwXzab4ABLT1ccQnCTo08kvjj2v/+1+4pZWgefKmJ\noPCspcRksEnnyE2+FQHYodS6TVLrjeUKKKmp4X4FMn4dNuO2YYT++mBwzGbP\nlY9Z5YmkBsHPiFRyA0UZwtHCAGrTy9KLbIDdIVqUFIqSoOsASit0M9X2dngI\nx1kuLDMrmKmg+RYdyjm7OrA6Zf+7B2AglUgUACfRZh7JrDLFYjFBRnv7/7fa\ncH+kCJ/qULSB0OBUpGPjm2Hklk7Qb1KRM4T1A8OPwwmV9DvwmM24NX1rn+ZQ\nzkTkrjoB1Jx0Wxynw6uN5+WxPvGaIY1v4GhpD1b5O1Qya8Fxv8n8xLhwqdGA\nQ/hRPldHnL7V1irk+A0r5sCvhByHvKu9zG/wF9bNa/4NFYKuMk/utuTv9Jfc\nM+Oehgylk+37n0bGLSHYIgT8PaT6PPwByJoCLHhgUkDWX5PxBdve1uWN8Wsx\nOkqaXa1ys2BQI5OT6nbB34ambntGfVUuQZAWj706YTyFbAOqAeYIvWHYI8H9\n/DyblL0IqAa6pR5vlUXglNKmFAcrnzymXuhWa5ja4lq/fb1v+ZrSnz3jqrTZ\nuZjnkvn65dTA6H0xBgqBjSKOjzBTYCvhgNH24y7fomfrlIkzVbNdY5JyGQ3I\nxr0I\r\n=91TN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRXuIbYMOZCEgD0/B+ooGeVDAumUeC/aS2cdbtYiacrAiEA7fEeTb5McHQSFtLk7/yb4KsWIwPIy9+eeE38UEz10Wg="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"mikesquall","email":"michael.arbib@om2.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"}],"_npmUser":{"name":"mikesquall","email":"michael.arbib@om2.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.1_1562071350132_0.394067531496725"},"_hasShrinkwrap":false},"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562074006.163":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562074006.163","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562074006.4+c4f8280","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"c4f8280a552fc4d390bc58335149fa0dc874f3db","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562074006.163","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.14.1/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-JfKTYmWW5RJmLjBWlpjb4svcsDdReP1hfhUfT6nXhQ5jVA1mKPpw1p8X7vnUSi2O0x9wRalfU4qhbumMcGqAjg==","shasum":"87e9189731b499843977bf0f132c3752355aad84","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562074006.163.tgz","fileCount":60,"unpackedSize":78535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdG1uqCRA9TVsSAnZWagAAoRgP/3Dz1D00vWmohrGSopb4\nnNTmC3NaygaThwvtigOfpMZWZq3xst0pHJYmDqSxHlveKPCrHwDYpTlJ0RBd\nERbxHASVIUw5BdsFG9wlqZuRVJDJ1pBbjsgmjvhzgAov3LtZXniCMLc0HjFx\nT0CVRzNqehFnBPiVJzQUFI4p+l8DL3ncaXkNp7Ns6nMd2loUo9VmrL8LHbHx\nABuxs4HYL7/lpuBseJ4x8EqaAhr/Wu4z6M+hyYq5dpYpdh+LRXN8bKLJ1B+E\nLFhvExclpW8ijPt4StA55f/pFQTXeavEq7ne9uR2Q+OGyuLEn2jxlI0wiPys\nY14Lo8zt2OvGaNLfB9gdbL2CUjELzOE1G7sJK1unnI/f3JVXyVxmTVBmyGcE\nykuTQQv/5vlYytZSZzQUjqRQqhHwPgUt5gY2+6FwSp4ukZ0H6CkQxHqCEsNM\nwLkULd/uMTRO8NYYLWYz9AHNThh781PHpZ8RgpFpKjH6qETErYrZku6nuniq\ndtZ/wNGMItUSNgP3+ra/scGtU/vEFW26kvNQkJCZNXZvdDE0yzA/d0GV48tu\n+FjrA3WhrHAACZgGzFMn2MQzMwMxB41vnMbjqt2OApXD0IxK81mqHg0wkcnM\nqAMbmZ/r1wHaNUOt/ND3JVKqLwo0MIhOy/JPjIDdqOFoM4K+tixIx6G9YQeo\ne7ge\r\n=b0UZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZVhTrtqUQ0pTCRP5XUpPmXxGlHZSxBTNdsIM71rpYVAiEAvUOPzf1yIRqWtMqy/Y4f1YZ6J6Q04Oeu1jrC/Dj53l8="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562074006.163_1562074024666_0.5037466196361009"},"_hasShrinkwrap":false},"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562078010.164":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562078010.164","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562078010.4+0ac081a","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"0ac081a1a0dc6bab47e10883e1216ce28628ac08","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562078010.164","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.14.1/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-q2Nwlj9NFJKzMEMH47midYzc30UkeAE+KHyB9HDjxyaPR5Of0O7B03KW7LqA52B9FvMMw31oqavFDjYdJsmlqQ==","shasum":"cef1900a243ed987f5806b81ea2e86b7a663c988","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562078010.164.tgz","fileCount":60,"unpackedSize":78535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdG2tVCRA9TVsSAnZWagAAVCIQAJHWzUE0P/pv6Blai7br\nKBVoqVY77c0iFDFlpu4e0LtaLZ4tRoWcLJ4efFgPc9I0nULYWI21Lx8r3gfu\nXG81/d2JNBSV1KnRb8cO6i+uLjk518WtdhVBM+s3FmuEH4w1kWgA+rh8Uw0y\nOAJbSEd4J4BoqvKUIBTr6ZBYH5Hb865pnKrkOl9ubzhVkzLaO1XwTUaWHMv2\nfyMihRxXVPq2zDzcIhVDz0mziK4yr7CLujKo2zd4SBlLU1dCLr0RvHVyPFAg\niP7STuv5ycQ1VClTrBPyYQp8USAtXIzYXJOK3jOQYJjRbIUUKGgIW8eMlCey\ntWSEOI7I4B5JTST1DR5BXCU85EFUlZ8ZBSN4sJnRJNgIyC8WK6EucTVMiMWv\n/+KgzgJQOoKv5JvB7MMFeLkQR243rtGz0oXCWp++jYmy89UKjy+AV52wmIoc\nnnlvyhqU0xpbVsWaPnnhqcUEjYvo07vZY/V5k+YQz7S4RvWZLreaiYCivDLo\nrAjjP0j4sLgMeDqPQwMQc+HDaDnnxjYzRR2GK/J5gks4H2pEhgGDXyu1RVA1\ntavyxA9pSWgavfPPfGso66sSVjCPxnr6L20apyGgV52p7PqNxQGkfD/IN7yX\nDtrPYx6gnxVAhAkLh90weqk8bJ1KZ+BfpkAOs+0hBZO516idOd5/Wb5pxxu7\n8PII\r\n=5vXb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDMiyqdlsG3oQX7iLT2ARkAObuMxLdv8umXIz6DUmIEgIhAKhwupIN38l5KdofOWRI7nHvaIe05/cQnpwKjQx3lV+S"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562078010.164_1562078037023_0.43182335056670906"},"_hasShrinkwrap":false},"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562082230.165":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562082230.165","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562082230.4+6b68539","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"6b685398cfec4010e2dd3a5390e7e4ee473bbea4","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562082230.165","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.14.1/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-7C9aFo9pL7F/EJkusyotko3Cow7hz5Gxk3MkQzfqzvz5ktGFGIWS3HiEjq83rHmPl7jgfDu8pasDBeNDszzv1w==","shasum":"76d6159c8b112834a9a4a06c6e3aba336ce27753","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562082230.165.tgz","fileCount":60,"unpackedSize":78535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdG3u/CRA9TVsSAnZWagAA3W0P/jcosoSxH+uMYjP64cKg\n+qJqYSg5akV3Cwa+rhCzbdN4p9n1tNNQr0rBaG/6tUEi3b9xQOda5A/7oy5N\n00wad9kvKI8+EOLJHTwyIGoj5K6uxce5aqQENPJhkIIq3IeEWAiv4QZ5u0n7\nsH5VXHIwNcvkC/MFj3M8OlCmmtGfkjDxOPitSUjoPAwK1WQtQnZa2pb7q5Yp\n4a23+n2+RNHrp45oU7ietix9h1ffOeiQf7qrUnANA3HmC+cPciy8AocmT/YI\ndULLc7Sddyg4XdUvO5yObkOh75Se3oKvVNMXBS3wVk19Sjp2AlPvwfjaaEds\nBhQEeqGF/48N1f1+bV8Tjq/I2NgmnjujMAkY1BThbFcOIdMeOIFi83MJpds9\niAu6Yqu6BWC9dyLjAvBD++WA58b2mGecwv5iBpCwkpvx4s/WEYTQTM7Xennd\np0fPUC9RtsP6AYH6PHBy8HsBkLcj0rNGvPoi0aTtLog1e2lubCcuxjDucBZi\n9LFnfye8qEgLDEsgkOzA8O229wYgFqjA5vWEz8ERKJ75BheEyZIcT3io+nUF\n8fEw+efNSMiA01003pQdPAQgOHKWWiNwHBC9oP/XLJrDeIph5hLPQ/R9HkBQ\nvjIKF8k01R7Vc5tAAYVohscY+8COLzCVAJ/clPJm3sDKtIlUBxx6tivcxbpj\nAumL\r\n=xayP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGYkOUNuc0jRIoGCZmfWcZnkcAGFHpbJs6kjzZB1wZjAiBoD/CCaFF6TtlsyA3qWGxmAzO/hpCx8x7kEMyDeiCLYA=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562082230.165_1562082238877_0.10870656763487374"},"_hasShrinkwrap":false},"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562136096.175":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562136096.175","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562136096.6+24b7477","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"24b747736bf544ce76849af3fbfc49f4d63a604b","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562136096.175","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.14.1/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-NspP5wIRJA2xjoD80J8tcfD5ir536sFUAG2NonNLae4pgB2pK1YtV3cZDXk5lQM/RPNZuzpd1RSKuWGvJYYLjA==","shasum":"de0418553836b768a734a6ba966a6cd0fb80f7cf","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562136096.175.tgz","fileCount":60,"unpackedSize":78535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHE4pCRA9TVsSAnZWagAAPZUP/jI+DyM90BetGGVWAh7C\nTSIOXA75MD2KG5wiKwzrQF235r0OW/zLXumZkk/qPH9DRp4p7nD5nHMn8ZNU\nfpAaGfZWbGDF8YCJoQKDttX1w6dvDLL3pI8GztjEqEvROvNf5pcRcUJxfBLy\n8GfsBxUTyFurbTdaV5qbzCeTt0fAmHC+u1o36cF1oMmTcae2zVeR1IUL2N+x\nK4jOXnbRqRSsGoGF9anh67Ti0i7l7EgtkTH7dAoNA2hLWQIboZyuhIKLs14z\n+i8nymCeYLbbFy36CHMgdPTBgMLSJD3NUbH9ujJBS+WFKgEW8uuZ+tAY7qRx\nvzPI1bezLeuZfC+0rFIltcdptQx5bSegWxeCv68+HGUNnScIA8Ra+eK2huFw\nfXmX06YRY/GAvlyFrz2QpZHJ48dBe259LAM8o9G9L+Z9+8zMmjVuFloZKeiZ\n08KQN/YCBxOHjfMDMFUosOWz7TMJkAyAmAcwaFEX+lSobPi6Y6h8xloaFN6i\nT50e0AWxM4rqN9r4TMnRo7sAcGAWJId3PaCBqMrwBsOhGaDzp+8CqfT4bG4t\n9LQR1KAr3tLQpAzP/6c0VXnsLZoPYZFV3fteVrILYKpCMDsZTyFwbx5+DXKG\neg11Pjb2QscNe56D73h1nP7BSn1NbW+0RzcDco8raAt5qND5tPZCqsaYMuOu\ndtuT\r\n=gZDu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXVd9phZSebjSyCbfeHsU59XNhoZr/UYy72IN2SM+IPQIgC2AwNUk52wN+UviXHZLxIinuDiUR44jo8XNj+dH8Kuk="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562136096.175_1562136104701_0.9729643047520942"},"_hasShrinkwrap":false},"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562141181.178":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562141181.178","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562141181.6+013807a","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"013807a1eac2c9645be651ae65b36c8dfd3f7446","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562141181.178","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-dHJ3fejGO9TKyrFod1KiIwbHxD03Cgav0DEet89iHxqtA+23dPkyzqudCFtvcJM2Bu+RiBPykHrDMcjnQ0cKTQ==","shasum":"5550f12bb6627e13d424ccc42042af8d91420070","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562141181.178.tgz","fileCount":60,"unpackedSize":78535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHGIECRA9TVsSAnZWagAA6zsP/RAmMNQjrAZuQqtHAbat\nCzWdMA8BOzLcqCHs/LwqG6M2KYJC7GapSqlicEDAKrU4Vi3JqtSyFlYLLJU+\nmK7Yw1iBFTqEtCjEgtqPlJvpZrjj1e9i6ARQa8qgdE2EUFeAepMcsNXG09+9\n7hMdkZzGYqpvTX8K+9To2xgJ3w/O3TdawrRdVfubuHouPIvXUklyIu3nChTG\ntZq+UYzHRsY3PefTqxZ2w5RzLwD+/to8ODu7at5e9v/4gP8AgmrhMYN9sdMg\nq8eERUiDJosSvyc95IkM/liOv9z4GgWuusfJzuwAYZTyjYPvWTdvbs8ntk56\n+Vpzp+b7guBH3bsiUri7IhAZa94GVhWfMoLJH/48Q6c2Jcrx7QpI5o1pnCG4\nFn+VkRXtjzuNCxe7KmhCeq2/dB9FIHiJG29gTEfwBXo0dLCTLL4CCN2lwhUI\ngoOcVgtnXjEv9za1FZHNhHwJrm7Iza+Q/n5vhcEoqREe/xuxQ9BGz/xHxtIt\nbXazaNbGEyhTES5LAX+W4yHF1KRZPUrPGAiiOu7W07Elv3ecQYQ5A2/2trK7\nwE2bErmk6qKfsOVbGE2Neme+ALjoZB+I3OQFuYSl7VhzNeteTmQ/i0xIJiMZ\nlfIXFFQKgmBdRRgCCXD945vKxQxzTqctJbdLW3X98EjYAMLzV1GbgzDDsJ5T\nhvgS\r\n=Wyjx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFr4wuYOW1xcAleFF5AwooiljK8L3MJ4OkvR+swxxrayAiEAra7APFhYphm0I1pwGUvInvO+ffzq7H9mLTZYCB4tcRo="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562141181.178_1562141187872_0.6335869555317342"},"_hasShrinkwrap":false},"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562142230.180":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562142230.180","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562142230.7+86d15c3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"86d15c36ce17f2908643bd6d7d44cf9f4bae1cfe","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562142230.180","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-ecreq04V9942FAWsMG8l+6yTTh1IEuWoxBbkIOqAMwOy6ZIvqs6PuD/yFqufCEmdmtbKy/eLoPyCUoj0wGQwOg==","shasum":"bc9a8cb2787e6c1d939ce26c247d4fc60921a5b6","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562142230.180.tgz","fileCount":60,"unpackedSize":78535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHGYdCRA9TVsSAnZWagAAgEMQAJ0yuN4Jw6rYsyVmo7mo\nLYBhmrmkjSaDvhgo8UCDYMvWDPIzbjGWoxSIOAjFVLPzjq5Q3OvpjKmMrBWE\nXhDxCdUT+uBPrM1mjxv+ETiOuDBD0ljftjByB2I6WMDdik8Qj4PdueXFPZfi\nIDqLYwxaFWmydcZj9x4Q8xo4VpNlf0x2uzOc/ufZ3VIz7KqhzeA2ujyiLuVD\nAAQcTZ6CR0FHPSQETfGa+M+DG+wEk4YcJASA6lrxjNZYgXqj5qRcPCN/DxhD\n3a6UPWRX8sJaVszYcETLksgOCxKm5zBb+Ej6w8CZ2nRmzy48/jr9wiDMz4DX\nzy6hAfIewSd07qHJ7l+KabttejwY47karoig7DvIxi1/3R6Tij/sgWDaiWjq\n9gtCfH1fl/qGjA2GKeG/DESXFEB3c2cu61yr/jdo2NlO4j/aWFZMPGaXgBPe\nSsz1IHGt3MxtB+6ivNSBbXd2B0z37T18XujD4xpb82EUEpKe2INXMW0Lf1Dm\nuO66yleFMrCs1d5bWHp2RK+aGU+8t61/HLy7d/Qki8A1AayxkUps5mj36wrb\nroIc5m/uJcJD7/ZvvSrAUkE0fzQKiPvPKuKdcf3emd4d4CyAlzX8xU5/ogs3\ngQE62brybOezbeh727LN/ZfQee93V5N2GzBc3JqJVDZlJISOnD3k/IFiQEkE\nfmn/\r\n=7Tt4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0+WWK6Jqv1qyYnMc3PvhpqQMcSgyY0hD4isTrgkwniAiEAyagLJpm8zuSJP83ZyxjL/3fAHSWakaUhzIzW2CzECrY="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562142230.180_1562142237017_0.8346516794853391"},"_hasShrinkwrap":false},"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562143917.183":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562143917.183","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562143917.8+4802fa9","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"4802fa91a31afa4634f062cbb760bf600693055f","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562143917.183","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-9kQF3MB00kQiPfbwKc8Lyuy+MRPPSTiYIcmRQzPrCXs/V21w48CVeRFQzw+3eOFVkry/m0q+A7YvsGv+BHB8pA==","shasum":"b8fb40b54d66f221c7e0e1ebbbf90bdacb1f9d5f","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562143917.183.tgz","fileCount":60,"unpackedSize":78535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHGy2CRA9TVsSAnZWagAAn/MP/24oV3/nlxoNmc5pGP/4\nBN4RdHY3DotNjppaFxi6oftkjN/Ip5TckH+a7Deeka8NTJVFILbQOia36341\n9zMyPYMiwpYTUvNhp6HcjWpiY9uZayv8gqjo/StCv8OyzanwyC4ulUX/C8yM\n60r1jTTlq7fqjr4k66s2YcET9ivAsNonmc/9xAa1IjRU5Lqfn9cBzNFtwEFk\nfIyBW687G1ITqO4gac7968c9aDku9i8Vd8SztHub3cCNb7Q3VjrpnYBTxW6X\nh49Ij6tCGeNykRnlL1xd+1mPcfybnzbZsTMr7hL94JRecm1xksaYCsqOZTMl\nm45HPOupS7SEca6kUzakpQCyGTwSmaHITHT2KKbGaeBgYd2/016dKdeytF2n\nZmGUeyC0GXwGVGa9qEgWKVawrc9SQS0aTf6M/wTdzI+u/AFp7V3wSyuPcD23\nLe9bit3EmwD3G3rUQxFrKSCHHeyRREN3Si0RMQwtyffjpOCwXyb6Lb6CXg2Y\nKLvI3pZOagNb9fJlIs3c6c/llnitzfEpUyn4zXWFVavAgi1NzlYBuuHlnyzX\n7j6t5hCVlFJY98rx4GCqlHjXGsbsqmdPjPjiyHtLQrGiFW9bophV57vWTpGR\nGfTPXnogB1BuIDl+CpdLMg0jkp8wbG56pl/c74Byehd+wpxyOO3Hd0+27JAv\n9W+s\r\n=AjMW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgCaSaT2JSJCqMU3apdpn9Au/SjvwZ7CkIf4PT68ALAgIgfWaoZiQUxgupdM7MeUj9uX8eNXfwmsUk+vx/SJoI4Lc="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562143917.183_1562143925605_0.6636097191600219"},"_hasShrinkwrap":false},"0.0.2-alpha.0":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.0","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.2","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"bad2068f906d693a0fdedeb672d19c47a354b849","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-OGzvggdB0E8XXb+an7pNQ4AH7dK9cSQ27/vXBNkZYfMDt/2iyHccayVjCDpWSiknAyXVsEh7VWQOhHoddv78Gg==","shasum":"95ba0a17adf87745452d263da17f5a53161a57e9","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.0.tgz","fileCount":67,"unpackedSize":124203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHHx/CRA9TVsSAnZWagAA6fkP/1MjwMg2H/uR44ishj3p\nxbWpSqiLpAdwkWd3taPccN3pz6IMrSF7rYigGHf94MQuW5ja9l3XF9De05OA\nQX7p4CWpgapNHBqBETSUFa7ui5zSh0Q5jYWF/PSA4UpO/712YpF+b/8mIy+Z\ntiXVsRV3kHO58Tfs+BcgmXIbbf0Pq8mqA79x9VwyOC0NmFeJ8AJzdlSLe+4X\nu9WD76ldm751jjKU8nuErWCHXJkUbne+65rsJkGKcAhgmrBRsvNbEbofN03l\nNytnFitomlPHTsB/3WKhny0ZLaUzbgBwOgpUTMmuufalhtwbEfN80zC6bVQC\nU1cHtmFSJYDNJlxCIuQ95RuHpBoquhneJ9nFmuFgOxcNITFkaNUwur+3le1a\nI2BpqSBYta4K9jfLNj7UnDH8+ELJSEuabe9sPLgGMArI5EwZjUnM5y58xJZx\ni5jTq5CyiRTesMdV41Rt5wqmek4uhNk5g+XKjRPhtGSEAxQ/onKbJYqm80nB\nvGzgEbPkmD+5iDiJ4Oy8+f5wOnExOfFghXFKSdMbYKxCXK4fskL3wUIJAI/T\nWEVOwgFvin3gy6MbljRYGX7xeVXKTnm/IQtDpQw5MpUWQsRxDuFODTwSYpvl\n1GnqjIQcUe6lgjDpSwWIig/aUktNYiIhHCYN4fi6BYSkyP2Q3jiQZyZpPmdI\nhHIC\r\n=Q9Y5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwM4zpRUTCB09cjT21MZRS6EUhLX17Qi0gH4I2nfQtWAiBRXErxtcZs+ZR8j9fCeF6SzEQ3LTreK7wlqawSOG2gZw=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.0_1562147966992_0.908800912275119"},"_hasShrinkwrap":false},"0.0.2-alpha.1":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"0.0.2-alpha.2","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"98fe234ac447ea3275532b7df7aaba08d825f676","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"web-grid\": {\n        \"componentName\": \"web-grid\",\n        \"nodeId\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"nodeId\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-DJ4dutGlMxXlYlmM68XfH8/h/uba/B9VqvtiipJi7QDYw9n95GrrvtqpJZGwnxDEIvqtqwA8txGO1UQMcxLJOQ==","shasum":"ecb4a1acc2add1d59dc847d716ee0eef30c71232","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1.tgz","fileCount":67,"unpackedSize":124202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHIxxCRA9TVsSAnZWagAAVqMP/0xkS9PSlzxSbJQlflZo\n3BGzDABL3hHNBVfkPJt1ynZOdafuKyHXBOXNLzEKW9NXOcDnWHx0vgYVVDrD\nYF3Sciz9hsVyWrVhS4OIBgQCgW50OjfJgfQU2P6/HZqbJ94ov89SCU+0fKfC\nyINHlrsgf1rydGl6yMJGl0nYptnf+y3gnjZ7QbvYSpfbalmUX6QlHi0IVbN4\nHFkEKPeEM+b3X0bOJdbjoP4kdxLWj21HKtrEpmjk/t4bcuv6zHtxAYIUS+Zj\nlcnB1DgLYSP/TkLQ4akaJdFQBgjFHDR5hwzRqm2X8x8MEZWRQtr5bFCVvFtB\ncIfHyr0eaSOchyjDwWzITPo3RNRnXwJ/gIvBCNrU99oXpE8NGnbCH0TIipB1\nKc7VnGP9JDMdmarYLKWkb3QqjOh4WvneSyAaCO2OGlz6H6LTssxjpFXPp0Z7\nIrp0a6g9xFuRpfXIX+2cs2bjzoMFxx9PC8wiGujQDKYK56lNRtQuprp/hcwZ\n2lzrUcHN9b3JcY9J8jpnYtw+N6d1Fbl4Ke4Zr/96BdWKUFycSupkVres6ofs\nQkBvVJHenNQGcCbl6oZWpO6Q3YOd/Lt6pT/XhH2cUScS+NrJ0n4tzYAxxd8G\n1s8h1fp3kxxDuCFQehjnmh3FUva0KTpfspQ7F3lyvDWtTm/5ufn8PEkJzF6n\nUyAn\r\n=CA/Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6x3p5PvyE5gOnMyBM0OxQMgTHafnkZcXUeekRUW8vDAiANj7eEi7TzB2Ir95lL7L96rG4a6usmS5u24I3J6ZueaQ=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1_1562152049034_0.22029990956009082"},"_hasShrinkwrap":false},"0.0.2-feature-change-capsulahub-mount-point.1562225519.0":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-change-capsulahub-mount-point.1562225519.0","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-change-capsulahub-mount-point.1562225519.2+3532062","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"3532062815ba5cc7e9c422772683857738c6c893","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-change-capsulahub-mount-point.1562225519.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-lffFpmwqDOTSIwr98Nzd4eoYwqk5n9q1McX9RnJnFDSYLnV1WTihOxMIwp5OUvsGsnEnigcHskz6FePBxWVqgw==","shasum":"4b3b6e9b31f0a99ac60981c5656fa340ccaa370b","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-change-capsulahub-mount-point.1562225519.0.tgz","fileCount":60,"unpackedSize":78345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHat4CRA9TVsSAnZWagAA9BgP/2QhS6KJhDp1o+CQuaBc\nd4Ev6wJtVQ0Pa3mfuyNz+QpdUVcx3Vh45023Oe6O9S8mUO2ZlslPdlPAeKU6\npFiNZTYe7moXWPHUO51+nOzHckzFrppUFPZ1DGcsUcIiUih/qsxqU79Yl3Eh\nG7EZ2iBP83ySScnsuZAaib/FjS7k6wUvHX12dk0b/4lBzxsxxy0rFuJP0EtD\ny4yRjzOpN0F8yy2AixA56/lyYGTMOA9QQwjC6ieRmG1Hf+X1kd4G0GXmBLDo\n2a9OfDZFXbKajfKkX9S4/tGTKM3xd2u/jG5gSGscc3pLYQ+tsO5hhQI9pH3c\njwwV+mLJ41BVwYXwiNlDw0/2IEzPNSkdGY831mTSEmU5JYCqPRjuZ6imeBHX\nrwDMGCAd64Fp2h3gQJq9szRZoADgNGXAd0CEcanKxyt/zMXPkoWoX5lNYiAL\nl03pDV5EBleaVPzOQb84rIy7kAkz9u5ru2ovuW6zYZZX4FIN2qJRoB4pJARy\nMjejsHt42k3jzj9UTlhLYUkC3Ed/e2C0Lo2p2TUCxIfpovHXwO33uT3dqlQ0\nJScw9JXU4Bcne+xC0MCaIutGRAvFbblwCx0mhcwvJeMZJlesTraRLmzgC8Cb\n8I3sLSBtPEMXR/YqUq+x62j1E0ILvLmD+z3MW7e5R4aJy8ElWwpKGhI8sRBR\nYdPd\r\n=GXBY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG8V0+hvv7+0Xl0Sg9oR7AEn1kf4ahiR5F8Y67FwBJEAIhAJULZee9p4ZJ7ngH4hRiAzklNKNAwbJoUrV2i5eSizot"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-change-capsulahub-mount-point.1562225519.0_1562225528058_0.9355985050070845"},"_hasShrinkwrap":false},"0.0.2-feature-change-capsulahub-mount-point.1562227752.0":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-change-capsulahub-mount-point.1562227752.0","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-change-capsulahub-mount-point.1562227752.2+cb948b4","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"cb948b40f7529c70db3cc35f1f12ec93c6c85ec0","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-change-capsulahub-mount-point.1562227752.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-1BGqTByiOijdiTxCtCG7uOSUCCxJHYtuAj0IWpIDdNfh7hhbBTSE3BU20naKaDobT0AZ+6KziatW2EbwqlGQOQ==","shasum":"eb5913aa1c496286d4b71624e2a72f0a0a1da10e","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-change-capsulahub-mount-point.1562227752.0.tgz","fileCount":60,"unpackedSize":78382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHbQvCRA9TVsSAnZWagAAPKcP+QGxY6GVxqiWGgnECumC\n9Vzg07SlXadVsdMGrBJRhsOEdeHDoc+M37EFNJrhqeWut3eXNn+3J+sHyci1\nc/sj8S6G03UoOniqVuxKUZu5TIQPZ/X+FPBu8Ii0jsJIZySfFGy7sjnqbYb7\nsVcuBKHeRobYpCvIgNcWvCB3PWY0JFCDD5Vn2KsFnPFvH2LTQxzQRYMYRAok\nO+7Iqkdpi+HPP/rw1PBiW8ZT9cp+eMFokBARnGYVHu+BUdS+MofMFPmpAidu\nZ3BrdQUimMMmb9koCgrcq92nLKoroIry0J20ISl7xR1oeHoHf16ZR6dZV1LC\nHrGBYAymFBH7qfjm6xzy0anYlF7ovBbg+JmLLGkXPa9AhGEoaT2EIWP9nfjI\nDQyMCXQIN0VYuaW20coCvHXhccqpCAsX11slyQ+8EilrJ3GC6wmtdR9CzYVS\n1fz/Lx3ybsPAk6cCJYZhYr9uo1dRebFNGKEOgEC04SoOxfyKONViCTCvn0L2\n9RyJFIZPd/Mj5Y1b+bJNS3G+TuBnTtbYsdxy33sVDu4BU9a36CGzPOWYzwWb\nEMabP/vfEM6SV5/8WTH0G2+q8Csc2rmctGcah2nrSATlUJNdtYaCMTelo06y\ngFBeQKxA/WqnOb9GwpvAhq32IM6z8k2pOEtIZUfH2EW62RJGCVbUJMrSe+1O\ntDTP\r\n=guhy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1qffgeA64gjUMc1E1X45FETky3DxYh0hXR6M8+ZmqiAiB+h7Gn0Wj8Ih/4FWGLn24ukXAd8MA4NzbjQh1RVdkO3A=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-change-capsulahub-mount-point.1562227752.0_1562227758527_0.33208169971367707"},"_hasShrinkwrap":false},"0.0.2-feature-change-capsulahub-mount-point.1562231829.0":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-change-capsulahub-mount-point.1562231829.0","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-change-capsulahub-mount-point.1562231829.2+93ac21f","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"93ac21f20ecb74699a517ce9a18394b933d19cfe","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-change-capsulahub-mount-point.1562231829.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-HvO+Px8FAHFP0G1sA03LIpuHsrL4BgRrPQp4CC1f3TAou5j50P0tY4NKyo2uWQbGA1MWcMjlZhT82rm5CPpEtQ==","shasum":"1a2397977d5f2d93ab70cc1c493a091d58d3b2b6","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-change-capsulahub-mount-point.1562231829.0.tgz","fileCount":60,"unpackedSize":78434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHcQcCRA9TVsSAnZWagAAWqIP/2G6K1PGQtUbWxVJxKuK\nbcbk/i8u30Kt7vCbKxydz+o3sdW/U7gnxwAM1s4/p6VF8UoIMAG9WC9errIa\nwLcO8cRMdLNsa17BiK/D3uhFkI2p9kDUS3zgFL2YXhkCo33E86n+TOsUnorj\nr8UmSzjSMqlzxt9iHU4Dt3WmeO4tvVmn2JuDlTtZJNzUD0WSGk6gY8tn/wVU\nIUghhZPzrfzRhYcLL6mXM/bD9mrShD2e54YRqnKfwEDIUo0clV+GwlGHBgq5\nLo/JL1hkJjEk7/tLJ3xjSvLCEJZW1P3Xw5AqooGNtaBkdff1++jKNcSqprgr\nJ04qTwReksSeEjJn73jieo+7xDJzrCfzAQcZFFEXBmS4eL4z8v+hPT3NnYLY\nvkgoPKDmD3pggH+GxnHKadBw6qLWBMyBkdorCby+TZDjN3PfdngLxjwXXSH4\n/X+cxNNBIJztgQ3pgk6tkWg1p+l9SO1o98n/1tZK3NXbcrfYGrN+YQBSj/e+\ndjOVWUDbnYcndi9q7Xmd6pgRblyWksbzv/yIYP+SiLmPJfpM52sII5LXGm1E\nnJmjmwzpzK9Cpf3rK1eyUJPala53z0sycOql2J/akWjZsoC/+4h7ZXEaQv+r\n2LCn1aCCAotcvu39OhqGZVCDkLI8meMUscK2B0/4y9+u302sLPxPhz344H27\nQIqz\r\n=wpYM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVABuUsZm3bKpkbG+0B6x1rXNaAeLv0qkVNXmimhw4lAIgYwPHIh61g4eQa1cFngRqmOXNiGlArXzr/CnsP/jVfMw="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-change-capsulahub-mount-point.1562231829.0_1562231836111_0.6915490226755385"},"_hasShrinkwrap":false},"0.0.2-feature-change-capsulahub-mount-point.1562236696.1":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-change-capsulahub-mount-point.1562236696.1","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-change-capsulahub-mount-point.1562236696.3+8618ee7","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"8618ee73790c43f19ae7610329a0b115b57ab160","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-change-capsulahub-mount-point.1562236696.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-Gr2dzODwYD2KDQnwUTJmGglmTAwXM1ZQBSNCBb8tZclITc6cqdOK4nBc3TGqErjHf9BvW4hAvCIpEtykYgjKbg==","shasum":"f8f13d557a5ecd93a73d109dc35e564e83fa25f5","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-change-capsulahub-mount-point.1562236696.1.tgz","fileCount":60,"unpackedSize":78434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHdcfCRA9TVsSAnZWagAALwEP/3TLl07RIz1WljrbSo+f\nPlsXC7/Qgc6tiwAj7Uw6o0nxTA164joRaPlzR380UcdcVdEho8XD7aqtL2jn\nwiX4ae68xXrgsoUcP52g+j+ORMMeiYDc9whUBXk+nv2qQ+ieqzkzR7ZS/CbJ\nX7M4FdyvRuyUjpqpmY1Qcz/5v+hfFKdc6ET9vmHyW7/V6Hwn0REvSjssHqsV\njPYVWUwePpfHCcLW/3+pOpyc2QxdAdMZ9V2hHtrGk5gAiIZEjBewNdFCGIgQ\nctby9Pw4vI/A2OPZ7zr6Pi/eQqmshi4qG97BFYIMKL4+7zXlNauv7034XCP3\n29/4E1EmCEhotBys07ryCXh6Ee21J4SUIj+vwIRf8Qqi2D4L4uqysVfjTfZi\nypXAYiaDkid9TXw8PU1p8LpAjdWiktZq83ywqXkdlAFNpwDaFavAruQEoNEK\nQFjVkTQsVvU2SfDeDBRFk8pTnNLvWUgqgz3Pj+zpZ0PZFzVPNfvAywOtLtzg\nzKJRU2lu0wCX/mHZvkM3DoS6ZOgIHhRMB5PFS8qItC528eHKUEoMcL4kbdqO\n/EkjcxEjuXkcMjdv1fDNLozmWdqwcXRmmTj1SKFP8YmKpWa03pxu8BsIlyDV\nu88KfRj2dbTh9oHSWNuWfH/lUA2E8k3Tg8RzpgF0azt0kVqsaIqS4C+qasHt\nmNR2\r\n=WWYE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhM9pTTKOIeYd8hyDOB6FXEaDhxTxGs+OTA32qEtfqGAiBjSRLk4AbnVbqdVW6TsIOZbAOW+jge4d6I1yQ1KXXoQw=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-change-capsulahub-mount-point.1562236696.1_1562236702498_0.8655801977989379"},"_hasShrinkwrap":false},"0.0.2-feature-change-capsulahub-mount-point.1562238689.1":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-feature-change-capsulahub-mount-point.1562238689.1","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-feature-change-capsulahub-mount-point.1562238689.3+c5668ba","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"c5668bade34c4fb42d7239008dc5b573ae4aabc2","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-feature-change-capsulahub-mount-point.1562238689.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-bk97XEHZlsOw/KwwThwtL9uJumwPkJldTCt4O48nTaAZoXWC8/wiHWwHsYcxglxpc6pKt+nHWdq20e2v7qlHww==","shasum":"9ade9208de3942af5896c3623c89ae3f19e70b00","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-feature-change-capsulahub-mount-point.1562238689.1.tgz","fileCount":60,"unpackedSize":78434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHd77CRA9TVsSAnZWagAA+G8QAJUw88OP7K4CSxMYNU0o\n8Q72oY74/Ykyt0nJSVHb3usbKcrWwc6uqqgyI/u3uX4bG7/QojLPo4HY0EVS\nxJAzjLH1AccVzdQ7i4m/vFJN75SyT1TX6hGpPLVS8RNYQEKuzxnevXl7djuj\npvkKB4pwk7wvm4miWF7FMj69MeG0KkPS9qzn/fKuouvrPOHXC1KNs6PJrRyK\ne1WAa7PXY54GxcttLeY0Lh0QhK9WuUqhHqF1s1FP4bweDcJNw/a5/UU78k4E\nlSP3I7ohIkKV4mBQw71uUVodvKQkyhFMHCG7IwF+bQ+5E9zzdaoWxMmHZ4Et\nk6AlI1u0kX5ywBQXaZLrHgwuIK11VzwKlUJtCh8e6+Luj4oaVgUJIStmuFBo\nHu/rxXWblmz4dza1l8VlgGYskJL3PJpJaA+mNILI2rpJHZBHmNeIsc6BrIdU\njNHCQ4ssb8TWffHGEb3NY5BCXLefrJYltCqsCb2Dpj5V81KYc/WAdQhJvega\n2Y9HNfFhlsyrgvRXgwnlbS1VKV4PtkM8Ts327JGoMRscE5kUCgz6AJeQ+HEj\nZdcCUia8nZpyTdgUB1hu3us969umIPJlmDB6EHVcH87CYmYMfi3KOh6NqJT/\nmLj86fhXEQr31TzDmeJ2HNIiiCxxL3QH12/fT77teM2ZVmCoL5ZZ42wXmlKW\nYlMW\r\n=nxz5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf1krX/+8bZelekyHZCCgqo/QPEvgSFiD8o29UjhWKggIhANoSSLP+jZKxALXsv/o6OaRD7AxB2LzB0+33X4vcklVu"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-feature-change-capsulahub-mount-point.1562238689.1_1562238714698_0.9751609125833807"},"_hasShrinkwrap":false},"0.0.2-alpha.2":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.2","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"cc32ef69b20108598dfa022f5942df420091a5d0","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-pMQ0Zlm1Ruez5pEXk9wGnnNv05muB7K+7LojO997KC8XYbxYdks9gD+4L3f+Sscrw4hbF5+bJwzdbJfbVR/1pw==","shasum":"d767b4afadf44ea38ee2d3bdeecda1ed4e6c5beb","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.2.tgz","fileCount":67,"unpackedSize":124008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHed4CRA9TVsSAnZWagAAoC4QAIkOEY0ZxYlC9rXdKT1X\ncIL5hv+pg3kdeDgE4B1U67mxdWkpsqtAndkgM8hkpmrfpiw0SbEbzJd1+D+/\nmUUTUtMVPFWi3DuKUQ5MQq56WI7qA5avfRdEntz8P8rWO0sok6wdJ2xJKAwG\n0ahOAkKtH5SIKmnV4DYw+sd7CGew+K7eNgkyC43YCZkg2FG+ISWNPjbfz3D3\n9VCcUzqgGS7j/YUOkn8IPNECP7G8jNNEec2Fs8XPIJe7ijTjXcG6fn8ZfrQx\nSs+HUYdLgJK1dIqhccPGmw0+f1Lso3uqx4733lcdZrBU8AZya9U08aurBaUX\nxyKoRW+NHVms6tjV/a3T7jne8ZIvvVb642na7N4o6csonE0WXheisU4i8u4i\nxUGUzSgVhp4rmZlmPhoGtztXwUn+jcg0DS+4GFhlcdD0NzKVyUcse6YAeZcV\n/wA9szJtEDPmbGnGYA9wjuov2TkhEkocyyuUwX0roaY6zMvAPpook9MIBI3m\nhFKGC+wUPsxUiW5x5rhr5z4f+ezif+gdSdMCdDQRDBgF9qPmEg6O7Azk03nQ\nzGvWenDhgSntB6HMwVzyAb0t6+Ydd8Jd6vrWJPDDW1YtPa0yzufEBbt2ar3D\n4/2FWr0vvmNzv4JdkJ7zQY+scAKFBwQ42niBb1/fX7NAl4Smn3Q8JJe5QpmP\n5MhG\r\n=7h3F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSH4EK7mzeXVj6723tGH8gBPtczfSM9tIMPImZHr5tTAiB7G292XQj6ycZq1QhJIMs39wUrj/oB6PM3pZ8gvqL5Yg=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.2_1562240888173_0.6417536969890889"},"_hasShrinkwrap":false},"0.0.2-alpha.1562249457.0":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1562249457.0","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"8fda934d2bff2f144843424ab3af2a1d4944d38f","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1562249457.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-JzuXjAuP7jt01xezGbuRxTKYLHxPgYZ9AR7qkJN+Dg9+uit7j0cSChbPRcfyq7Ay9/wSQUMd7JcNMqOW/GNqLw==","shasum":"5b75d70485fa77d5d7ed93170401963ebd44086f","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1562249457.0.tgz","fileCount":60,"unpackedSize":78441,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHgj0CRA9TVsSAnZWagAAurkP/A71rg2yRpFc9e8lJ08k\nZbaodTl969F1ZXQ0pFjeaJL7REVq5wkhynQMS6jmrPktHDu3Y68jC2ZqLX7F\nGngZgdGSPsgVTT+beWpvvVa6815bKyMu3wgF/8HETZQS3QywhPHxIc/XFcTF\npDolTzjmfexYlyINUW11lmp66iasNG60bZT5rIoKzG8O3L6t+zz5dM0xfQWW\nSp5UnGvfUsDmpywRew+UjcZ2xlrrR0BojWrSBDT34XJ30ZwIGMyyHtpzDWdN\n9+KGcpfAK52RLQSVOyPNTGcGU+BCjunZjYZ0wNUIkYmLcAZNEfoN8TIprIZH\nfIBb+jaLaSVfRgB1qwsHut6JaeS9YI89AtFXAGEmp1su9e2Iz7kDSIIIzKTb\n7hxdrPsnw8PIO6e42a72nP1YDpoCFCOOjprsktlKa7hnI3Qt2raLswoYIz61\nHkEgD3KrS5W5pJpRDTxb3MjKWG16BUw+F5fsMYcTyIjge5PWx2pfGFxBKS4p\nuEYcxttad2XxDK6PK5Evvzi7YlqnnaaBhAEICHLMe0B/3mlii5RiuEYMP8Qx\n4kbLWvE2Qw110cdpSPuTp/gcxYPmwEMHctBggxONYWjCjDhVWH1cUf5ylVY/\nt7+N9Ym7Uon9eZJAjip4gR1K6CivY+2QSHo+MbnIF5ypWrba8N11Mnqk592P\n+OGt\r\n=VgG5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL+CykEbfQZyfedtpFAjfJluBTbSJ+qtJyfvzCKhEV/wIgN5pXZL/3dBwuH/1jNvmXUZHsTQHXIrAhq8J8n1UqPYo="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1562249457.0_1562249459926_0.9741415410419236"},"_hasShrinkwrap":false},"0.0.2-next.0":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.0","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"03a06c65e2bcf252c61cdba6fa6a4c74f05ca1ad","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services !\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-Vog3YKMzn845gs/49E5t4r5suBNFlFwxBWJUWaTh1Un+L4gizJKTTSiaH5KBqEL3reVDBTVi9P0IgkHH/6Xe5Q==","shasum":"4bc225f42c1eff6acc24932a754bdace5c221929","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.0.tgz","fileCount":67,"unpackedSize":124105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHhKYCRA9TVsSAnZWagAAI14P+wfqW+q4U7VH8BJ+n1y4\nfmUpSjpXeSi/SiQ7LYFZ2aCQL3TGa8vGnAxohlkmcDsvUDq+avQnQex4bAPY\nTQnN4zAnHmcSCgAWUFS/6uT2RBY19lB/vKdiFKgF3UqZF6Xg0P3bPoAfmoPA\nuz0eKMyZATqo9D/CXwwJhQvjRLbJspMqyDmlzF43tx3GJaZGEdbS1MqugPbj\nOaQCMLttopqobEPxqRaqWwXw7s04dq1CAkmNkwk/tYm8dK/rShvVOmj8zDhR\nKTOEQ//TLa7020AuL8oM8lg/b0NM5y2yUqGCTcEG3JPFTq4TLuTBXg3MwHof\nP2cH4KJNuvPxOFzKJoxz2A/VYK+T2FmEswwkEt7VsUrl7HqjnMaMSNFr0Wpr\nhGpq3rRzJoNOUWxCHclbOOwjCWpf+a/WFqGkyoQbhcqoLUmI9PmxLR3XKg0K\n+5EFQotllTt8brT4p9FyO3sh/FJuMhFHqttTz1DXl/gJAxv9XDlP7GfRpfaQ\nROTCV4Y179+BhOE7vkBSI4K2YWKHWE3O0iYpUgeXnoRn10Hd1KEYi3dc6k+A\nzqCnU5QXIaJUPm9tDlJpGjv/jla/DF8KPw8d2QBxAMib7yng3skrQOQYSU3Q\nImy+UwbqGbLfDdtNdvfuSR0uSNG3iOOYgZWYXZh0atbRPk83aL7klW0shz2O\nqOT5\r\n=y8EI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGoTkP8RCuyvybwSJz9jqownNxlMBmzJ+/fmStV5LZDuAiEAjjPYczFh4oUOAWBObJbT+jt504vUF4t5q3jK9LfZ9zA="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.0_1562251927975_0.14959613718193498"},"_hasShrinkwrap":false},"0.0.2-alpha.1562256599.1":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1562256599.1","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1562256599.1+7b24ba4","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"7b24ba458a6624dacb58ce7f75d7e41c981fb1c2","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1562256599.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-FVJdkSmuMljeCzyx53WD7X6SJiCAjQ2kDGz6MswgKnw70f50e/GrWHj6t2ruN7qBrrs/Sf8oWQ8KvkfrsKCBYA==","shasum":"f2258ef4ae3c3e34f9f11b6efe2cb322f4a1c9aa","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1562256599.1.tgz","fileCount":60,"unpackedSize":78459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHiTpCRA9TVsSAnZWagAA7rwP+QCi0kBEgWwhCalGJqZQ\ndqwkom1IRqkjG3B0OigBNybA9m07B1PlfyFjIT8bnKKW/hjQXzu5oaQaVbiD\nK+TN6ByCKHFaF0CR2IkRfBBPYpIeHy+gk8q+1fZJGUroaBl6bU0getim0TFj\nxts/cpeWMsNLVDW6XY/VisPnL6ZqqXG3z+za9fmELnCLP+i5Wab3Z1ofwrbZ\nHKYmpMzwm+XagQfoQ11TpuvA504YbDbREVG0S/ls9SoXMp0MXklZpxPIE7Uh\nWxd2XHvN+58oPAYJIyvMVeOjxlKole6Mq5ojnNjF/0tRpvzC4kWbl8sEDWg4\nyjD7c12l/b0BNt/0bU2OaxbSEek/MkU7eAAfoFt6u9ba01w6IzC95/sD7dzI\nwrGkzimxreEvhmYN8IA8OQo8+C0VveqOCESGzX3Y8QJ/7J4ZK6wzOafb00Bz\ngh6pTeLy+wJ9hFJ+S3TsnkWIsKgnBsg7WcXPn2FNvYteJYl5GYkELCOFuaao\nAZsd5QAE8gLiKs46dJtoICsvhlA85CV84sjcP7qRqK3/IInGaiE0GzMtSQFP\nq/IsJ04mAXdcxP33Vta3tZGiRLheTW0KoSqeaahi9Pl7g0Rfp5SqozhQCR7v\naFQCjqRAmu9tomBO2R/HqVXeSSbVdIPzyGc9m9JGABR3yTgteOWBjtnuSFiP\nl/e+\r\n=uv1v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcZVYdII2MM3Ba0fzn/XPsIkPC0rMNbxrX2FY9eZo3LAiAqoiej+BGnPJPUQmz+JMPFjv3UMSFF2lZsc+2TTIEy1Q=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1562256599.1_1562256616952_0.12601355155426575"},"_hasShrinkwrap":false},"0.0.2-next.1":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.1","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.1+260d8eb","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"260d8ebc03d1d19838f4a533e671be3869c87d47","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.1","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-KR8rOh8u1RKscoZZgTga12R+rrzC4JdpbGquMnauLT/doBOa+zV8SzQByxGD1craBKIpKWggm08MqSGoBKHIGg==","shasum":"b5c1ae89334d6b05d4349ea4ec1bb363e215bfea","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.1.tgz","fileCount":67,"unpackedSize":124111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHjc7CRA9TVsSAnZWagAAO9YP/i4eGyRXnzRTu9mvN0G3\nPt5oWZXzfb7NRu4uLHxJhWc2uBw+FqWp5z4/dDKH2I+OWJVN8ultFV+qsi7O\n8Jko0W0ZTvLBer6acLc5olA18Tf0JUuyRCIPNT4N4BGgjyXACUPI/HnlmFmv\nh9IIyxQWBiygUE9wmWbGIYToRDQA1sPk61hCnMipy9sDEcNfQNPSfUinVOPt\nPt1Dui+DH5voOi3M0EoQHs5//gRrv/c1v13ozlbtPgkrqcDmu0wY3PZKuFVU\nYqsyTgpOVSjwrRwzvhIma+CVK6IPqU7ZwMySeSCXA1UZYge1ls5yNb9lhO/V\n4VmW3tU1feRqWWzLIuM3IzP4v2Q3mzOCNS6k5nz6y/hny9kztzOz1ed8iCuO\nMyWXhr6br6vq+WstZvasnxQ9BpfmDs4dbaNcmM4UBLheZuGEsWuy4APOSqi2\nVBqIUVsNYtUSuMN8u2ZlLEEuKnIEQefibLBZxbw5h8iaKT6TSqvhE0YaRQkU\nDaH+bsfcFHmnU7CZG7/YmjVeifbXpUTpyOIeQ2SkEGZbCSxrIpHJLS6tgYth\nll2ooHe8tLrBIB12KjUU2hKA7ZMaxzGDkP+ym0Q9LD89AESDb6FcfvLFTyfq\nzokpQ4v4Qmf+6cd0/cgNVBygKCOo7DPV26xkzMlTnxHAqYNxj/+KS7oW+LnY\n2tfK\r\n=nz3r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6HJr/d6DPBgL5meNinl2kI078T0Y76nn7a5IYp3WSPAiEA3mFPdP69BSI01mJj8F4Wq1IC8BzbBoktMZLTtzvBmLw="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.1_1562261307033_0.02234475550927084"},"_hasShrinkwrap":false},"0.0.2-alpha.1562313281.2":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1562313281.2","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"127cb545264ed0ba66f70612b210b54fb1c384cc","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration --port=8888\n```\n\nIf you want to generate a build with html and js file in it, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1562313281.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-HQV6h0ReFOg+5hkDEFjPjXJrrtOTXw0VfAE/xJeeouN47UFfIumZu+LAM6lZ7FrfEafPHK0z87ONbEpqNoNNJQ==","shasum":"3df161b63c87f49c0bd2367dbba8503b54bc6dc6","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1562313281.2.tgz","fileCount":60,"unpackedSize":78867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHwJECRA9TVsSAnZWagAAjxoP/AmytMFNwWDLPnQ8yi7N\nbEAx+gpo3i/RsYEph+yaknBavZba9VYFQRT+uUrc0S1mzy9Kf9iwXeHyJlgs\nnd4rVmOhgeDmMR8FyUG2/0A+b4MuQgOjMYnzSZuJGAUQo5z7vcNZi5SZadPr\ny3IUHaUTaAQ/iXaP4/t1FExPMKZACXOOhcl5/PlXdolBpKp1Wft1yJRBdRNT\nm2yf36ev7fqC0vF8UjNafWNHsMcn+Q9+fuyQKGhtyuVtiwlOLVXv+DzBx7KK\nRzJ93+J2E1H+WlO9e0jBax9bNzS+5ne4zsVp0tnDtccXEvbWuGEE33/TE1A/\naR4/nW7T6Aexj1wT42EhnpDJzlE07GaVp7ipSbMWMsDAU+FocVpcSpFwjw9Q\n8mLSgCb6NaF2q2h2a9A1EDYB1s2Vr3RtxlDUuo35d3lURupwod8rRoPZrp/B\ntxYu2xN8cL23mtub3eb98BxbHn29PHap+Ks9ZtXspfqFyFYpC3t2cMlrUtz+\n6K72HOIKwIY297yYY2H5xUwypeWmKt405f+6I4VJz4g6oexPKeiF+x2EatFA\n5ymTGgxxlVOQrbwiVmijUiYDZFq8DRog0qMRm3eDECqo9lfXRIq+SKyWQO6E\nVNdcUfgn5w+kS9L/R/TRaHFymyoSvELoOEUBfSM0MnjNWz7UWgNojpxs0VTe\nfkny\r\n=fpLg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAK2v6toEfktfAhea/RCrpKHIG2H6NFX7VlyejjGAGcmAiEAzYoe4jQy0niIxTVvA01hAwfHPRuwS+hy9ybhjzAQcT4="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1562313281.2_1562313283645_0.12153116161342803"},"_hasShrinkwrap":false},"0.0.2-alpha.1562587243.2":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1562587243.2","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1562587243.2+6513058","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"65130584d61763802f4888e6f40d7d6c54b85c67","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1562587243.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-AZsxbNi66OO3y7RHcz2mS6iBQiUnxP7vgcg13ch0yLWyUWLx9kBaNQmYwGdqKi44mI+qSKsYCrsgKOrxlciL8Q==","shasum":"834ed76d785acf039322cee2a51cf10488518ae3","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1562587243.2.tgz","fileCount":60,"unpackedSize":78459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdIzB/CRA9TVsSAnZWagAA5ZgP/3IxV6UMpvup6V+SgXjq\nRB0HH5fioPNWugFIprPN4EiUhlNGInat2O1J9YIGXFGqPBUV/nrorqanEB4O\nPgr7VOSA0FCQLsm7F9wsN9lXS3LooGN5fWZVc3c9wxqC/tFFm81hMjHta07o\nDyGYhNclQ6iVM4VTyLqxct9KqBWc26V1xq3YZYp/Y/8XPIAwLfGVaPP6c+FM\nNjWe6NegRwWCYX/hfeUBMBrwRMd2vF/VALzAs65qgJM5PYsi2pbtj9jH6e/P\nSgzDNZQ8/h6t7uh4XaYWu5TYBijNPFERetpMjWRKwdnncsNaHtiE235Fe0gw\n9Vxq+IP1O52cm3vsU5b0WIbZlNq2/+CcFJrRoGw2bkm98JDf5PqTV3Rt0ObX\nxEh0GsA4hzDFRz4/mllHFdXmrJqb3IeFSv7oPJsqedG3W18nF5KrkWTa465i\n/Y5DACcvxdePKkzeEA9QMZoIfjxkqpkqXulkfM4qsif7ZFXaNbG9a96b6Iaw\n59KPC+U21FMjzuWsZaJ1xjz6vVGs/XN+nXGItLJtC5Ug7Sh6013bIvBO2xgI\nc4RDS94F7QkNAmKPtgCkR3yMMWvV5QRzvAfcEXrKQGZJsz0hIVBH+CmvBD6A\nePLs2VhMuUd85ZL+3J8b04hL04RI3nMGM5xuEgwpGuaOZCbMVhuOGk3JDWO2\npNZ1\r\n=/9Iv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG1BPhbx03X/itu9QiT595Pz6c50lUoyuIY6bZCmi2ZlAiEA1yC5uCOflrGRdLylh5xgw4NqJhI34X7ZwuInoThF6eE="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1562587243.2_1562587262953_0.638803714112838"},"_hasShrinkwrap":false},"0.0.2-next.2":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.2","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.2+995a8c9","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"995a8c9a2c9ffdb04183b4d78c25391fa2dc86e2","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\nIn your project, run `$ npm install --save-dev @capsulajs/capsula-hub` or `$ yarn add -D @capsulajs/capsula-hub`.  \nIf you want to use `capsulahub` command directly, you can install it globally.\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-x5fabZvvSD4b/RO3YdY9H2WP8b8ZKFr4a7GG0x3DFGb7wcNQjZgmAlcbpcjOjekQmXXlXDe2BId9Fqd6K9I04Q==","shasum":"75ccdd7f1760deded5a5334082cafde4caa168de","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.2.tgz","fileCount":67,"unpackedSize":124111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdI7ZaCRA9TVsSAnZWagAAEOEP/33m5uoymwUkXIhcOyZY\nypYVk++O1XH48nyB60/33bgD/mRvbamoY28t8/7aJv6CRkx/LYIVfLpsn9ha\nNe/Z5ql57jUMiflHZr3v22TZ2PP4FO9HtxxF4sMlAL21i50Ta7WY17k/FvSV\nGObnxjHkZzadE8j4VuCe9tYZfHvmvP6CpOM8k854UHtFxX90u8sldBUDsou0\nn1dV/1Jht+MWfNE6KNUPesczqsag/TR+qxuehp0xFmQY8D7hZtQN8Te2pvk3\nu4WlDVCo+K+aAMUc01w081g6yTgAYMWUhZ15BuWcO0pxJmuFRd9oFwY6rgFs\n0h9VP1qaN7S8pGothbAlGRqewepQgy0QKqtf7D3fsS3JggTIDu1Wvfp/lRsE\nXmPseJ0ZN8+cAJ/qpWI5oK3RFLExe/cfaBh9MM0SOFRUH4dLVojB4mSDs2hp\nZZuRK0aTBOKZxHz9auU3IkVGErngbhjGuMq/XcpwZIG4dL+LhC64cvsrFaY5\nd5hKXU0RUMxDBy52P5kG44sCYTdEBkaFrOK0E+IC+oe+YExYef72TejRwlAQ\n09lJhmoewBvMyp1fQ+uyOMIPKKYbGs/YsiNGOzXn3bhtId1mQQl7LkcqlRUA\nUvlNpirCIWN7Z2K35F/siqmi0MgOWjzV9GIOxeTEtQwttX+rDBDcan0Bp6M4\n8US/\r\n=0DCL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8t2xPTzU3YSrzmQtKhfNsZj5ZGSbGICLVPEhrLQCaqAiAyMZgL+iON/E55PkYhbJcrOKbgiiKU5/ut7Xj2u6quFg=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.2_1562621529627_0.23609307326118456"},"_hasShrinkwrap":false},"0.0.2-alpha.1563195000.3":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1563195000.3","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"586fb0a45458931367eba1de56f3279150874d81","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration --port=8888\n```\n\nIf you want to generate a build with html and js file in it, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1563195000.3","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-Ji0I6AH04v0k31+z65Q1V/Hmm1Fw+iGNZ0d7MmcaJL5nLlbE5i7ry6kTkFvlazP47Vf7W6eDZOK2Q4EatvMwvg==","shasum":"9fff13ed2ba24e056455b7136041aabb89fbaffa","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1563195000.3.tgz","fileCount":60,"unpackedSize":78867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLHaBCRA9TVsSAnZWagAAAXUP/1PzekQgQXQ6WYQ14TMi\nmbPQBagRvdKvOwK9hPv4XkG3gQQdZJ8d1HW0+wA6++FOuvY+46Cjj4MrXGzq\nvxKvK9hmGSLyDzHhrYgFRReBny2+QcN/3i8x+VsKvXMXkz3OOtM3YiTiQyOg\n/zbnBilTNUzFFwHN9/UCsz0msbVMnsfl0vyvS01wVisJe3upUrf3z+5UuBIw\nZS+MXLn7Wvvpjfo970JSo2atOpAqd0DQw9ycR9KO4mrVNHcLxXjDSsTloJPD\nsTuC+TVChvlujnyUPa55xSyC1LyuU/n9mLb7zYzWpJvSxQNqOEyyyQmW72cF\n8RjBvs3IO7YaM7fXco7rVpPuYgXpOBzyWenC7ianwCs5A2HSjVPKx7yt/9JA\nC367vRceRwABaaofmXK0hYQpiMR2nCTghEVaRx1IKL0EZhvkgMEIL9pp+2tk\nVztkWqDHjJAzN9mZ5l55HRg+1wU49rMuy7VPG+SsJHArBDAHY4WD3zUgCvbA\nYtVpzAfmKVia9n7EbCt1h8phH0AZgp1q1PutxNEDqKduWAMM9RaCsF60rXKa\nVLohRXAB6tLdTqHIU6nuNqeaIm2W9w9pgu4dHG9RxV9aK14mHOFue+JwLy9F\njD9VmvHKypnfCOktIUxMofbweEmvX2dSr55QHrRKpcUHWxzzcDmTJG3OH9jo\nhxQw\r\n=m6Tr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExvMbP96q8ucHKyWJwwiug6l98tAfZ1pnK/ttsTZ//NAiB4ZHr77Rnoibszu7kROHcVuNEJXWA23q7xJfUzhJssgw=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1563195000.3_1563195008236_0.5383718387826457"},"_hasShrinkwrap":false},"0.0.2-alpha.1563196331.3":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1563196331.3","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"2f4e413fd7f8c33a157f78c4b0aa2019d140c837","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1563196331.3","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-eLbp87R61Ktgm2YKFzSG1i0xbLZyKl2X8EIPLr72cyf6d7o6vNJQQWciM/l0Jr3Jsm/XHnqDyT8MvJDHYB9TrA==","shasum":"d1a90f978fb936c9aa3e603a6a69aee6d376e4b5","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1563196331.3.tgz","fileCount":60,"unpackedSize":78880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLHuuCRA9TVsSAnZWagAAMKoP+QAvC7rLaye1qoyh4Ddh\n49i5h8W2Vj/FO71mn02iPs0UzI16EfHdd+tdfuwzX3bPCUESjsxqk47XdY2i\nUSrr+lnad8HhZTc+epX3fzpfgkMX54QuHGwrjDV5WCwX3Dm8ChBWXR+I8U/M\nPkVsPpp6fnMJtBhzdzxUqwF8RCuqnAAFIQ6SmltNkSCkDF+EfqvFfaeIuZYO\nWHbCFSMtc2QzjuT/HqIQUb9do6unLuZz6ajwKXxnmE8vD3fsjmvVm5SsCcF2\nxjw05m/OTobgCx2Mmn+stWk4co5bdCIw8ebFd3FnoJxXBhXyTxTxFHMpiBNL\nL+SUECEvua0EI2rkuPJCnkXFSgbJrb96TpafS1tnuOdKx5NtkBGMsRd1gEzY\nO0yyNKVwCjhbRQnntxsXaR951/ELMQec2q5SZmeGnLZLECh6YZH9j/3MIALr\noUOzYRR+2WGuKfBvZX3uRvALCAxHQ9iWN2vQJYKnwvy8zzj3eJQ/78zlSV69\nfL8/OmQOsVA3tbu92GgsST+pe9mK8xtM2cANhubU2Qg3n6edLPE5IBtY0ZvD\nnhGnsHb51yJLbJz3owflqbKiA3/Gmjro3xRwFx2xIi/IEx64IgNbifXgh0PW\nbEMhEhtGNvvr6b8b/ZquL6JXa8QePo1w2pjaGXM14TM0j/85QsQmTs1DzlOB\nN4pa\r\n=hk5H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAww55Ogx9Fx/owUplgRElHWgA4SXCT+AHE8E+544SUgAiAuDJ5ToyYSxCG58sIB0GxpKlKB+mDDAEpp/XWVSo/2Cg=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1563196331.3_1563196333867_0.1244175077071199"},"_hasShrinkwrap":false},"0.0.2-next.3":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.3","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"aba8ac90dc3c2f3dc0262c565ecc32daad840147","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.3","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-OwaKMf1l/sOpKnWv5vJLcjAHgRnSg/1HURN0dgAUSHZmNCBRiAWt4iPeQC3nXgQtA2Sz3FaKbYHwlKR1pnP8jg==","shasum":"73cf478b0bce42c57e9397617c63338a7db5aa8d","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.3.tgz","fileCount":67,"unpackedSize":124544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLJuxCRA9TVsSAnZWagAAVw8P/3tkdy1dv/7Vc4WLWv9m\nAGvFUWdWu5E/IsgcFb51MD01Y9To3whRGgU+UHFhRxepmVqayzXsDnjQDpCR\nuWFwU1xMFJoGXymjJr2EXfGCNRxSoz9JIYMFdGaCqX6yRYZPGkgn4PS3OBE/\nMUYeEcoh5Aa4qMwOsaYwjFK3qAB385wCEH+Sltxme3zddsNfkbzFRR/LaK0e\nmjfcHvsWGQRUaiulGjFp1YqeGHVXY3gQh6vWvGDJk5A66VgVDBVcFH487ET4\nYeZ+nSLrz1aBFefT2wAnHhVqsVd+xbqyDb9Vc1GLPzLPcrgKH7Brvv0iWYDJ\n7nQI2a2c6lYDSTpUN8zs34VbfbTm18Vl1cxBkcSWOoNCJK0fl3IaGszzlTWI\nimpDTOcTpaqcUPJQQgnF0klGUcLSgMFA5b4fOdi+Ai5UpE9uwJXlIkqQqySr\npKdOd+oG+9a54zn8avrzh5ajlUgbiUIrTBR3SB3+Z86NwmEUgB5W7tL5QvVY\nNBLks87g8DQdhue9+o8tIvVBu/6MveVRq3HIJOaR2d95moM0TpjXW/3Xookp\nB2ZixsEZtBFLfQeC1kBBhs0ougNF+pA7a/K3yPWybMUI8HQdvMQENX1mkXoI\nydB7rKzt4Jph3vPxQ3ilV+X8on9mraXoc5G/xoZJI11idHQyH6igLqxXhXWq\n0S8J\r\n=jYil\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkyOucRcPFphDI6bf1XSPioAtuLbGqjO02bkt0gw7RKAiAqaK2CYSwtq795serWj8MWA/1jc66Ksuo5g3KacJFUZQ=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.3_1563204528918_0.6789228172970647"},"_hasShrinkwrap":false},"0.0.2-alpha.1565077029.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565077029.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565077029.6+0a0ad52","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"0a0ad52b40ed85012907ba91fbe7e27e80604e0e","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565077029.6","_nodeVersion":"10.16.1","_npmVersion":"lerna/3.15.0/node@v10.16.1+x64 (linux)","dist":{"integrity":"sha512-4IWQVQMlUWY5oeEg7Pby5lZO+k9A6vwcwuiMeYsobRO0dXmV5LWvY+e1ghOBuhPGgViAB0O/KECBmOe5WBFIhg==","shasum":"3e8fa4f068c5c594beb2bb45bb6e85902e213d75","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565077029.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSS4sCRA9TVsSAnZWagAA/N4P/AtMZRkhp/TlKt29ZMFS\nq/1yfyRJxRkv1kZrht6crNQxE2/ks6yZZbaypii3hnbDGXcuqIcUvqcK/86p\na6eBhmdUoUD5NvWp4FkHJV7xeIij8yVl/bedVplmt7piiZm5Ip4EV8FGWvNS\ngZgF+wnZ9FjeZSnOB5NBSPK+MBucypDT1ZBC2OSyvYNvrN8ofnXmDWBQN8Hn\n90kMjQuR7D2Oeeyztnzp9sno9KWXSe/Od9J97QJG2A0EIsjhKF9l8WUAYOzb\nElIRMwk4Afkgmd03l0IXWAyArf792bWxDCZMrE8oV9gHFcWI58jXEqpuR+vS\nivbmD9bntUMZDShHbWlt+c/DI4HYRotpZhlZjM8nFJ3wLdY8WnlFpvZ52LxD\nLDOhB14ye8IAyPZHGm7+Z4V/A/B1rkiE7T1PoJDJxMZ/e+MR8agGOiK5vLBT\njhRCxOuOjpsgDbC7DE2E+FTua8XFbYAUwYlUA0xX20TLejnbKNXE5lzV9rHK\nEA7SuJIOYgyu0QD+HISJuOSFOE4TaMctRXIpnQfsCTZb9S77pI9RmJtRzx8p\nVv8+oc8QC/4aGLu2Gm4NiSyFvQxZmHBK5qilE1lhwPwWiuRP2tcCzTgDbQxb\nnXLx71lxbqnLnGR00UdH7JhjQGVQRXid2hO2czc9yWfzmgkkj8N65B7zKirz\nUk35\r\n=R/V/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGv/zchvqRgPVcRORtBJxyjF73SphFuhEB+ii7W8RNVXAiEAilCqqQDfaDaCOcUWZ67vk4TBmve7XcPlO3fOUDKeibE="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565077029.6_1565077035529_0.8718109265202749"},"_hasShrinkwrap":false},"0.0.2-alpha.1565077289.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565077289.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565077289.6+4faaba7","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"4faaba700dd0d2f10aa0a655d57083594673c195","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565077289.6","_nodeVersion":"10.16.1","_npmVersion":"lerna/3.15.0/node@v10.16.1+x64 (linux)","dist":{"integrity":"sha512-d+FWVysFwi66Ul17aEsTMQkSY6P8gYzgDeJTT4lWleQtuc6w5l3RZDojS+riJvdQlS+/Y1ZHxEn+m4LyAUGIRg==","shasum":"863ba8a14724ee6f1aa9d338c9e0a469309dee03","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565077289.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSS8xCRA9TVsSAnZWagAANowQAIX9yd06jFo/TMz6qQg+\n75aA1XYYWcuLo/az3QU6sm1pgRYNo2woaq8UaFbvTNXwHe800ZI7Hey2iPC3\nOKd3XWnmOdZT1dIzEjvIaKef+Pietd2OtTPf0RtcKuySXkNdM6UYqmJ5QsYl\ngG/H1iljBZiKUL9xwFPRWEyuqFBJ+8z7+2TLphKg1UF1+05UF9INebyy1gaR\nfTlHAUceOhqnl0FWKdZ2Cj3KqugzaRd5KMN77ASpcg+dnV7dhGjGPZ5K7PL7\nToD2O7dasjGf1weFfwEJ850iac2ywqeOLyrISpYvyQgvz3+HHlCBNLMixtLq\n+WEfAhGfYcYBsWF1iVwo3joaYmxPR8pXEYTyi6hCbIQHkXlfk7ASlQKjIxdd\n2CzHLfUblu36y/w8Rli5+H9Z41GN9HGg8y2XjWKbVHuSbHWK6ATjX2VPd3Hq\nrj7at/4oQCSxcwVfEJSoWYCv7VO9L0b2oHpyy3RHSEz7VCqYvOR7kg9IWetA\nZ022woIXkJez4Dy5pO6nkZa8XS5L2/sNFzN9xvKK0FJMRIXHo4950bl6kT+4\nFPQNNbqwP2ujjTme62gwhK8BfipNnvXM82bT/KStgpxwx7C+tSrb02zetEqT\ni4qeQkQBKzHMSB4J8NfUBwRcqaXAY58M8h+xQa4GUMh5+M5ki46OxVEGZ2gn\nze1I\r\n=DV5U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCegyjdgTcJU6fVdPt5sRIsE5ykHnahMddTouTRBtteqQIhAPw8PwnB0TpSVWleV8+Hev9rKJAXHREYsHCrCT0vKYxT"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565077289.6_1565077296417_0.36226642200178016"},"_hasShrinkwrap":false},"0.0.2-alpha.1565087923.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565087923.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565087923.6+9dcf498","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"9dcf4989ce758734a3d8ac9b46b33ab7aea29ad8","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565087923.6","_nodeVersion":"10.16.1","_npmVersion":"lerna/3.15.0/node@v10.16.1+x64 (linux)","dist":{"integrity":"sha512-LYTm3ra7dM+VdAmRfKaxW8jZ5G5BTe8oV1jZNDcPgJkML5x4g/o9urvgGJl9OQNaDTHSerME2l5X3Sn1ymX3WQ==","shasum":"6918338ac6cd43620459785f6a2a61fbe616bd29","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565087923.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSVjJCRA9TVsSAnZWagAAVH0P/2cSAO/Y7bGM6UgH+1pQ\n//C/WudbbsOwVVLl4WZK0ktvyjJWlnEX+TflRgp3LSFe+AzOo2a/tXO+UoTs\nGXFAVeN+PfyCc+8JRO64JCUcmk+ffGZN+EXQJwEj7i3hEYG1n00z3gbsOjf+\nJGgKnlSEpAZiRwXrwcu+b9X7WvhPwzvQHK5WPqaicca5AF7221cR+GSPvfoM\nYyEZZDp9ouk/tbiDnZIBMe2XxWMwQlnysfDIkSGAS86ywdLvfUGjV0TPrMmv\n2WBFmsexsFrMaj0QroB0FPCz4jc2+dCHwaQsPsvYZzvTdpTFE32NTsZl9g8h\nAYpk19Bdp+oe4bTVtPXpaKEyr8exp3KZoOYRrZDTJByGrNFNKgcjG1fyKPwB\nYsmVhJQTToZSCAnJadMMIKNkMhpeU+yFGj2EbIkGlNnxDTDsYrXQZ51s9lM4\n2YEA/Doln7kqGGpKkqOzeDKYmFiGcEyyKijp3DMp0L2Tx1lgtJuPsvkHQHE5\n4b3EwnT2Ucw6YSxTO9hu6KUWjtHcjPQ6aEvn9lmkHtg/+JaLZqnUhK9S+Ecj\n1FjDLcNPhkKUvCFouI0AaEFhH0Xw8rjeIyZ8gFU9HvYI/+yuW0vWpEtVwDcc\nBhSBGGzMDeIJVV1yGEgUijry+afS6v8DjgiO66YUpURzZQ+NztxAKIRXusHl\nP16W\r\n=wFpM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMFYrYxvO18wDBEl1N4cnGvXhNBewbR4Dq37JFWm+q/AiA9jjchpF20Q5xh+RrSjUgie6K8e/aZPyin8Y4DyPAhjg=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565087923.6_1565087944815_0.9038049570482447"},"_hasShrinkwrap":false},"0.0.2-alpha.1565089269.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565089269.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565089269.6+0359e00","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"0359e001ea363167799dc9d9dd7d621381c793eb","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565089269.6","_nodeVersion":"10.16.1","_npmVersion":"lerna/3.15.0/node@v10.16.1+x64 (linux)","dist":{"integrity":"sha512-ddWPLOdw9FuKN91YGWfYVcT85iNBpSsI6KY9fdde5JhL7i3rtxvclm4Ror/665CFlOYqDFeNSnTDgJxw5vY3mQ==","shasum":"752f5c9e48686ddaa0331dd434cbfbbcfa497664","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565089269.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSV39CRA9TVsSAnZWagAAeoAP+QCKAvRBXEh339xnOISI\nlc/Itl8ex64gOgOpvNwQh+gKcAUjiwI4Dkl6CXmo3H7XwYKJHmHpjKj/zTAN\nmOzKxAeSyBV7t2z+e6u9DX14roRTZC+2CUy59nV7+2S3IWKCWltzLf09ZGeh\nnPVJP8/Xw+b29jnhw8YyUR58ucEgY0+kKS02jAVVs4tS5gtnU6IUYIWIFc++\n2myNFq0CQ8ishxK383j9O7j/+z435v5Oq6ykaGdoBN7pO+1Kmorz6Hi2PNXX\n4nZarSa5AGGzkWcVPn1jWKhhNxw58tmckZsNsu8XW6VJmlLxKXFMRa6aujc1\n+4mi8JVVApLcasIcCuYPeAPxuVr6MHKO/V3SM9zr7im2uwqU/Zp80wadNFN8\n9Fq2Uoq6dyCsKMh35742WLYHP1TyxAtyMiEiWRVmnjRRFtfZiyFe4aYpYunt\n7JKAI8gjEpiSVHb2KmYFTD4Bdv4PLzJe4U9H2rUBhU3moefmHVjoSRjqwIL2\nFcaia9A44bqOvYWrUdZx9jmFObIwwZfqtfV6HUWQLEJAjL0LpxwNyDq/tht0\nu1Uw6a9JJwp22hgPVEEPw4PmXJijcNh6xiXWAEWyd4V2jVbAV+2iMyf7xrSg\nuqLhaJByB7pRgF5iwLqZ++MmvdZpMtMe2cBds6r2gZUU5w7H7WSiJmFgvDxY\nnOQt\r\n=36FY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4h6NK94tapzibYU0WjUBZ09wzwHTx7st3BIK2WK+pHAiAouxC8wbroLSPl2zdVOooxcfVCiEPB2ES8iQp/lx/iEQ=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565089269.6_1565089277274_0.9584661500660157"},"_hasShrinkwrap":false},"0.0.2-alpha.1565106263.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565106263.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565106263.6+1cb2c16","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"1cb2c16f6b8c52057d42527d6d49babd9e04f2c5","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565106263.6","_nodeVersion":"10.16.1","_npmVersion":"lerna/3.15.0/node@v10.16.1+x64 (linux)","dist":{"integrity":"sha512-m1oyLJo/yddY/1NXELpUIIaK4Qf1VJumtsIJhjeciqq7hI7/ZjFwVN5/HrOuVGl7Zhp294+JBs4+pfEzLAPz1Q==","shasum":"b586aa207c31aeee081df30d4b904a210836102c","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565106263.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSaDxCRA9TVsSAnZWagAA+uMP/R0pESBK4rvWqOy2VSJQ\n5HNkUbJYNRL71yqJWbO4FewA/1hsnwVYmH4//de5u7ZcCodHMFagB3oxPyvP\n0u7skR8klktZ3hZB2Njh04XsClb3wNL41GmtbzOhfFpRkbqA/3hIvVVLc7yH\nkZRIQVqsSFnaoig0P/+gDq7UvtELtkNMbywmQft38PihUivnZTh7hFfXMGqA\nfJu2UG5Z3oqK2p8+b0VMy3GmEQaIgJec82FKP8tXpJ8CR1V6e06zRFx2sYTx\nimiXhmtDyC7QIFy+Q/y+Eo5qgJJtkMIiF3hO7SLTuW8rXLT2gPDcDll+1inM\n+Hnk/U4fC3Yi+nx+NBg/yBBrHKVurZyd+ZjLyrkYXFTWX2HVVrJhHye7Zc8g\nGveQ0mCZ2M0V6Rz9atFrS3sjPbEbMjcHZBAvE05JD/R3ykvXrh1X9YMYm8Yo\nfRtwqpUYwfeaJUrsCErfHKJIHA592tZLvZo9vzPQVJ6U0x0sHzAO97TyNh23\nntVzJlx2NxE772gWGL8Tdnwl085UNooT0SjnMorepfo9Nc6W3NGltP76QzkR\n0o1WnHIqJaFmUWaQstnsbXokBiREDRI7jraS4lb0bNBgUo2psZQRjITygnVm\n6BBEziUbUY7YgAi7T20mq1kyhYWAB+hElB+uTXlqG27y/YiyV2EUwZ3hH1E+\nJDE8\r\n=+dl9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTa55IFjyxlwdCOeIdWDh5XNSYHAzpFp0Sg2BPpkzKBwIgbbHocalL1BE+ls4sKplF8BKVlnuSjp/DaMEYOUcnkvc="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565106263.6_1565106416519_0.18573783484190765"},"_hasShrinkwrap":false},"0.0.2-alpha.1565166890.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565166890.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565166890.6+9194f8b","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"9194f8b4dc9bb5178f934736a4b1c1c4a8cd7f2d","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565166890.6","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-B1pkW97/S8Npa05MvJAUzarpPt6opvd/1q6BgaP2hwSH02TP5F0O1xX1+2HwKv/nIbDeAqS7jV+mT1VloDpK/Q==","shasum":"26a3222db4b75f81dafbaf9f6c02ff13724231e7","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565166890.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSo0/CRA9TVsSAnZWagAA62AP/jre/mhlEhhMBgjSNhFY\nCkS/4RglO4Boc2IH8k4w10EoJa3yTtp3/HtZeKc6yRMqRvWccYEQAWl17LMX\nvTQvJGKkIVc3+/DSTr4SqfA5/mBejAbooaqmTqYyvmw+B7gdyV7Hvo+syPHB\nP/mmt/nNbDWQl8ibGiDtwsarF+njs0buaH5a7b/9+mhCXvxUhw4dBHieYhh/\n+NkWvJi1MjtXmdVps4Ab3uFSlDPWI6FSoNe2/e5eQB7RfOnEzp5185sVFQX7\njUmin1AbdncIont22HKiVfwjJ4YV65LGEhj7mjjoY9ovqjA9b8GHybyXPOMf\n021ifYRWN4aYTBgnbeJ4j0KuhgFLAhdX5VZXJ7yD4ZxMPL8q4k6VsSiiUwFE\nj6owUuvcpbQb5mjXXYt/fiIRwbsZeW3SvtANRd0j38TWM3Nj3PrJV4oOKAhu\nmIsSY39BpD3kh3bSKIrSU1q/UN7gcPB46Vty6Ids8qh7oNKG4a5KrGGCovh/\nw7bb+z+hTulscykhV5BHOGjdsttjj+WCAP4fypJ5ZRqZlgKqc3CzXUwKmEG9\n+yPDTUlF5p7pG4hKNnRydCRzpt06Irbd4kVBYvarDO/Zv1iI9w1PGktbTKTH\nVnRlRoPcdWqfko78BGHllyxtPLsqx31vTNlmfqlI+/HoxU9+SCGoVaOi/fdT\nMrHZ\r\n=n+Eg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFobLVd6eNH0ZysRjHvdlVZUVKKK1D9QQ6UXv+WmKyQVAiAppO+l7YsahblIA2TLn5t+4CcuOQQb9C/eht4L49UnvQ=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565166890.6_1565166910417_0.9263456621258161"},"_hasShrinkwrap":false},"0.0.2-alpha.1565167388.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565167388.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565167388.6+db68e12","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"db68e124d18cee7a9454675a595988d9cf945823","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565167388.6","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-HCH7ZnwRPYWxNEK/K920j/Bq8GjVZYi1ReKWJQrwmlREwsbS1KdnFXt8Xb2kGAT1jBggZAX42KJqneyCd2NUAQ==","shasum":"10a957e3c196eca04f488270836b361b85e5c81b","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565167388.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSo9kCRA9TVsSAnZWagAAg98P/2Y4rCH7tAYE3HG71FNW\ns2fMBCK6wthQ+HHuyIzyFJPqVMZhmoGi96IoqrJNm9/ZL7eF5Rwe7WIAp6wc\nNAHSxgdPObBshMsN6Mi3mis0RqfPtljsFMow3D+OAFcY5R/Jd2gRIQ3Z45im\ncVwVf/hVVNiMtbeSJ2pmYcaQ8TsivdtGaotOsSY2cQmgCehfNiQaY6I/bjn+\n5uACiAEVxdgN8FB6VItv4zjATK4JykZSIiOWK9XSjp99h1uV8+kwqkQ/Rx07\noKzx4f3L4GSxFFdsoNlBzLo+MkxdTqvcU3qmKjIZR3xog1zusafuyiDYhIBN\nx4m/K6CAkl0jPTeQxBrUeOp2nquz/Y4yIxgJ6JJCTZTWyQsE/76Lg2FrwkR4\nNudX2mBdvKttZxwFOjACL3y5u0CUPhLpe8j+A2uYDnC+9csjwP73HLUmrkfe\nADgBRT5IqJYqY7GNI31pRB7yRQ32lU5GK190bVjCp37rSJigwVHjy5o/u5hr\nUCU2PvMjzQpKZsDqpo/CYP9WoRC2Vfr4Yc+Txap6Oa13tq5MKsuKw72QkdGj\nRoJrjeqgbTpimE+m1wR23zx4TYzdO+KZkT15We6TrtX2TpA0GGZejTuk9ppw\nqV5rcgj5WNzxDPhpkc+QBIzw1mehyzoQA/o1xfl0dfGyyb2gdkb6gc9GluOn\ntfB9\r\n=Ng3U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVVM58oHi2UR3dqe/yKl9w3cVXnT1wyeMffruVQ4AsegIhAKrh3Vi50G/pyLtRXLNSctqqj+gWIG7ZwXQdgSuklr2P"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565167388.6_1565167460162_0.36720313047245745"},"_hasShrinkwrap":false},"0.0.2-alpha.1565180247.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565180247.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565180247.6+4861595","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"48615955d26ed77461799d8af1193de172d6eaad","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565180247.6","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-OlJlxeDhBtB+6UtANDUuFYM/dgphDH+/FSXYPWikXauch2B7vrxaHlPBkd+I4mD6vCyP0MuWr6/sHZ5+/PtTMw==","shasum":"33d2497e02af779a11e49933bdc28c3831870b8d","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565180247.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSsFsCRA9TVsSAnZWagAA+O4P/RK7U1CSn+QYvhiwyy8x\nwc2VdWAN9Biovo1nJ2W4GGqBAMTGTLt1H0lxTf2oDKdx81tEnrH+NSvfr4iF\n8GtscY3fXvYgp5h9/mVNYY+FhuzU0prG1pVcx7TNWJORdVHaa3qJ6GTOFFZR\nimfQSnSbG/8d4wk6tofbxZdBYk2J8nO+Z3lW4wRVj2JHVu1iLw2k0HXzI25q\nYlLnR+a3x/9tGmAiy1X5wU6P4e+2aYlaC8J/HTulVV87e0AOgVsV4sa/e0fU\nIJQfDc3/w4nom/TSoiRWdhxQpXspSszPE4Ov7ofNx7tpg9GNbopiTNNfuyX0\n7Xppv9/9fpMzHXrxT5AfeC2q93WeDWREwpoYEJUja1GinjIZprDhoVkDBcWX\nf/s+hZguiII+hvF3fNQRCB690EOrYRPvkAcw3oz6eU5dyIeOQdPSIGFn3+NH\noJ6NMVrfrBJI0ZPQETfpKhX004Y2NOwJzM4Q5PpCXopuDnF8be0FSL2Bx25N\nWvNa0TQAGmUN6efJSpe4xfgSsgkXoJD3xUaF+DF81RGIuP6PFplIu6cwg/lU\n/QzHeWkV+0rlpO054vFE1HyjE0Fig0OftEC7UvvcVMbYVl2ieHKTw9fm2i+N\nxU++b92pBZzJzHWv7YokPUkKi09aWmeCUNfJR8TC7oZxuictLPpRwDaAOWar\n6mxY\r\n=/vYW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVRGzmAzASX/C8RTyndl+FOin5iFtftNDPnJd+TLI2xAIhAKh1ThGKee6kiVqxryW6cZhIn/enhUCKRmHA1y1bonHb"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565180247.6_1565180267130_0.9396171068046606"},"_hasShrinkwrap":false},"0.0.2-alpha.1565183327.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565183327.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565183327.6+97228b8","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"97228b88928aa6f9ab695ecd3a30f74d59d58993","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565183327.6","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-vMNWfFwPcSGYUF/+jfPHKsBjSCoX4qxrxngYg7MOsku6N6fjQNRM30o7ZmJUWywZXri7PwlGJ21uKcKZJYZNOw==","shasum":"23920ff7151c5dff95d44d35b929bf1d73fda90d","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565183327.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSs1xCRA9TVsSAnZWagAAGeEQAKEysMA6zkNF3/N8RRPi\nBrkdx02xLX5j+ZLq+U/IXUGYbZiCT0DGhSrq/1E/Q0EnVMaDW4bmDn2HKObo\nmTKk0RZ16McOMWdNZMHgsZ+BfLqsBIkPlsQCTKgL0XrH70ULHeFVihrh5TaA\n+1NtTiXJz+nHXSl1Rsc/xfEM13h4z567C4KNjIGStkbLJaYGrjiR1tXYOKPx\nnkqDt9FiUQS5DHEBxnwoydrT29DRQCzsD8sBWIM1yASjN0czGKo3kSfvlLN2\nH4fUBPU7PdH1OhojUZ3UPSK+pTXnH+k6n9Acxp6AL9qvGGL1dhzuuuWL2gML\n8h5WkHw3YOENEBfdj7OiBHkAGgN0BP1hXFyiFvxAfNLeUO+PvTvX+rpfCMNj\nPXYa46coyKaeNei1bTFLTUH79/LxxLC2Kfeu/4+V6/Sv2PXg4QA5psNi+0UY\nQEnZXaFxToFvZczzX8UZlDRzXB9hYwUfd3AfEiPbtN41sOTlIcL6yJntYZs8\n6423cpzQkq82GD6je2fxxWFq1IO69KeSvA9uvl1bC5Z6aiOV20cjGTLO1hlf\nhQMHY7U4iDM4vsIl4dnQY3U2AD54XkcYZctdeEqg9SdtVI3Og7V9yfHf23a8\nI6ksoPcB01/yLMihaQ0iCX/LwuN0QWkV0YSg6Vo8zRw1DOOvxna9AYw6IcrP\n0Px5\r\n=zzTS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqe6N1RX1613lyrHhYE1wp5D98XpUTcMqlLDHdA5128AIhAMuS4kCL4kHC+3Lz4M6hs1nS/i0w0h1gUVTSn79FF/0T"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565183327.6_1565183344375_0.4020474984138209"},"_hasShrinkwrap":false},"0.0.2-alpha.1565184726.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565184726.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565184726.6+d715b63","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"d715b6337e88a490693bc792286fe9bff20c0c50","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565184726.6","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-TnaQWauqtggBBThB9KSea2p7j9ycZWts3EAafX0G7SVmZFtEKkMbvkg1JTadWValZqKRXpfER9ao/UfWUvY+1A==","shasum":"b5d56c0e1238f49fb34732352c9f2e5cc64254bb","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565184726.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdStLmCRA9TVsSAnZWagAAlSAP/3t7zK6w/Fwkb+850mwT\nLDAIyY5KMFGxoOwFSk9rAyZW/agAerOFwBe5g6laqgUhViA27eymz2uA2VXg\nvtgGdvoAMYDPJBpZfC2BKmGsmloF5SQ7ySvJzGat94Cs88XmZftI46yp7udE\noJfZ11LffmDWBJH8IKxUC6xDVoTazOg0dpZNxi8DK6RHsULGrq2hornTx9Mw\n6oXollvDfx9/jGciXLfKja7xWbuVsGpkJHMjVVXsbzBpIa8Kc2DvIdk69pJS\nx6zq2VDcjAolYoPnVG3FbWE4xzt4cJJYya2tKS9BryULlSdPWjQTf23Cv4FF\nT1X4kDlzgTjHJmDj1sLEFyt5n0lqYjJz50WfpogvinizxE4t68W4/byXj/qe\nG5kGxd6xzEeWsCLBaYCx/biMpiRqZ3PjIh3Abf+ToXbdZl4c5PsoiqREsmtX\nmsWfc0GQSM7gJNbbM/aURaq4wQPxbXUPeoRl/rQvfPgIDMROpotPTVqVjuv6\nsgtGeGelrLLFjTt0Z0m+n4vP2h43GecWASJB8eG45bW+4U0C4+fUNsViyXPB\n/af8m/mYUpdpyjNwi7ueIeeAZggDjXLD3qQ/4VrcD+913WpokoAwhMOnnTaZ\nr1oP3a4hz/DWv/1lGWEj+NOMOzWGXdApz1gLIA72n6NtGmduvxplw/PerqC8\nvhlr\r\n=AUVm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC55ptXla3wpFDg5lUtxzZbdmiGXZy7kF93hIuvD3QzNAiEAoxTQ3iHdhkk54t6pH1re/ghIT+5IZScoi4zlSxFtLgI="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565184726.6_1565184741468_0.3232371742139679"},"_hasShrinkwrap":false},"0.0.2-alpha.1565185979.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565185979.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565185979.6+34f8305","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"34f83058a80b1312605739d92db667e689e7ce27","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565185979.6","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-otEIBVu/WdK8hwijnTu0D6Z53yoe+OTGUS07duvylKhNoy2wSHuYij3UzPEZSxsXyERaY0eptcRrbV264pT3Yg==","shasum":"6dbbedf1b0d48319c35ed08d8881a5128b9a9b27","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565185979.6.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdStfPCRA9TVsSAnZWagAAUakP/376wwJ23jvFScE1l16I\nabb5FkuERT5nB3zy/g51ektzR3YjuNaGp1+rQmC95jkZX7zRTzeHn0V+59Vb\nm/IXYx42xegpnqPGSJsVRi5H2f4YbMeUbdbi2MEGJkknFn8Jh2c+c6eSDtO7\n4ZIzGI3Ty2J5OQ2u3vp+/QtNSjr1tc5qTXPj1/dUXsMtCf0KkGYUeVxCunyb\ncfku9zR/FL1AZHkJvPP+9lr3oIWLKVhmQviYI85P99YReIEvlETrIDNzXOIu\n6T4SRZy3HcjdLNxbN9RI2+wKP/PbQFjfBoweHcgSLjn2mSMMkAUAT/jp427h\njMQG4vyJVAIeyIUkJ5o34kX8b5Y0M9lnKvSd4xiHXpmkLKz2ml7TQmOgSIWi\nbYLqe3cZV1cHrh0DiMXJS7AUk6oexZPabVAJyHdqALcM2t7Jw1w5xXvl39Yp\nwof6Go6c/aw/TttXMaSoGDqAQMob3QXqjvqBSCKX/6jc0w1mV6i7Bx0dLQ6E\noiZdxC7yWJvz3eWtj0PYoquY6CEGJVGsc4O9ar+LaVUbfU+M6SkvS/twzXOC\nveW1W/FYO0uqkY7wNDTKaAKxDBX+UdsKOE+vdV2t/nc4HkrAmbIcMBu/HA/Q\n2h1LuHQQmrkxOvQyntdSEKsScYib/liXOWSkOifNrGolS91Y3F70Z5jzHNY3\nVwqW\r\n=hMAz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIERFlu/9DIscA8ULtd3as1lu3+5pJH320Q8Xr994Uv9MAiEAghCMa/tFcvEdWonZkFAMWU9xDUDKjbL4zJe35d6nDus="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565185979.6_1565185999130_0.9385832475917995"},"_hasShrinkwrap":false},"0.0.2-next.6":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.6","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.6+42366df","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"42366df43e60167d427ec43ee832bfc35716e1e1","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.6","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-KVutSIJsU1oI0LkrRWhiSZ/R1d0SFsum1JmMNjGW7Py52Uf2K3MrA47DE36xyZVW75JVeYDOu8aOASLXs/g89g==","shasum":"93dab1be7fbfa8a320d5cd97dffda8b2e745dfb2","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.6.tgz","fileCount":67,"unpackedSize":124551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSuB3CRA9TVsSAnZWagAAw7AP/Rgd2SDlRhJzUcY0l07/\noKq6DWvz7g928BHmcKKyTMSG+w5ivJlK2pNmtN6TNngWC8o9T6kv3/g/HW3V\nvvjY3e9jtX0k3gUvRiZI3SFvCcibDcPa/y9Q/TKZbpo4QBzjArNMg33vcP30\nHFTHPjO7DRqsxKp8c+lvD+FWp75tEVEA9gEFQscMDQg0ri11cA6iQhG5iSCb\nZhov1eOFF0/eSN+pV2bTgIOOWmu/6KiGQl1AkxvbNCSEKqD1a+OanvXHqgDd\ne2li1Cv4bAQx5yKq8hrgSknefOqTRTWLdQv5lS81ZPnvk7x11ChWa3WFr1cA\nV5NL9Ci+AEl0DN8povzZrR7XhwWWUzFxMRqDt+vcuaBG7VWzEqEC9DRw4JAC\nfp4m7q/4EK01LPudXXPHwTndlGL2GUeO2bdrnd5PAugv4XdJ7VOBDIfOM5+H\nrXM5oahi3EfQKUM55MwTyaLkWdJrChJ2GDgT2HWe8vQ0Af2jVUJKJvMIu7Gd\nSspQNuRwwtHeo7moAZnRyq2lgsqjSEKG6vhsYcH1bk/QIPZNQQLewH4cUUMk\nJtuUxKAMI/QE/ja84/r6hoUhDBtDhOwmhE3/xY8wJ5vOei+couNOYdvFwz1B\nfAotOZxs6Msx+NBiqSOcma92wvV4dLKaGdW6B7IfeRhRA3B1/ZYS8U3L98BF\nMl9f\r\n=+EVP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPuLkY0EZv/rJYjsQCrafefqEuxi3ParHtmi9yQo1f4QIgLIABXMhbI0vBCVibVN4J5Z94CpPlrByj+yHoQVfZWYE="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.6_1565188214895_0.932266049941243"},"_hasShrinkwrap":false},"0.0.2-alpha.1565263029.7":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565263029.7","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565263029.7+4ea2b97","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"4ea2b9772a21daea40e7a9fb54608edcbc5d4a19","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565263029.7","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-G9yBNFzNQlDfy6JTeBg7XaVHBPXz2iwApl8L8U8zlxwRliHDjKEUrnhfzZq5NV5M02EET3ZYp18mt14yvGz58A==","shasum":"0f1ea9e6630e95fec32dca7127a08575216dccae","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565263029.7.tgz","fileCount":60,"unpackedSize":78899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTAS9CRA9TVsSAnZWagAAoPMP/jSMSPY5Y7cqBmYlgczE\n+LBh02SK4Mds5TXF4On9yIyeistCvZuqgWH94/8fGemLLpuHlvf+KkIcUBCT\nfZqRPKGqSyNlxw1xNiQLHkKJgx48O6Jg4Vdoqpkq2rdADjUxdtJtAumaK+Dc\nWDLkMG6vXZ9Zs0HMgEfILJOuj1o/zTF7CgbrU5CS2NjgFJOzly+uYEYNRG3H\nT6F6lrX9P9+tNHwyFjs77j0gC+6HLrmhy0A5hX4xPWvG9S9CLVrV5gRdCT76\n+zTk5LpIxcAZMpPi8daNG+FygNQlogfpL4HBj1Rl7ELnsgEuM3N4xHh3GaS4\n6qtUFfF6EvR/rN1YcOGaOF3abWac4y4q+OSC2ovNJ83jEPnLY+U4o9uYm+7A\n4biJJtRxs72QkJdjliDZVg9OyCks6D2mx1Ej0CZ5hulN6pfCHLBQgWkZByWh\n1qP7rY4zLIvsGuJBGmfFdNRmCFdSZ5TJgkOWOb2dkX4W1pVPRQ/npxGNyzTe\nSvcDM3qiE0jcHWp6XWh+KzOPUtpIv64QHojkH5g8xzP915iFz7p8ZtMpTgoX\nE0w49fyJJ+2MPal8oSEomHAlY6ZqdWhrUCzt/hUqt8kBdhgmFD2UI7MJqN1R\nmS73n8NAcyib9oiPAUcOzgt3Z3adoETFsQyvD38TXNHOH43Sz9LN1zbuBgUI\nILVM\r\n=gXpc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe9UO0qEEarpJYl7KH20WzI8N44qcz5JVrk8l3+oClkQIhAKEgxka6pUZMjckY6yNVnTWtm3HEdAFOR2/pLtOuq3c7"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565263029.7_1565263036321_0.430875290015176"},"_hasShrinkwrap":false},"0.0.2-next.7":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.7","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.7+a5fb400","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"a5fb4002573fb450604001fd62745fc5d3f6eaf3","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.7","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-benspWUT8Z/TYDs9RAhf6OKCNLTehz34ESfGxxzCnQ/a9Yv0vY8/unRHkeOCsYXwuIp/zQKM9HMoNi+NocBxxA==","shasum":"a74ad00304e01b3f782dca4d4d7526c5067395c0","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.7.tgz","fileCount":67,"unpackedSize":124551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTBF8CRA9TVsSAnZWagAAqLgQAIWQsBwDR5oPSp5UGjzO\n1YCY2LCnHrNXkxXlFuphPePFFGWSgxo/WZZVhGkbXvrdxfvkVNIhECPSFR7K\nOFPewr9Waen8Xoy3bt8fVJYoiCGbWcxIKn1IiT5XetKynAoIhor1Urf0DHHf\n2VUSRMY3m5jK/cKz/cPG5PaxKISLRPwfQlrRWfEJEiTp7ZSsq83bEv0UefKL\nX2pFvEWZELA9uXfcmI/6xKuuN1/qSpFFLNJKU3ia7ao442DI5arAQRgkVTWA\nTn8sK36WmhpHETzj2XKyadM5eQSZnl2I+zUOC/HVsRiOsIIKSAAoARrefYIq\nOcL/kTz31t8uzSWOXYs2eXHlIQnjzSbzATwvSe1SGyOvlrSkk7OiZSmTtevS\nDWIHtUG4btZ2aMhh1QYKXcmj+mbBxFuNl/sU6R9jNvRuKiJYiUjOMe9lDpT4\nknvlrfGibHjAiAWL11suRh89sNx71GLaXMGzswsvu6dmnrNZrq3JV0mBnvkS\nZZpPcYKEgFajPeZ3BNkYDDOVGdDJpq6KfgVgtPpFYcpSwiw/kazado3wuTLy\nJqLWpXTQnN8jBCnB2PolW+/mBwH5QFF2eACXeKkFDAQdJwH0Etr7zwyJoUf3\nch7JhH8kmD3OaoQRlkLW6BwIDyiYLUx5SHG2nYv1nUk8TZ5b14R+eCqnCvsH\nZDUr\r\n=w35H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHT2gX03NSHUyCA5RLSn23uN12NIOAZg1mf+IKov8LeSAiBw1n64AKdTvOdSjOOH1W3uUCWHqKJex/7kuXascqdMAw=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.7_1565266299233_0.5018209475921891"},"_hasShrinkwrap":false},"0.0.2-alpha.1565620192.8":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565620192.8","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"d45fcc246825e4cf4556a5099282bf0f9e92324f","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565620192.8","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-OzG8EP7oRegEGnT3WedJokMD/j1chIZsUJPnJr1yCK8XCQrklTCLABZb8rx3sU7nJ2iSpU+cb+9gIIlUGz225w==","shasum":"7c7af9833353830400f4743d7f71eaf38daef6ce","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565620192.8.tgz","fileCount":60,"unpackedSize":78858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUXfkCRA9TVsSAnZWagAAlukP/1ZS78nCBmmsoOcTJr8Z\nasg+fuXvtek5qaHz5mVT66Pb0A6ZizFGXAsDwNGN9R8Fj+CgDienPwCvHDFO\ncO0v95QhmbFcq96C8Xxpo/71Y1SrzxxKGjGxbiP9Bw2Id+4aloxQVasDRflO\nw7144SCzmqxRKh24z7hBF+7rCnJaa2obhJVkLSWohlEjXXyb0QRVbcQzh+wl\nrG/PN0wYhq86i5CmrpbcwpPGfdwx4jSrk7w3+2QWov1phTwHWbG6iLqGWSNF\nqZ0sxh6mitmWkSMRvcntWISJNvVbgsHmr4SznkAZePQzlNvnVkz1HnEUtxmX\nSvmb4E7dqj8EZ6XSbNby7kxzJ78yVJINGClrT8HRPiXGFzsLD4uZfqIb9DF9\ny9I4VqYStEGinVnTS3rl1iNeIlYyYpPCSTUEfEXJ9O8Zls/5liBU4mer+p8x\nN8yw6KCy9FzTchhey3HmSLxVaNOXg+RVQk0AA49ZiR+quhf7n/jYQXdK4vxF\nwGS0KZ/kj30nzV854bIxjzItR7tWuuetjIaA45PIC5MXRKl5dzpcLtfKf5BG\nv/FdWIBqUqvgyOBdFXZfOEkLvbmvmPBgfv2v1EKdUBeAOTdEU7tikqFMfQ3p\niKWUV2z5roR31ysTT1ey5C9L1NZNDzyFoSDi756r4spUkLePLCvuwnW152Ml\nqLXa\r\n=jFp3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDfIAkS6TQQLkVL8t1Fe6CwEUlNS5wgw7i5FDLLTG27QIhAKv7hlSdAhulGuvcCnIBOiTngWF9MSNxnujJAIYHG0hF"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565620192.8_1565620195504_0.01141584841067278"},"_hasShrinkwrap":false},"0.0.2-next.8":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.8","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"69a28e769fb657e5971bdee98f595b67844d9a91","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.8","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-8q1KhaTqizKij5F4VfuwATd1QiiYd1xMdCBeWoSn/QzYnja8aRenWcoNGNtY+sdFKSxWiUrxyyXBx/z3P8fYVw==","shasum":"76e4bebf7b92ae39a606d4e8fd94d48a964e506a","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.8.tgz","fileCount":67,"unpackedSize":124522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUrjaCRA9TVsSAnZWagAAjMUP+wVaPCmPRHsp/2Pa6zlA\nuv0mm8SS4/AmjyUidpajC/kz/xl4AV8H+jvN6qqT/t5uAJdmpB3thC0rVFs+\nZgdoCLuOt/u705w7rTjy3QWiMYowNqjCfSTEjzcI6mDB4NPW9nUkwzOBz71l\niHdG64eaOpnCU0Di/oaYfnN2GWiRQ8uFBm24hLCEgvBMUxPCCqEjLFkT6zhI\naGsxAAfRKxkS/es+MdULZyOkx0+tuo0Aqw4PW+sQfUQL+o6soNKAwOrnGmXh\nW7Nq6OczbmuREy/oy0Bssvw1NZkL8OGAxVve/Xsg8CCg7qQzaR4CBwzgQ5l4\nLl8QDNdETeYZGsT3YIjBlccOlRjIk9KUhM2tRejdvDwU9Sr7EI6pS0bLZU9g\n5Metz0RslhHrPb0YR6BHe9spjiHOxka0sVC1+4dtEU7yzydDmJl97O2r0lyY\nRbh+BspZqSlkSZNj+sQpJ+569VDXplfnznKspbELvm0ZuMtTpaHRAAFka3kh\nW8ozde7ZG76VXh9WZjtgM6no18WQWfR1n4dcKo1Y5howr4wC+x4zb10zAaHu\nHWPoDssceqd01jVDy0DWrPaGqCPz6jyRJ8J57RPGDWiNx/2cqC1ALEZtsh+K\n7x432V6duyyryZNj//pV6rhhIzz0tTdYGud0bJXjVaTBMZELX4vkLbmTHdkc\nWZSB\r\n=tuKZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNw3w6Vjvlx1/o9g+7ITVQjlmj8jr34Q/PeY5Pej38/AiEAmDieapuSOTMkuuDnfdI4cjnj+ctzhC7vIIWm1mvZzf4="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.8_1565702361337_0.7778308751361376"},"_hasShrinkwrap":false},"0.0.2-alpha.1565771176.9":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565771176.9","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565771176.9+3484a59","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"3484a597df691fcd42da3f802901842a7bcb0457","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565771176.9","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-Bkx0aViKhvagInc1KyKT6uZFYMkmN6nehtPuNUpeeuIhRMurphM2Ox2pJ+54jj1YE0S7EiaKp0TZk4sYIici7g==","shasum":"78867f93bb96702f3a2d346c9e666cb7116ef051","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565771176.9.tgz","fileCount":60,"unpackedSize":78877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdU8WwCRA9TVsSAnZWagAAC1UP/2zf7tcXZ7HEzAmcjhyt\nhMwcrZo1LBZtt9Dw4OJgwoOXP8k4Xn18Ptxwr/7O4Zxc1Pf2PImQ1CY9xzkj\nRDKbZTlsPFMQfAhtBl/WgkuK76MWlI6lO3PzVQEZ29jiQjY9YUIFTCWsBm92\n4xGNXk0C0pOfCqglNYRGOKfn9NBx6d2YOST/4JfczCasbReVnBev4IX1YM7m\nF8GtxkjZfftDKnIjEuKnr7jujux6eQg9q3gt3sZ0VE44OaBGEoKBWPtbOO9h\nNLcn99GuXSv0O9kcLw+pRLEKOCQrVgrmR2Wcbz/DqcFAyLBLz5FdIH8xDL/C\np5Jdi1+YKnPUiPOSNZFNdRSOhsPPZoE43cIT5kP/7TuyfPHiVEafyJsSWV3W\nxqj3KEE87BvC9CAHmEuk4xZdfAKCN8peWBsF693PFtCXILkGsJ8bpyiY7Sx8\nyFH7xALkpepKrWmDKXgWgKtbya2+37KPTd0kUPBdLAVIXEgIljlpohTYwBBI\nDtl8PCm9n72V/28aMw0JrWNIJymJX0Vr6H9cPygowD6qiU7yERx0QpFb2iZH\nIgGcf6PEO3PNtaOOYbnRAkIX1kPxBavG+P2ZQHINzsmBZHjDrh/RRfc8erAq\nTvKRPOZjp+YQVyejOvShMj/5OK57xX4nsGeBsg95uWhncT5jATQLoxnToX5x\nvwwH\r\n=vtXl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt5wWtyRJxmTmjXEiyEZwVbC2OfvSutrnAoR9lWrI8VwIgcbNT9jRRRWrbWxMJo/n85uFucWM6p5CN6NuAvdpICZI="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565771176.9_1565771183965_0.5282424219238755"},"_hasShrinkwrap":false},"0.0.2-alpha.1565774694.9":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565774694.9","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565774694.9+4b80a60","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"4b80a60cd0842cedfcbe088c97cbb4732833b9ca","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565774694.9","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-R0ldk3sPgCoIXimmuWXYqChbojec4gt9F6kbwBTCkb1TJPXaZUwzPPBdMAU2F6Z0yHPhS8hYYcFqI5X2VjiAqA==","shasum":"c8487223a693d7774e2c05a130f730d21595ffdf","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565774694.9.tgz","fileCount":60,"unpackedSize":78877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdU9NuCRA9TVsSAnZWagAAc/oQAIjmgUr+1hCkKyYyZdTt\nKm2q01M6caLwH3XyJIxUh9ljYaswmqq+qnkM8x47nxxgp2pGcy0BVQvmrFHc\nBrXUF/SK1swI2dAEk/ztSZCqa89AgKpmJI6Do2nZS5E1YLsRlEP6hjXj2ByY\neH1Q9ToHR9nAufYW3c+bAwUo+0HfLxrYjfDp8nt/PW2k8y2rKFHuJhpLHDbT\nfsjAwEbTNwrbC0PgKkomTeVNx4AhqvedN11qm1onWxWN8LP1HPw2wU7AyTPg\neoRMDg7sUmUyaf6NLQmVjfhUNmvplCLvWyKPQFnztuRyewu8Tp7qNzluAH5c\nngztc4YrwXlLvxNW8mutIo2+CV5JkuVSgaMHQFnqIeMAT5A3AKoX8aDvd2/B\n/C3a+lQs0MYwcy76SgntLYzF/LlQWFLvj4lzd5OGoIKdNbrL0zUusNhFLQfk\n/kLmWsMfaKvQzYB1wotPf7NfkiJqfRxLxUvefyt0b91RM4QQjUYCH8uTKI1F\nw1LTXcIWk2n11gEyd0h9yOLLff8+CHj7zMlyqRFMjJf7BKfx+YCovaoJ7U//\n1Q/lfC6CQb+FkBd0ZvFE6tngsQxyqhdUJ5X70vyYeJL7T1/RJyzLfebtiiNF\noZKdKbZDC7RdTP+Qk/hwlzOyMQem91Yp/GWonwQF3dWP3YjKapiYLtu7X+yU\nUUNc\r\n=5s2H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf9UNWOq/xglFGiST738AW/mPYHQAMDkGqUMNSmLCq4AIhAPtnkv3cgLZis/CTPuEdtd7g7kHQY5LovqC5Pq/tJwhR"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565774694.9_1565774701732_0.13883399939890784"},"_hasShrinkwrap":false},"0.0.2-alpha.1565780037.9":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565780037.9","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565780037.9+86c26fd","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"86c26fde14665e6392cbec3f9770119e907d1a40","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565780037.9","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-tRk3hYhFKDlnbse66zSfPkoMgJWyVGXxj5l8jmw366xy8FE0kQ9mKdTFp+dj+d7Zpr9OWMtOwyWwXgKbjcLJGw==","shasum":"523cce1f9e158f5ddb493096f2c64d482f60db26","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565780037.9.tgz","fileCount":60,"unpackedSize":78877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdU+hNCRA9TVsSAnZWagAAzNYP/iHgy8KWN9nCgG4fkmbQ\nmY6ccrs4yCDOCUc0FPPPTNRxVCKm/Zj1uETWOFJP1c/yXbM2jenj+m7EQCt0\nZsNWUA+SLGWIYqZxl+P43O8oHCMK/aprkRxO/bXIkTCy0NU862bjIAm8OVx+\n1nBcjOsRHtSdgVTQrP5RHVVpFrx8zazgeTcfU0WbaXE0akwEUJflLPMaEWQD\nCpTdUH2ZtnJml5pZAViUXRE8ue28AHRbtI9mBIhLHn3p2HDf/855J/Lbl2jG\nqBp47L3dQtWir19NkwqP9NVnfnHGxGT7/LGmOAqggte/2bBKRqodBfJKX4Ap\nw5YQW7iaqzA51mkduOVHiMbYpOnpUHE/hSVCWdw8eqZKtxffagGj/Fa8kaRH\neJHMUi15N6H1iXOtkboW3DAOuMKQ88BKHAnY5odBRvpQjUEu0dR0XHrF4Qim\nCpMyEl8NqPPvV53epzRHGYDrl07kdjmHBzACOc3JMHiGtJo0TnWj/qhic6/Q\n5TuGP0+jGPP6BVAcXCabGtFlS016eIqBcEa9+TSjKQzoN9wRFba7cOEcmRmn\ncHjcYTz0WoJzUXHOHcy6U3GjJEjhLqEn5D355MTclsHb2q0sUWWqtUqIHCy7\nbbnNXvSRQaRikbT6Xh9OWNpxjWw25XLYEl6E5IavoKU02gds5vCpErL28ptn\nXUU6\r\n=Vrgf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuND0Y6z2YFBM1erWYLaAXJUWiUvGGxiPx99iawwA0gAIgEOjTYdHxWiU3wG4ILOP4HuLNAGCLrn+IjnoixGqw680="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565780037.9_1565780044942_0.4155802825905879"},"_hasShrinkwrap":false},"0.0.2-next.9":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.9","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.9+ddf424b","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"ddf424b2a7dd91a8d94c8215d973060f3c7b3653","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.9","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-2yoh9/A9gGQor/MtSJq5V90xlFUFRD2pR+2NAZdl5DlRbAO8k5oO9tCKoipsXkm7O1CUSY/Di72OFvSLDK9Yaw==","shasum":"65ba0c8eae79375c2942609979e1026a3df6df8e","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.9.tgz","fileCount":67,"unpackedSize":124529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdU/ezCRA9TVsSAnZWagAAXDEP/i+xqnMHWM1gnKHwSOgE\nGr1E3nd3U1abP3U4Ok3j8N20yhAey/UarKlDfhRdZYd6lHWDBNtgjRVeLJVo\nHt+XaMpQgAQQPiQxKs/VqIN/cQr7Ko+0ZywVPWWtQwJoi0ZYKQwcgMcaDdcd\n1KYrjgsx9HKzbavdClA2HKatlB1JHwKywmF0v/cnKuX5EFza5ZnUAaotOqQ/\njxfaJRQjQymni9WfNwja1gDSYRe0KTBu/FKmdsB2pHqUM96zJfE6YxQ2Hgz5\nida2ifmnmJjkWE/yQcUHrfM3vAv8bNvN1OoDx2onb6ZinKh+FjSCUj3zohcU\n4oUbm38sSbi9vlTLO/FgMfNwjkPX01Z0O5jmKklWsB8PM6+o7b+T70q4TsKt\nOBX/ib1q6ybYsftNkKwCwxbyc9WeNI2jFyJAByEJCGI3W92ElsShL7iNAr/W\nNNPmJqNH7qsVpP470IYgKDxtTSX80vM/jgS8PM+b1//s4BYCfpUyKTyA3OBw\nQuOfvKYGW/bFfeIq4e8hfWbJsM+L3qjY3LdD37kBdoTK5bvXAcXVDORGXacl\nIqWCjVdauDaD1RVO3wmrYfLqAYIGdK1KoiMi9NTVdB/GgL/V2MMXW/oZqo0w\nCpxBJlIp2ZYJ/7323sff//a0F2RoVYJXA0s+Na7GwWGY+ouCdAq8YCPmsJGt\nM+LW\r\n=m0ke\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClCwkdQFUmgKXDbwQrF205J0ESJEdR7a6au5dC53k0wgIgMhwAoVmxtr1aNWe5WpjAmDs4zfFdjepByM+DGNCmV98="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.9_1565783986363_0.5612945661340702"},"_hasShrinkwrap":false},"0.0.2-alpha.1565790701.10":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565790701.10","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565790701.10+3b249d3","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"3b249d375ac7e05f0602ec93b4872fdeeb103d0a","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565790701.10","_nodeVersion":"10.16.2","_npmVersion":"lerna/3.15.0/node@v10.16.2+x64 (linux)","dist":{"integrity":"sha512-M+Pu4XlxLnv1ei0imCqcf9A/okEVkTKoR61v+LuqGD7epW1GFEZ5WCHqYnHlyo8NmNxsPpvPf3bHyNMsAsmy2A==","shasum":"8e7cd4923a34bf7c75f09f91e20258d7b115719e","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565790701.10.tgz","fileCount":59,"unpackedSize":78876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVBH/CRA9TVsSAnZWagAAQDIP/0JzRAbd2/em73l58USQ\nwDrdVBNYz0yiEI3DXGc/hy58F3CiqDUS5LStsYI9tC4Gk08LigLlsMbYfw9g\nI2Xnatu7YMG/V9c2+tK5tFn3EmW8PDj9j0WASn3Bkx4eCSjg6fKydDJffLsW\n0YKVXsOjX+SbWSlyKiNqwx8K6LxGj7KZqAd1XKCFEVhog3FEbBdE/A1wkS0T\ndPqwW3DHKWs++Jl9gE9P5eY0afNg1+6ZHJJ7YIftI2OCuAs9DW5i1Nqz4bGz\nf3gaWTCg9C6lRILAMS3rm/mpN9foi9I+z+I2IRYrizh9AV8/NM3BFsRcDv93\nZ5BnTbVl+JFFA5l2krMzKX27RvdZjFufj3xK4FtvkF3x7gc30a5ZanAcnly7\ndx2MAeZZ6oSksC18uvMdQkI7DiZDoxe9Xma95XeX+F/IRb8tktLBfqJrlyd5\nlNSjfaXNjU0OWd/XX+I0/n/7aVNrHmY9o0110MZhiaZflj+GZsDOvTi5AE2z\nF3z1E6DbYaURFQC3PZRGKT34GIHVRQmL+Y3+IISIcY/nFoOdTyMTAXpOdoH8\nXAfK9ywJVsO9+kt8ppRr5AndwWipL4Mk0WO2A0JcbZpUiGAxlk+GuQfo2VBn\nvZn8tZog7YO1CBzrLSc/+K01+scDabF8BVHDTIERz0+iY4nbvgHCcrQ0IU6H\n50ch\r\n=zZB4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5SmhyzSPMTh+obFftZKYVzKFozTX4PwBZuYw2bEMf/AiABmV/QCoPt2bA14l/R0DbHdrAfvuEgJtZc9jPARU8kiA=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565790701.10_1565790718633_0.9928939438088904"},"_hasShrinkwrap":false},"0.0.2-alpha.1565944352.10":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565944352.10","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1565944352.10+24422a4","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"24422a43e36a8535f36870e7be383b5d67561065","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565944352.10","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-oGUIb/PqW95gIleR9+6mESF1HUx81GjT/n8V+AIi6K5AhLZysa4rWSye9ij96HM2/qPdLN98MvfQrtLmCAHefw==","shasum":"8475d72c0f7c9e6cbab4f5693897c9de5e57f9cc","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565944352.10.tgz","fileCount":60,"unpackedSize":78879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVmoyCRA9TVsSAnZWagAA+88QAIDifMVjZf3QOLPd4sX1\n7DqMDMgX5C93c4p2rnZ+yK6ByiOnRHn3KiZBkdeYb/rHgzd+O8pn3tObUNjq\n4rCwmY5kgfKshcIc541CH62wWqa2xmLXlAybGnLV3FM5WunlHqXnzPHCQd50\njAbyO5h0GTPZV7ER9XtOntlAFZYaE/bHpH/97ZlwjcWvirSc1x+ec8TLVYTx\nmiJ1uEthj20h5t10etzH4k20J3k2gC+c/+xOzEAgv2UG5DQoSZ40zc9cKArg\n42PDzmXrh5ZtRTDCYoT4QSTXROySoHGmscA2FrOT3IZN7WRIPr7bks90vD5q\ntfqmu4F6JhmuH84yUdKnByw51pXBGXIenhXEkXss55ua/Jujy8R1aQeYEm7d\nEMJswCJNGAaTNFfbGgM+uqJ2dPMM/P8vfFkbWJopY50KFp7F4JEIVAyUSHUN\nkch+vO0DJG8GiFikCkus2popy1Vk3UEmKo18vT8ebNDA9UTFQNZ5i55CXhRm\nGKH5n5G0/JQnnw3j1Q2hamjZKf7YHDzHVNN+PKSENsmH6RZHrn2OVM+2+57y\nl7PRFb5r2MeVftGYznwt4bUaQUdyZooIEoB34tzt+Kzyo6aiI9+GMingkei9\nz85wTiAVHz8qmpSxaaPEPzooWRcqO4H6nbNmTP2PD9lBIBUxTRq70GzetYmp\ns+Gv\r\n=+ozk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCW5Nlwe9xL7IMGkzI34SI7Y8kNlpIbHLHC3LL90MC+BQIhALXWCB7AkeRe6cBpHwc1BCXk84tCT8N7xPuwg4HkzYeO"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565944352.10_1565944369460_0.7402609076671203"},"_hasShrinkwrap":false},"0.0.2-alpha.1565949238.10":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565949238.10","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"0.0.2-alpha.1565944352.10","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"de87025d6849e4b01d0a59f565279052fac3f0f8","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565949238.10","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-U/djSz8Z1nQMMP8F7fEpQ7vOa3hrF4Jtl6LV5FR7/o2bNXTuBgPbI3z2hO7gxIa8A79HYlC7yCo+6KiqFSj2Bg==","shasum":"7a874a9f4832b060e748aea0a8d3ba864a85c75c","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565949238.10.tgz","fileCount":60,"unpackedSize":78870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVn07CRA9TVsSAnZWagAA/gkP/R4T1Pq7dqSD6bwFuQ0Z\nv34dT8cVEAYy7AjZUbnrS9WB1Ssw4NYJi8UO730kCAnMfC4p9HoSfQVXZrBC\nJ6krsSHUiXllFCVj05maM11Wb1WG4nXSeqrg4T4Dec2hea107RKfmRTJCew3\nunSI24pOhFAvK804MOQ7EtsvZ9nz32Wm8WQL3bfsSmpRMG2Rub185IF6aew1\nPPwTFIa9DQt+yxVXSDnqfWV+VEU5g0ZVryfKoDKNhAetQDRuBs+5nfxPA66U\n4WEtZQTWn11x41MmBk3xmMAvi16c2KIjURrJMqWeQNwbZExHF2hkItyAFQQ2\npm52iArk4TF3v08hQOVhw215yagMhEYSbevynDUikXv5RARnlDxfnFzewPlA\nJbIU1EtpbrngqOnT1LlRVTnC7fOWXHaFppSH/h8/C9gL3A3eDM3JCHjNW2cr\nKsdBjYnq4Vz/SR5IsSuNUq6sgyzFqqNwuJ5QqN5lx/eU/Lls/1qDr4TJVtrp\nuykmd+fE9cItfw3urKRWXp9SuTjDWzIR3HmRnUelcCBY+xjplp2/0kd8pLKm\nopdCO8Onw4+5yQNXGVJ/Jo2C9u0bAH9gTFdVkrLd0CNXY6+c0e2V8KLsmUAn\nsIDpEM5ZF6KAyRJiVnT/WnFTscdngA0kRkRyg07qo1f1KKBq/0Mac7rLZgmX\n7uPu\r\n=n7yi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHz/Y6e4a/dQwPJUe2s7ZCOcv7lvqDj72VTIXegnso6iAiEAqJtZJhj9YwtUYRP3xfx96CTX/ZtG3Ot7bUjE2IoH8g0="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565949238.10_1565949242669_0.06351717995980688"},"_hasShrinkwrap":false},"0.0.2-alpha.1565950770.10":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1565950770.10","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"0.0.2-alpha.1565944352.10","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"0fde1a4573b900867cb3086e4d0d01ca5fd94831","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1565950770.10","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-LjM8csX76yN69wr2WHRw8XkM9f5iprZFoJwJdf/AmYo+VVcjFjYLXoTs6p3Sr9/asm0BkOdHi/4QXW4H+QDOEA==","shasum":"3d81e5a27252b6b14859166ba598ea2878e915d8","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1565950770.10.tgz","fileCount":60,"unpackedSize":78870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVoM2CRA9TVsSAnZWagAAv04P/1bEYV9gG5ex5GaN5BPp\n8BlY2v4WW0W7l2p4YjJGEA6Xgy4QZGU6fz1tWuw2re2wqUDmsn/NwgYX2Z2N\nmFnq/Tg/V95I5T9wXnmkZT3563QGVfZQiRT7RFOhe8kPaNuF86IYtW/K4Qfa\npte3w7eNJmcJIosgL6M1+mF7d0RaNXKcVTDR1oRE8mZjM7mxehKdyzGTS/aP\ncayDheJC17YowUKgObc2Vlfj+qureYO24KvyxuRGjzDZbMHkv+EGdXKL/gA0\nHE6q5pZ7uHyJP9myhNj0LcIQtXxqE9o31e/otDBH1DnZpDTzYVt/1VL080HI\nCgUBCkOgj+VgAoEtUzHULryRnWU3/wBYO1aqlCFtiyzwTBaKxW/YgS9/3fa5\ngScT2S2elDWzduXQmJkyzMX8q51itS3rpgfYtrDVjIEC+c7Bh88LGz3EvEd3\nfIonzOuvMC0B08vLEqgH/+Zy1ORTMCAKs5ELgeo+jj8ygZS9rgd8mq+H9yns\n5ATEAlLYWrfOM3HTy/hi0S+7poqiVEP5LFKf1aDepxDSR1pThlfIMxbd8t3E\nEOiA87YPBH/eXfAVErqlrTt4c/074QR/424A9bnRi5eC8fXlo9eyV6ZI7+B/\n9x3+LI99XOYu4uahmSdqRC8aS9zpCIMsXn2V3JfArWNTPqTynMXm4gxR2Adz\nDQTg\r\n=mQks\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+FCt7EYV4RM3PCJn0kLvgiwdTR9PceYsDJR7d1+sq8QIhAJXvX5HM9WVmlfigIqGRyStQxUcJ/nIihx6Oj1VilcsB"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1565950770.10_1565950773728_0.969393415391465"},"_hasShrinkwrap":false},"0.0.2-alpha.1566111779.10":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1566111779.10","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1566111779.10+e21d95f","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"e21d95f541665670a542629b1a2a56d0519fb9ab","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1566111779.10","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-RTg23igUqsi4YDaSwEjnHO22nwy8Kk5t8slVunMVFQFFUFbbPTAnVBG25mtxZheoRbieG5t2gLEmoVBprE0Z+A==","shasum":"bdb7db358049918ae7db8d3d513b81dc84b65d2c","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1566111779.10.tgz","fileCount":60,"unpackedSize":78879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWPgqCRA9TVsSAnZWagAA9ScP/3mYclTbzV+UGRzLxFKE\nHI4or2BBXGBsScsLc9edNS1hDGR2LV39jvx5UMYY1hSulM5rCkLQ63Vb8zBg\nz5KGpO27L0eYgoXj65hgnOrfrFXQl3Iwn7jUzGOkmIRlFDKNXNCykEM4USHZ\nUJxpOFeSmdcX+j8LOlqmdGk+zX7KrBKs56sDzOAcVD8/wzahmWWY7uMVbFAm\nYmnJCaulybjKbClPjoXutUbkjgHFYjB88hnX9qaJrQ+vSwMBwXna6f05SboD\nUHXPTbK1fSLi2rSha94z/PVxuXNvxnlv5gfL6w5qeiw7omfnyWWGjw8cw4lm\nr0/6b88dwyC+uZLWxhtDf19TCYcTiPuttKVfzjDyFkz6x0MXJpnOTN/Khtjs\nQNSbm3k/jLQkuZVbwPazTImWY+rmdXNrp9LS6D7O4IAapMalKwj/uf8cDwn2\nizz/RIHw8g4dSNXh4GrNBei1K+VuvMvDgqTihE3AkPxVcvgGaBjLkdW4Any/\nDdgbSh63HmTzEnzEkd+y9PpiHl/V+N/qlxfZEqxzMktFcY18HLEuUaxDxc2J\nK+Nm3gGiuu/9ACBxJCQ5GTNM8FzIZ+2ctAjNiwEjq1sgBCI9oxuTr7jpxGx5\nw4XUA4Qf8ybUafOWnkyW4n0ADXTfNOJS50oaKwu2abRmEIqdnB6TTcjQ+Wqx\nMaxX\r\n=lnZM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFzXqXpVqmL9GHBYjxoeBtlmbAch+GNUf2b4opf4pqQAiBkQwVjs3UR5VbsgMWxrCHFZXrQvScyMCqVRnq9ZXB8JA=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1566111779.10_1566111785832_0.2266678244546858"},"_hasShrinkwrap":false},"0.0.2-alpha.1566203317.11":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1566203317.11","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1566203317.11+7ebda14","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"7ebda145c683ad01c109d59c6d0b2f5700d4440e","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1566203317.11","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-6qqlF/HN2Yz25uGcFgKDd1pWc7K4DlEw/Aaek9q68yJkuLlPndvO+g17dIyc5sdkuzavg8KpaTuvN71YTtUu9w==","shasum":"9e58a49ba9aa6ccd0804a67413d65fd6a02cc75c","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1566203317.11.tgz","fileCount":60,"unpackedSize":78879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWl2+CRA9TVsSAnZWagAAPCkQAKLyQXc4ceuISFb15l/d\njXNM8IvLrH6RI5W5uaEN1gFW9e6w4rgdJOPE/s8tOCP9OxvjhkZOPS65V5wm\ny60ivJWkEBxZoJSzOd2O1yyoqjqnGb7W/nGsSKCTMdiIw/+oBdgx1UHcBVri\nLgdbd+k0z99DgbSK10zOn7QrtMnuSa5IByT8gHNpMt4STzmuQBsGwmMI+JO/\nSp7HAL0D2XEIWo7gFI2ij3u3TKFS7CDLC6+o2KIdNuLEK3MiMfihkMLeuN6n\n40YrQtVTg78V4X+/IFdEaLb2mhDKY8PPZNErl26XzGZ3R9mVcPDiWkGggvNS\nHoQJalDHRlQsF4foTkFDIG7cZCCAfNwiXz6FAp2dJFrHfzRzLKTE2KCXWT7U\niCYFQK93XtmQxApX6jZh1uPNg91AP/pbR78/3iF1HBSzv6oEmQ6kkqq+R6Ey\nAtL67iRf/ZC8lSCRdb42a0jApm/1X4LAZsNWWcYCzKO9MGI+hIIHT/ZGObcY\nXbpKRXiRNOwS06wG41bkTYKNyRIuDWFwfwOtJLlFs9a0KfHhyZ19ZViNQVg6\n9IYGxTIJOPIUnTiMlWzNzRJrVzIRJsQNBlSdH4RzzjqxWqnwZSJxKWDyJu9P\nPMSSJ4gyBC6OAxVsYda3Vc+p5RjOFLKp7eThU/0JigYOnHEVWOJF4ydqHfXr\np73v\r\n=hO8m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQH/R+P8Z255sTurOB/ujX9bqVRN2/38ZYaIUn/Zl96AiA7n3h0QUDYEQ5+l9YYJ4TOfTb7gaF5o+kA45gGB9pj7w=="}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1566203317.11_1566203325657_0.5373216173692039"},"_hasShrinkwrap":false},"0.0.2-next.11":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.11","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.11+974efb0","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.12","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"974efb0e413fef4e064fa1815504dff2756e789b","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.11","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-WzXe1sYDVzHYnxudrh83oDbA4RGciRUZS26kRtz3xXxxjZAHqx8Wom/sf40v4Yh7kinScGBtCWBMn5pLV5FfKw==","shasum":"50cafe01217611aa4f2104449712302eeac5daab","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.11.tgz","fileCount":67,"unpackedSize":124531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWmepCRA9TVsSAnZWagAAzO8QAJPtbXzOyoMMo86xdxpI\nihHOMsM5un3op3Fi+YET3Nul4p6NvyJsUtE9fxPS3oHIJqWe/SnssupEZ1Z5\nFx8ER62hHMJ4PD/PfT9RpoA+uHCgsgwG2P0PmhubPcNn6+in+7iqVX9MenMF\nsyT7kHVjMaprKYPv5/rqXKI5V4VdyFLuPve6X7I5MQ/0c+2/GwIhyl/TjrXr\np1hHlbRtCNPy2lmIYfMEYhyQeS5udcMcRMvUlpwCnt4nffQOzdfBjVS3oqx0\nmzoq6IGNUSYXhs2nN939/+enXxMe/TrppErNz20Mhu09UYVnz1l0wWWffq+L\n9iSJBLxO52T1fdDSBM6RhkUu5OQQyxS/8pjGSPKxhrHVGt1bEX3+5fiBXSZB\nO9ih1hSqJeJ2PnmLsV4fDq25WdHL+TiaY3KeEMcxPFGObqP7+SJGlZRY0Jrb\ncvjEcLgqoLYFaDG13kqKYkixEgWdGNJiMMDgo5odZufswOZiGa7MvvJkOWRq\nt+5vINP8MZFphKaaVqfgRsYMAe2MKiimhjUDs9jcDLo3IMubC6X0Zps3DT0S\nddE3Hs042CJ6N9Lm0cMJmrYo5ROcuri8Nz925v4O+IDZPAgOFbaLNB0O943I\nUEDLR5NvIImnw4zJhxtsM9dubD36knEWf3C6jnwXNRsrTG/ICBRPmAHyu2ww\nMqr2\r\n=ZKo+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiLbCbQ9fp96WquN+MXAEPS4SwA0Ofwp4lEue7H+OzxAIhAPj6Ut4pXmumtBf9Xa62e1wcEL7QENROeUteaQ7s3DdB"}]},"maintainers":[{"name":"95kach","email":"michael.paliukh@jivygroup.com"},{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},{"name":"idanilt","email":"idan@ilt.co.il"},{"name":"mikesquall","email":"michael.arbib@om2.com"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.11_1566205864727_0.8283826934965164"},"_hasShrinkwrap":false},"0.0.2-alpha.1567172799.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567172799.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567172799.14+0853545","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.14","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"0853545646e9075b4c1c43070d5b2de4dafe8143","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567172799.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-3UM7DSTGHJhdi79p4vKexLqjjZ5kGGMWV8kza1zKgcWNZeEtkvVgotd+G+03qQYJrb78kkVYlYG8YQ6EWM0XpQ==","shasum":"2f8de1532cf2a123be26126b6e5455112292c826","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567172799.14.tgz","fileCount":60,"unpackedSize":78879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdaSjJCRA9TVsSAnZWagAAsDQP/jIhla2ELi/tS77fwpBz\nNmnqktvnCSBMQ0rOwmfoRsvQHXX5j7qTQniBZ7GqhTn0ivGY+CxfhbvMpz6g\nddG+eVg9a2nzb8uolcqzv8NTQpM6FJZTCmqSEdx8DdX3tUUasALNXF81URHM\nuTAyp9xIwFIFN3UBzkKiez9csCulps5fzBTNjim3tWm+2A0+O+dcH5bjVmIC\nDKqN1fvcEcJ1mfg+lW+RwKnbyTALd3gYF5W0LloIEdCDPmX/qscWt70tCFHd\nkIgA7bZHqvDgMp4jJK2KNIl+lictf2A4vo8U97BKtU7fc6cG+SdZo9F/E6um\nmTWtPD2c3Lk73Ylmxg2KX/OEWrvrrFKJWW1ZYBl6RFRuYn0cGmDADGjniqh2\n46NAjw131IGx03Z2cJ3SKytmrQXcaa9Cl+Hirw6PPq0UdFJfzrNHEVdhK1Ky\niUjrp9+v9g4ek+Uq56MsafeaqABx87ssX5AZE28WMW0ZSGUiy3LJjNK2cl+t\nwnTvV8ZuUFSV4rfIQjrcOcP4HKvPWxku7NVa+sRAq3xDN/W4RZZC9WX+6xdD\nifxrSdz2frU8q8CWvkyQNvh6ViO027T+hURPebvxu9q2Zb8VO4YlV4S6ySuW\nLsUsa+Ka+BnVTmG1XpwLD6yQqFaZM156/MmUi+PLo7WrFNBvepYTXJgC5ltV\ncqjY\r\n=13wg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaPf487Y9ckN+9RJYOQDpE0qML3KkYPupWO/0JWjfBoAiEAvwRKUcNGdRm+jTWC2iSpUj/Pj/s46tEl/hlX3cO5hvo="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567172799.14_1567172809372_0.564814624650678"},"_hasShrinkwrap":false},"0.0.2-alpha.1567234320.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567234320.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567234320.14+14eefee","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.14","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"14eefee4490fc31549f8c2aee350983b6d1224a2","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567234320.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-U1cD6ILKh08XVmrKTDflWtCglk7yJQnVW5JpaRNzSfcMFUUewt48YmSYVUxvAHl63Z8/56BWlPgSYZVZn5zQCQ==","shasum":"74d45dc8d6971149b819018769bfec8a573da042","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567234320.14.tgz","fileCount":60,"unpackedSize":80058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdahkYCRA9TVsSAnZWagAA4iUQAIFJlp5i8s8QxmSjRLJe\nuv1DsL7xewVzT7JVc6oJF8X0E+Sm8UyS0r7qLLdJdOyNAvV3y03WgPVIHflm\n8w+Yj0juwxSo8BRWpMJ0hbhcRwNH+Hs+YORJ+bqbkT1o/s/SFME4qYXbx9m2\nTdHwiQ+gIzPTv+0G5W0dWNS/L44ZTppeCrueoaEYSCOq4n7TIjNaJBAbXYIQ\nUoMSXppWP6k7zHzpw/86yMIn9wydTziQqkc9YuBbMB2OTQDiJISq88heO6Zx\n0n5Pn5mGOyu4Kfi1MKGn/tpV6Rs7KE/GfIMRvfM0Q4vLDfAJRSvNIuXUhVxi\n7x9LWNbwiBB4pot4klSf/alJ61+JK50mLkvR9q2VfN2eyQEHajQOkG7fwVRz\nwH2v5h1FnJmJy4XJaclFf9OTQzVsIw+o/dA/YQdMVQv56cgBiRWRgIN60Q/s\nhimYXIGdidPuuTApi9bDXyUyoj+2MzB/NTXOM1+m9BR/FPsfPN8iQ/dRd+C8\nw5uEPQ/HolhTE/SR8TzMuIwtOzNUVCx9kIlsTkJ3WRvq3oOAvJcJZ47/mFAe\nLPQJb9wdEvklC9X8hsTzP7eJlwx02CAAMydYF4MgVLq936vPUD3Ii7MSoSWm\nS1m9PO5tuiXNcNivIKr0nnRAkZ3hsXmjTH0+3nquWcoWspehTh7BC27Ds/A8\n4ol6\r\n=vaTg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrzLJgi2uAfW53KVLoVTQWRXUQYqayV1mSvNoZMeHFTgIgJciwZJXaTLpoHDF/2Z9/bkrImVeVMrqyReGotWGK0pY="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567234320.14_1567234327641_0.747098865733592"},"_hasShrinkwrap":false},"0.0.2-alpha.1567239233.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567239233.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567239233.14+04cfce8","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"04cfce88e125f56d3718c386c84fab6c309c54cb","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567239233.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-jnalDlA5zAbNNiVFFa8g0mg43FwarEpb6nuFl+pmlOBHZ4O8MEXwkxFyeFGJpQeXkrGxqqMv7IvpRQeLW4zHFw==","shasum":"b534408e2ef87281851edf3a0aa5f7f06d29b31e","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567239233.14.tgz","fileCount":60,"unpackedSize":80057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdaixICRA9TVsSAnZWagAAiSEQAJ+PCYFE9ljtmjdnrNJR\nV2N8LVhp9ETCeqq6gC8rOQGmi/5L4gr0nscLoJ1AWQ7v1T5rwUSeobouBhfR\n2eCtuM6ogj1DoJvr9coeH3/8xmDrTk1gS6ZHj5+NMN5wQ7+a9VWylmZB+GPc\nRn/KYjPqXtxrIwlK0+u+Z7A7krMliqXm+9oMACxmS142vLr/7QLd9f7jwqZ9\nBZJpIbn5mkeSDjo+AvrI3IQSHloClucfZva3Maiz4cRLZxc3ausNzACwNVH6\nnBSVXvcJwKaj7wd8MCzudMIqAsvtHgSRGzEU/RnCYtF8FVdhjE8StEOd4O83\nsse7ULLqt/BSgmA4AMJZxahwPTeNzN73yKxvN2JCgG+H6I9mM5R+z8RhvVRq\nVqOzGzrcxcqslIfk3PcD20Zk45n3WLpUyrRCnAApzc2eYzlAeYREjq9H6aMm\nkqlvJsfoyqK5gLoi4aEbf635heVkTG5zKsWcAifY9X0qCtnAv860vTDcf43Z\nvZvAJ//ktw5yJZ2jb8WPpRry/E9d4VgE8PF5J//YuOimd4xX/QybXiN0RK7f\nMa2uYMzU1ZZExKOlL9HQ2OGCq2plTLiV1juE7zilAezqefmw1f1u7FI67ofH\nv/aAIbXo02PR1eUaw7Wof09oRjUGtz4Oe5WYAtYxrh2qgG1kbEVaUAZ8gUY5\n4cPp\r\n=/AeT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHiAKDa2fph1e92Dv11eFCAT+aPHUnL4Bs8ygFI9/HCVAiBp63zQQEwKwYIope5whjlJnGLXx9cTfPSiVfoYBbsNTA=="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567239233.14_1567239239865_0.3044079891098821"},"_hasShrinkwrap":false},"0.0.2-alpha.1567240793.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567240793.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567240793.14+38eb4a1","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"38eb4a1d81d807cae5d8813bb14198a90d68a74d","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567240793.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-CmDFLybDyDd86/42zZTU8ZWOQKTZr7dYS9lV9/xdtSp9/vtmX4E9iwdEzmnukHXOTJgMluQ+ThjwolayZ/ApFQ==","shasum":"38dfe56265fb8e8b5f91d622845d2cc909fd6dcd","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567240793.14.tgz","fileCount":60,"unpackedSize":80057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdajJgCRA9TVsSAnZWagAAdYEP/23g8cOdquQK+fsjAp0J\nWOJ/FUUq9x8vYnrw9ajqCpCwbY2aUlOItdOAmUq4GjG8KarbrSoU9eBMrSOV\nj0GJ4zOBGB8beAgzRaJk/QParwy+2/mPhNwvoqXwN2PWVrXmt8s+CEblTkxz\nl8ZkXwVltrX6o6ku3kyuTuM8B2kgnI1Xti3ey+vnJ94hbBdbm9XMC0iRf5mM\n0Rd4jITP6c1QTrg6QpM5Fr9ZJtrcyfTwwXyaeK37Yll9u1MMyMWEx4IoqMRg\nQY2JF4Zq+lqKylbEdoFno6L15UcgKFW44TFcurQVOKjOWUuualZTvN+yhoI1\nvlAUV1MR3lrBDAFCk5bd78kVakt4HXeYqBQU2UTj2MXgs1aI2Ph0YQGt08hm\nJdWDG0PZsP1traxEXLNseCU2un8ar08VuBhiQWsF0yU2qEJBGChjlIQikeL/\n07xSXN7QjuyjTwM3+6ew2JXQfnegzZCbx4EmUiISDojKOpotOyumjyJbbobS\n2CwCoPC44HsQJNjg5q72rLEtYBZqB+QUxgUTTIV0zwPdRnQ7i1U+eRO3k4AW\nLL5zTEAptweJnC7ydejNpmuWHVIhw+v1mQq4s/0Op2Bc5WBKqkwMtdgXeazq\nZtOqN5tMD5DcVRL8oq+ELvFJupDWw2bCso+U9PSvP4KX1l4/8s4z48wNh+Yl\nkWKw\r\n=P36I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhX6iRwTLTOC2I3Hd9MewrSCfrkWn3DJIboSbj6kqn7gIhAJnNIXDqVFX3AHvWgc6IptHaCV/cpWjvXPn5azd1v1OA"}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567240793.14_1567240800152_0.43977647571513323"},"_hasShrinkwrap":false},"0.0.2-alpha.1567322639.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567322639.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567322639.14+efe8d05","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"efe8d05d4c1c2fad948560e49dbf0bd4b258dd42","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567322639.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-KFk2VPpm+IpLbvgZOdvDV/hJSbs/+1vi3IsBCMGIUAHKZWUnBJcer/vTaGkHoTh4kOyWiaifYn1bnVuDp1VE0g==","shasum":"43a0e42b81bcdf9c10b1369acffbe33133d978eb","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567322639.14.tgz","fileCount":60,"unpackedSize":80080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda3IXCRA9TVsSAnZWagAAhtIP/26RZuGN9ghbEe7J/yjx\nbtbeUuigXWWBQktKmfLor8DwLp8RpFfW5/oL/aDEc/50FyV0mmDvEHckaymo\nxXZ4l1SwBmJqBkMVCU81B1FynyAyQ5pv1DNuoxxALTyGxSK3prxYvMdqb9lR\nA97UOc68+0pewY/KgUmNHeDiA9LmKbWGyEx1BbEjtjmmw6hurXxIYDme2q+E\nIwP+Lkcz4KqjQ5Wj7qgJxa7sR0sjQu7HzOA4j65QHahIGI2ZzVCjvVXrZBr3\nEZzYzruU5tKVDFxfMuON7+UPyqsCS/aiTD9DR2FxMdhwSFf/FQbDTA5Kpttn\nZF0InW7+Ns7wT9KkQQ9nHK17Yj68xNbIwSGBmFJFflganUUYH/JT+6/adJTL\nIqtkmAbUYH5YX6E8BLGgKslVDfS88SzX5YFFWGD2Vt9UYjt3BVtxF8Yi6GMD\nJYjtmU3OYjX3soEG9XYKi1LYrznjWZbA1dy1jb6Mzoikf+OdtXpmtGL2h4mk\n8a609QRaSjdINti7b7EuyJvsHH9CikJknomsYwuuKtbUHv1GMVljEp+R7vB+\nktTV7rpzVmH+OZ0dzVrdzHLSyRsvDkL3Q0IWXmN0eKXSNloKN1rBFv91BCqo\n7WC/BInIGkbEKBbcWxud1LC3Iu39h4f5eRVLGd4EiZHzDAANaq9r3mRnZ8G3\nxbwr\r\n=8srG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPajSOjWf21a9qniPnhw09Ax//cInAtmnQ9Ypql/A3HwIhAP/rQAWUF5WWxfulaPN48pBIRsMVtmgcYkVcSLVBxDWv"}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567322639.14_1567322646805_0.5956483880290357"},"_hasShrinkwrap":false},"0.0.2-alpha.1567330424.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567330424.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567330424.14+0ccc962","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"0ccc9624c8678b307af9bc51f162a79e1cbf4e9d","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567330424.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-pzY/zihfLTBJcWvRWSZ0vdcCFCMHT8AtVitBH5eG55e+mZENXkSoA5iMl+3d2cYPTKyPsXql5+TiyCbVnpqRtA==","shasum":"17adf9fa865ab727abaf38462a2c254ae750e746","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567330424.14.tgz","fileCount":60,"unpackedSize":80082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda5CBCRA9TVsSAnZWagAAcKoP/3H6kCvIIg7AgqPKngez\nBRjxXD1X+7pacKrFOsbQ4P3EMnpU0h54pYMvmEGPAbkXHxGFvR/h2p8y8eXa\nwLhcYNdjc1UYCqdy3kMCDuuoTRQ2aSTSMudKi0ax7OG/eOoMkipBkLNwayCq\nMS1fbpJMPymjT4cyFuGMXjylIAjk0gOm6cMyn6s0z6t5Qsg/P4SvJBLNhqUY\nEbHOxCpOySmc4GPn09CgKCIKAgilTw/CvsBTvv/9MuoXQIOi4m8a7h/EaFsi\nQWbNXGLX+NDJzpyJwkDLLK59/GW1SdkuCCmoe1jEPgV03kvUaqXuYprEo3db\n7NshahDRJ2lSM3rRMsQy3X5hsyy/oM3SoLnQU2yURI1BUQWDwe2zgVIPLQQd\nkyEW3A6Doy54Ihslemq1XzRpQkwU6LFp9vm16kbA3ODg0fcV2lcqsuTyIjI7\n0rOdrI7dv/aO49EEy0v4TOmhloxRmTdx679SJ8JrmwK88GJGzVbVohY+N/ZP\nMUE3rgioCPnBE/l4LAUis7q7Y9rOOHh60fjJdJ0PPDRnHFLLvyFATwXtun/h\n4GAc5L+z3bJzWvWYbjdPcMaF0MC59CknL/GrQwMpZsb4C9DnXvacMAZ1rCAQ\nKGN037ranfP7LctYmlvz9MIREnloCYXzcTi9F6GQlYJHKttYkLDlryGgTS1I\nt9im\r\n=et6M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC81aJgBe92tgFaycfeM28flk6/vM3VcrBiyXm78OjDOgIgTBpGrCefkHulMt4Tn14p+Id66LMjw/p6KGIZcyYe0wM="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567330424.14_1567330432861_0.5591465863901837"},"_hasShrinkwrap":false},"0.0.2-alpha.1567332840.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567332840.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567332840.14+fcca80c","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"fcca80c0b736d19b425d0f954d1636d066e3cbca","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567332840.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-MMW2Zh6bXN0m59LqjEVcjZbcNk0dEieZOgtcq4LOvUcFFH6JeCEd81BM+/aIxm3vyjYjbHVOpexsakWQsmtb4Q==","shasum":"e6f813f1acd10196555bd9ef263c4a456572f3b7","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567332840.14.tgz","fileCount":62,"unpackedSize":83177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda5nwCRA9TVsSAnZWagAABdwP/jUoSj/sgSxz0WGZ4cX5\n0LumSkH2DJ3ctHVpogZIclnWlqDE+a3FXEMsJ80n8JwqzXvzsBdVjaAyaU55\n9SEAETeZ7Y01OLt27TcuP+6RaEGktgcLzmApqJSpXRFrSmdJyy5vuAeqriHc\n8WSp6i8ySzN8gR8VvAWc6JX6jj+MCZJv9LTa54vIG5UuwxyVB9ptHhlU79xI\nKHXcqo6LLOHLCaWZVwBk+gzEqtVyd/dkevO+wkM/8ZY1lhE8jxvbwAl8yu3C\nzSfpP7X9/oa4lsfelLIe6VJ2rHsHDp69SdNyrbrrVTfOPLXD4YrEdqmEh6bG\nWSmNXFIgCDx2OKa6sjVKWE+Jj+CviGWrGWFcancYngrKI11HGlF9fV7IHV6V\nLMVnnSqE8OomDbDQes4W1Yhq12TzdkqkwV+VQdzkRe7Y9TB01GH4VBw4nyf5\n/jq7jKjY999rOZDhlExqUpGq6dHiAavHiXBAU85lUtbTtSG3tprgROR80cGn\nh4E5oB7joX96f20mY6V53DW3yCDKpSQ+r51NSQ3h/Ezd3tzecTEG+pxTZJVZ\n0ykxzOGylnZ3QeR9pB+/YFYU/iG8N0e8v52lZddxA95oLun4XXyG1DzFASjT\notv2++DWtoTzb6Rmzfa6QYMNHnB4J2XL1PqJMDnF3C1GU9kjZxsibEnQ7fkO\nAwoh\r\n=V90N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBW9sWgBmMSMjq7fRZlMCW9DNgM1jKiLbBX5+bVZeR0FAiAi+a5AdXJj8z9Mn/7/M/GSYM2ZWtfgXyHQC1WUeJUAEA=="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567332840.14_1567332847670_0.4948599350798297"},"_hasShrinkwrap":false},"0.0.2-alpha.1567335839.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567335839.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567335839.14+95d1510","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"95d1510ad96cd5a9a2bf74b54defbbcebb7cb0d8","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567335839.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-pL+4zAuTl477zV7+dgzH0kAXLTsZ7efFQk72PU/OI/iPqg08Ubp5iAUcAoyCS4Ja/1p7oH9o6sK5OZH1+thz/w==","shasum":"717bb3e39cc955bb0460337cc4c79dce9293c879","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567335839.14.tgz","fileCount":62,"unpackedSize":83173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda6WnCRA9TVsSAnZWagAAIXoP+wT7czK9f+GfFDCsTA05\nV4bLXb8B3lSqx2sT2g+A2zYAoybNZeL+qbJL1i4b9uuPVlgha2VK9MUQfgJA\neLncvdcKyAekD3cv63QUb5ZSPu/jmy1KU6IdvPEZwvoMeLmlRuCIxzcTfNwD\nmc1NcuviPPxf2kgLMuByUqdtB8paaHJk7M3SS1Vm0ENz6RbBpmVvWnAwCeI9\n4QILSFV3+/2Ur78Ybkh4WAMDIscfuUrFnoGS/X5hmekmR9aidp5W8DUFIHK9\nzQUsxP0pzlfmUz5oYTsQLNKUzyhh7kkyicrGWmlV3VAksgeg7HxkoeTJ87mS\nqY7MAMj7+KFq/i7DT6AZwfL9uaytxbObyqsJ+MpOg403dRATG5oxivR5XVRa\nHUo5MXsT4ouyiQ6KVA9tpA0Z8XVoOci1IwJzt3wnrOHe3PDSJuL4wuWep/Hh\nv/9vlz8u5Ndr4iFGyDwU/DtAJpt6wDhpE2ghb8QR1ssbkqNEQKIba1DrDxyQ\nMLFwz2XNMvCrezzhDI1I2TuBSvE7Jko66cq/wZyevc5NFe9KIumQcyFWMtiB\nXkXDbtGYh7d8Ep+40Hd/Ee00deCRPeAyfsLTiZMYT9dD9GXzLbEaoWVfbhUC\nDg+4ljAQZzXEuqbUTf/yeof8iC4VAMr8QRO6cm+dIXyshOPSgIxzcCnwF2NM\n5s2f\r\n=LFcb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFc53WhUgn4cjVNawId/hfnBXszcY2xTdgqZQld6yEr4AiBlQrB0U6ldS14x+K2XbqXjlnaU0kj2CVAVIroeZeWPrw=="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567335839.14_1567335846484_0.17104040124952502"},"_hasShrinkwrap":false},"0.0.2-alpha.1567341061.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567341061.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567341061.14+7e0599b","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"7e0599b33a45df290c9ca3d189ad571ec8f90e4c","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567341061.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-ijcisQos8WhG3aXz85i/9Auw2un2xtKB790Dh5O1XMi2yOjSfKC4O91vlVj0eU5P2ipiivJlAqe5Q2dNbCB6EA==","shasum":"4789266decaebb1f77901f4b25133c6b8c13619e","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567341061.14.tgz","fileCount":62,"unpackedSize":83173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJda7oNCRA9TVsSAnZWagAAC20P/22B6LAbxnhvuHFrjER5\nIV3Kj1nW6mxuw2t8W7vxRBhPVcZnk+n8owvJLUkDegb1JLc91+ED0c0qDpm7\nERwHAllbru7eCA6XTm5Gzu8vXJocWiU7fBfDvJbkou60gVikSweCAkkd1vYm\nk2eKLQBIJKKtBhYVO2k/wPH7WGfNejk8iEPIw28zobpbo/C0+N86Pb/4esAk\nBvnx9ba8sL/Yd49kGKtF/ByF6bL+yBWRIt+16/VC7EGfea85o/h4m7YPygdF\nf/ap7OyFgOrEWrSGttrfn/g/vzeK1tQS7v8VeVsCuvieMLtsseN4KOxjcwc6\nyIhEyFsI4/+PYm2iO49ArLhEndGjCPhQ5HkOUSvEb6ZOnpmpF/a2zSGZ4Bjd\nWXyECyrU1VfzrD+GnihRSXmxIr7g1joYhUF1ewTxWpdy6D3BbAhIzH4Lho7b\n/K+5dbXs/mTsEzUU7jzz8keb4qaOLsfprmgs+9Bs+zwSPji3U6zF1DwhD0Ed\nBpq+em80LeqcEh+Pt15JHtdKwuu04t+PPeU932mZaAK/Uz63eGBIxRHFM9/J\nSaTKCkHx0jWNphjlvOVcJrnUVLtlRywC5mxS9lu/efh49IsvJDmVexZlRas9\nLGkWGkOoSSnf9qO5z58j1wwSG4F/ziuyUDr2wGFbCHtRitiedG1THEz4voDc\ne7kV\r\n=TWUf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEE6B+9hJhYRqgShvnSnieth0YyhqdpvgxNBNv0+DY+KAiBb6kNa2CRnO1y65bMcB+XY02Imz0UhYIQKuFspYx3iOg=="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567341061.14_1567341069159_0.2555653277706642"},"_hasShrinkwrap":false},"0.0.2-alpha.1567414963.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1567414963.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1567414963.14+a60949c","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"a60949ca76c12453bcc85e7b58fc14f50ec891d0","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1567414963.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-9fSN7rFpRF1DGT6Em/GXOBhV2g/a5rLb9AJxOhHnMH1UyM1WM+IjSeMdofVxa71Lf98rEIBz1MwAmFGZN/5VKQ==","shasum":"6fa0f8e5d5cef5d79582647c09618451036f1098","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1567414963.14.tgz","fileCount":62,"unpackedSize":84282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbNq6CRA9TVsSAnZWagAAeZcP/0KrDe2Gt0AZyvWsBeW6\nOoXYQPvDCAo7LFDeiLYfEBdU1nVAqIKown65f9ZaN2VyoMOv8uDFwb7Yf1ke\n4QfTpP5+InbnJwbc7+sMjcpuRDj2hLGtxXtUy6mAdRftXf0F0jOEAYcJ2cbG\nKwJvEYzZE2bFEU/LhXdAF6pgV+VkxqZQAbg2LkLsIFDoP1xEPHdnbC3HWi6y\nnF52evF/WcqNj5KewYUGrxnLsaYJaiPdqgmd9y+fvpPlhLssMiRCiV+pGHri\n97Q9lL2XkrQCUPU4QGsduRxBKWgBOXaSpQDJGosNzLFZSvcT8ezKjXSBcvIH\n4/JqpLxn9Ivux6+G9f1QH5U7oTLbZywgTR/ubttpxlf0JlgyLjwAx0MN0rSV\nU9omNIstuIfan54mE8WysimO3b4s+FIf33Ka2XaUxZQodbTsbJ+RJBu8nVXn\nxy0cbx+A9qGkzmfwcK9FHaLKkdcH09GAHmMjWDLlmcxNDXGFgVgn0ByccVbD\nwW3hRQOJx64fw5LZdB49pdEMHsafon9dQ+haYGsKfR5PqkZeKT5yqazUSSO5\nhy2NrresiqbrTvRcnLiliEcfGuA6xw3fkQRhM563K+Upv99GFtzJUVPxrVa5\n5n0LyNilfmPLLxktmvAoKzQfJ7puv5w2h0CXXabV0uKhh0tgGvnXkuHc4Lsu\n48j7\r\n=ne0A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAN4Q9ejKUQshE/J/vrXMmNNFci12V0Tdu8H6QNwcxWbAiEA+KbCCmVmioe9jGChXralTb/ha7PjvfYtKYjIQPhI8NM="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1567414963.14_1567414970007_0.7710374701014824"},"_hasShrinkwrap":false},"0.0.2-next.14":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.14","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.14+72d4a54","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"latest","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"72d4a546b36bc3e4328bdd27e7fe38a2b8bea1d2","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.14","_nodeVersion":"10.16.3","_npmVersion":"lerna/3.15.0/node@v10.16.3+x64 (linux)","dist":{"integrity":"sha512-d/mnWjn/wROmza5rPoikBlDkVXvyd/u6boIB4TzBvrhGPH2AnRmqXJ1dL21Ddf37LxWRr+d0awz7dyUowgdArw==","shasum":"2637e328a2219faaa63ef5cbf6a8cff164158e28","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.14.tgz","fileCount":69,"unpackedSize":130066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbO1TCRA9TVsSAnZWagAALtMP/3ib1iv+yaQLq9gJOtd8\n8bg8TgdshopvlANagPMzxRCN8a+LnXAJJKANZZJcWTZTvJCBe1JZlmZWbQRa\nfb1+fQXpCSodUspeToKTVZCMbrc3A0EZ5q2ft2aloOve40KKD8OjqaAxnXjG\nxLt0TF4WFU6QQKCys3+7ShF0tidoFdsue2ByDpYKxJU9bJ4Sm4gcsRvfCzYp\noinbZU8TTxLwjYZjEu0xTcfpDEqDm9r17lgiJbIVA6yeOsLBBKVYCpDC3iZ+\niOWGa+IHsxkYkJfJ0c/UjwtRqVXK+AkPXbX4ySxkcioeWSm9vqpMW8HziGY6\ntkiP8qCm94fkhK/bU3EFr0RTzvQhgqis15824AzaTvC6UAq+RydeRK3p/+0h\nxa0DxCanpCYTJZDaciKd4QeZcp1+9tQHthDejWboncHOwJwEmHUxw4xkOD3U\nd/4Cnwn5gxBN8RY4ymEp/PoYLuIuV2IR6mufNTnoapNgWy94jXj7KK76PJF9\ndy1JBCCmjjk1uS+c6iFOatRGRbsCqs18fTE38SPdA7xJC6cU0BV4cPUlCYVi\nB0eseARcXPleg12HeBwmcRG/sLsn4FC6AtF4EigpD6jZUhTWMdiKM+zKFGJc\n4K6aPakZc57mKh7wWFCC824mR344wtb7gXEtFWw+S57i87uefEAuGrU7UsoW\nP8dA\r\n=kpR9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbKDjpRIbA0TonK6NDGtN3qfSS4qlX/AeeqC6Z/WC7cAiBaYqXudQGk45mDVQsxQ17a2GKi6XvuWQHm+DWIYp6nXg=="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.14_1567419730749_0.8898134430763283"},"_hasShrinkwrap":false},"0.0.2-alpha.1575380902.32":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-alpha.1575380902.32","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-alpha.1575380902.32+c908675","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.16","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"c9086750e29cd2893da2a3879ae37fdb72b885bc","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-alpha.1575380902.32","_nodeVersion":"10.17.0","_npmVersion":"lerna/3.15.0/node@v10.17.0+x64 (linux)","dist":{"integrity":"sha512-AIuAFxwSQtwKsEB45WU6ZLfBRu1Ly9ehnoKj2sy2/1hb8CRId5HkqsI7eDSnM/ngdS0ClBRk/u7j+4W5SuPrCg==","shasum":"8475a74a7a95b3f45cb0bc7fb12e3721e9e939dd","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-alpha.1575380902.32.tgz","fileCount":62,"unpackedSize":84283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5me1CRA9TVsSAnZWagAA7qUP/Rl5BJe24ZtIi7Z/sanO\ntbK76BJUdIU+Jy+h/7k0YRloGayhJMyzp0A3PMsG4SfdVFI+ZG1n7WYLg5aJ\nPkfnBxcuxSCt1BpoU9q1KylVDDA0kN5ko/21xgWJlcBTygHQJmWpZ2F/2fSf\n477zOWgGBsOrmnHRUMU+48IdayZ3inZnmNXwCd2xRsPFD4OoKP+1hpbPQPXF\nGSTnp9tupnG8k47wBb6aC8vujaJZvtsDXNxZ5/507+V+6x5Q7HoO7WZZIWTf\nYLLKTDJZAvSHFbBbNuSIAYSC4/MVlU9OWWMFbtUmmSdV5U+A2MB5QjstaY18\n0KM3yDhjtmojnNxHA3pul6rqd+JFmaWPVCRdTpLRDrH/VBdWxLNB8HXHuax7\nyIiyEAdT61MGrV1pI+Ti+u7NmUdu+VPeVAB6ggQ7xTb9n7UpJTfM9e9Je62B\nev3+8M7gBF6a2/rC/4lF856y43uf/ccb99dASxl+pGKS/EHzkH0tpMoWhylE\n+Ovnsdc2EDgw+SKhRg4uS4mYg+kPlN8Ie38gGy1uD0y1GE7jUxc6OyeBvDJA\nxL86G92Y89z012/yM6Npkr0bQjl+plg8TnBfefmP5H8bzKz7bZm+DEXxIfbB\nTegmyshFSOsI0yIDlENJHPDfleUiBW9n/tcXWc8vrZNcrHbShdenOPCYEsS+\nXbWT\r\n=SABI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbxXGrgpEYgENRZuAo410Casw/s08PwNsSOEwSh10ZbAiAuMoWWa0gQudJCMqUhq4Z15PbmoUpbt0g+Biv04HdbnA=="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-alpha.1575380902.32_1575380916814_0.388321550186117"},"_hasShrinkwrap":false},"0.0.2-next.32":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.32","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"^0.0.2-next.32+4ee062c","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.16","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"4ee062c4ae6a25b3b0378ac4cff620fe12e54fb0","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.32","_nodeVersion":"10.17.0","_npmVersion":"lerna/3.15.0/node@v10.17.0+x64 (linux)","dist":{"integrity":"sha512-Jd3ZqonkMHWNn4r4+bj0N0Qy4P6S/W65Emc575yOh08BqXCIWod5x8uhLpesd9RZci6lhGnd2tc6LfxkgcCIpg==","shasum":"ab5d7786b90d0ce7c26e6ee2bf2d3494e23eaf2c","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.32.tgz","fileCount":69,"unpackedSize":130067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5nHcCRA9TVsSAnZWagAAh6UQAKOq3/KuWGyHJaqwzsIG\niKCo8KWF7HUkW4OsjAr40uUinernR0G2EAzisxw5eT7L8mrlI9zXRS4sTCim\nDRpFA7uUOboIlBeVdlrL8aIjWNYLR0KBGC/MfUCGaKG33wGSuDVxKll64g77\n5LiKiGmsnhO69Pfz3cXQVkjwM97QHcUFECNcZHQlzgYDXgsoFGAGiN7gPNNv\nD5uyN1XleMaHrZQw/zscaJjYn1qcU75oX0GF1wcMZDNE/P78M66B1zBE0oCL\nJKr8l7uXO66Er/X9sr6XYe2AEqhDOz6zXN3KVOacaN0pByk/nu+mRkAghAeC\n884RmSu6aGw2gF/oYhGhsqnEgyL5HQ8pOF9mPNYLwuT8p2AGgWV4Bb78wFA5\njwwDwoYi3wlYqMb/5rItEqJlif06Ip1noXje+pFXeWCp2C/Nh54JzD6IBVFz\nnYgbqbi1bnu5HumchU2w4WSB3eljDBFCKaoTOV2sbCoq2VNRiHXOxIMIZzfn\nP4BzHIu1DSn5Od3uVVNkB/ofaehlPU3R1e6m9VsQ7/993EUPwws5Zbhw9BDh\nOTJJKVrNoMnfvSUDX6miyuMgvCwEs6bG4Zrth9OhadWa2AXYR5jDYt0P/PEk\njI+V6zxuBdVgT7+wVZa1hoSABLf2sBOlinMxHo0iE8vO+J8qv3hkW/2Dwvwl\nacEk\r\n=5AQs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5bju+nuB3rrru24gA1NrPUX4n6hwXEPMWWcUcHmqQ/wIhAKR9RoyBxbSjdom1GFEgPRk+OgirkR9hpzrORPVapG4E"}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.32_1575383516080_0.390314604157215"},"_hasShrinkwrap":false},"0.0.2-next.34":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.34","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"0.0.2-next.32","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.16","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"1ea737f274b29f78f4ae5f47d8ca73fb63eb8005","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.34","_nodeVersion":"10.17.0","_npmVersion":"lerna/3.15.0/node@v10.17.0+x64 (linux)","dist":{"integrity":"sha512-h9Dl/t7iAhOljzSWrO4YBoVuAIofb4CsETz8rW3jV5IW8eK15xlWTTVptxj3A6WIrwaFoDht+j/XlA0ThB5SqQ==","shasum":"d132cbc830386060b03c848875d6c5d13f1a6c8f","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.34.tgz","fileCount":69,"unpackedSize":130058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd55X2CRA9TVsSAnZWagAAFDgP/i9cQv7jH6Cuts1nFxx1\n4DoR/EgRxustSwWiWVhhmeA7h5NPbhLq6bQ1np+7p1o8Ut2vwXExFirckksa\nCPVy3yYNgMM+/4VZhXLT49znPdGfM33HucFHdpIIvWlJg1PA+7jfDHGW2hlU\n3NOehkX2V4e/zbXOcdMd5t93s8c5V2dTZCVMB994z+uuk3Tf+b2dXDJjp32f\njW9/rx2oaB3LWm0UjJmCqNimAyFy8pzxFITCi6OYO97tnCP1z0SlBX2Zu01c\nrJ8n95YSbQoSl+MJ9MHKRCC41zMhMHk05pkqM8MhGidtfbKrPzRPofJXooW/\nwxr9sLKuOXMJ1rQDgJulEsyDUc/C0PkZ1cF0wL7SYNh9FagqD6ctU3HySNjN\nbXVnmltaYozCXd5T55WRs15/IX29AoUeZjTIHXYM7n137BP8DIMqjonopdRp\nw6w9WEJ9DOZOQKXo+XAZBPYipr+xGZuNZjLzsA/3Mn/45xw7el2invw5oRD4\nwUzbdnqWUai4OT9H0xboyvZy2U/JgPDjU1t4tSrHYl88pVOLTPrtanIxtAzc\nofU3xMYVTY9IqRtzad+Raiup/KkX/cX6lsGn4jDoWXec5yizHTgJ1fxGkcxy\nY8ea/acc67FbNNtB0I/Qh3Wk9dox4cuDeRQ39wp+evsOIHARCW0gf2NpE637\nNpOU\r\n=UfCH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHd3eP6Yc4bHTCpsjEKnTEykTQR5WZZy4Vg4/5/1AIVAiBccpOjO5ct7Brb6n/bs3Cg8exR+MBbHqu/hRmrXB5EAw=="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.34_1575458294481_0.20944885841617822"},"_hasShrinkwrap":false},"0.0.3":{"name":"@capsulajs/capsulahub-cli","version":"0.0.3","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"0.0.2-next.32","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.16","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"683bfbcb478282fe9f6a48a3708e4075e591b2b0","_id":"@capsulajs/capsulahub-cli@0.0.3","_nodeVersion":"10.17.0","_npmVersion":"lerna/3.15.0/node@v10.17.0+x64 (linux)","dist":{"integrity":"sha512-prk1S27v51UiiYeQ3bNh3k51/40RVnVZACQDZD2Ab5bDL6aO4hjsnxU39oTs7th4y85QOnGxvhZqoVRbnMV4ag==","shasum":"e9b6a488d853a194551dc03ba543cab42d7df267","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.3.tgz","fileCount":69,"unpackedSize":130042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd572tCRA9TVsSAnZWagAAlHQQAIMJESWlzyb9DI32ymhg\nPq16dQGbG45eiBKhLATUJaGC/LZQAQhMTu9/0/e7RNViyO+eREvw3L0LfRFy\n7ryYphzz/rZ1X1FzpbGz3DPKRAh8MRskhvFEtq3Gk01/2ZpKA8ul0c8FWfdx\nDtrfmc3FVMUfDEUSQeoAzbS8lo8oQzMDjyCG69BgF10rcJofL+BC2t4UMcvD\nVViDzmuBPnewne2bJeQx4vWULC1orBnBEYBj9m4Wag42stcoy/3uLeBk0Yoc\nWzY/7YvabMDvAwnCdWYRPyfraISi69cjjhi8V+NCDW/AM3idc0IAEXBTQEIA\n3qecelpWhSdbu8OyjtPysQO4JVU2Ue9fatQQi3NCwcWynH+Wnre8mNs5iY/0\ngqVDaZpJ+jZh7bwvXVNRAApdufzCj0OWNFuCbZdX7fVOvg59gNg74MAF3JX/\nvagFo7ydiq09R7dcnvbzFvy9pgy0Du28gmuSuKaiVn68+fjOxlMsHGfX86On\nqpQkTSeteBYGInvajbEpTISLkfWk1WDCjL67fLpymkRINHqhXcg7y7jhkaWQ\nuM7ehWzzgr/vIGhf45GNDfziFCOR6ExsABhP+TbiZMfrMFEdLs6YxIlQIzq4\neON+MkLiT7hI2iywQR+fwn0JdgQuXM7tX94yFLEPUfLizmT3sdHcghIOOCAp\ntANi\r\n=DjnI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvvYoT3vZocMeTM6ia/jUPS2ELfO46EqRWPhyJqdXqwAIhAN6Jo2rtx3OhmC0GaNSjIUOKsYAwTRWs6RFS1y5+o+iv"}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.3_1575468460724_0.2033215180336989"},"_hasShrinkwrap":false},"0.0.2-next.35":{"name":"@capsulajs/capsulahub-cli","version":"0.0.2-next.35","description":"This package provides an ability to use CLI to run and build Capsulahub application.","main":"bin/index.js","module":"bin/index.js","types":"bin/index.d.ts","author":{"name":"CapsulaJS"},"license":"MIT","private":false,"bin":{"capsulahub":"./bin/cli.js"},"scripts":{"build":"rimraf lib && tsc --build tsconfig-cli.json && node setBinPermission.js && cpy app-config.json bin","test":"./runTests.sh","test:debug":"yarn cypress:debug","lint":"yarn lint:md && yarn lint:ts","prettier":"prettier --write '{src,tests,cypress}/**/*.{js,ts,tsx}'","clean":"rimraf bin cdn-emulator node_modules","cypress:run":"cypress run --browser chrome","cypress:debug":"cypress open","lint:md":"remark . --rc-path ../../.remarkrc --output","lint:ts":"tslint '{src,tests,cypress}/**/*.{ts,tsx}' --fix","publish:comment":"bash ../../scripts/publish_comment.sh $(echo $npm_package_name)"},"dependencies":{"@capsulajs/capsulahub-workspace":"0.0.2-next.32","commander":"2.20.0","express":"4.17.1","parcel-bundler":"1.12.3","rxjs":"6.5.2"},"devDependencies":{"@capsulajs/capsulajs-configuration-service":"^0.1.16","@types/express":"4.17.0","@types/parcel-bundler":"1.12.0"},"gitHead":"0e9ee31aec6f2ed47d63456940ed0bfdc7a1182d","readme":"[![Build Status](https://travis-ci.com/capsulajs/capsulahub.svg?branch=develop)](https://travis-ci.com/capsulajs/capsulahub)\n\n# Capsula Hub\n\n## Description\n\nCapsulaHub is part of CapsulaJS project, it is one of CapsulaJS pillars but it can be used stand alone.\nIt is an CLI tool to help you to develop and test your micro-frontend services!\n\n## Local development\n\n```bash\n# from the root\nnpm link packages/cli\ncd packages/cli/node_modules\nfind . -maxdepth 1 -type d \\! \\( -name \".bin\" -o -name \".cache\" \\) -exec rm -rf \"{}\" \\;\n# now you can use capsulahub binary anywhere in the repository\n# for example:\ncapsulahub --help\ncapsulahub run --token=http://localhost:3000/configuration --configProvider=httpFile --port=8888\n```\n\n## Install\n\n### NPM\n\n```bash\nnpm install --save-dev @capsulajs/capsulahub-cli\n```\n\n### Yarn\n\n```bash\nyarn add -D @capsulajs/capsulahub-cli\n```\n\n## Usage\n\n```shell\ncapsulahub --help\nUsage: capsulahub [options] [command]\n\nOptions:\n  -h, --help       output usage information\n\nCommands:\n  run [options]    Run a Capsulahub application locally in development mode\n  build [options]  Build Capsulahub application files in a specific folder (ready to deploy)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub run --help\n Usage: run [options]\n \n Run a Capsulahub application locally in development mode\n \n Options:\n   -t, --token <token>                    The token that will be used to get the configuration (required)\n   -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n   -p, --port <port>                      The port on which the application will run locally (for instance, http://localhost:55555/) (optional - default is \"55555\")\n   -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n   -h, --help                             output usage information\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncapsulahub build --help\n    Usage: build [options]\n    \n    Build Capsulahub application files in a specific folder (ready to deploy)\n    \n    Options:\n      -t, --token <token>                    The token that will be used to get the configuration (required)\n      -c, --configProvider <configProvider>  The type of configuration provider (optional - default is \"httpFile\"). Possible options: 'localFile', 'httpFile', 'scalecube', 'httpServer', 'localStorage'\n      -o, --output <output>                  Relative path to the output folder (optional - default is \"./dist\")\n      -d, --dispatcherUrl <dispatcherUrl>    The url of the dispatcher for those providers that use dispatcher (optional)\n      -h, --help                             output usage information\n```\n\n## Example\n\n### HttpFile\n\nMake sure, that you have httpServer running on the port 1111 and you have\na configuration file in `./configuration/workspace.json` (the path is relative to the root of your server).\n\nIn order to run the application locally run:\n\n```bash\ncapsulahub run --token=http://localhost:1111/configuration\n```\n\nIf you want to generate a bundle containing the app in order to serve it by yourself, you should run:\n\n```bash\ncapsulahub build --token=http://localhost:1111/configuration\n```\n\n## Configuration\n\nThe configuration should be a `.json` file which\nmatch this [API](https://github.com/capsulajs/capsulahub-core/blob/develop/packages/workspace/src/api/WorkspaceConfig.ts).\n\nThis file should be accessible following the `configProvider` that you choose to use \n([docs](https://github.com/capsulajs/capsulahub/tree/develop/packages/service-configuration)).  \nThe url to reach it is passed as the `token`.\n\nExample: _config.json_\n\n```json\n{\n  \"name\": \"baseWorkspace\",\n  \"services\": [\n    {\n      \"serviceName\": \"ServiceA\",\n      \"path\": \"http://localhost:1111/services/serviceA.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceA\",\n        \"methods\": {\n          \"getMessage\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": { \"message\": \"Message from ServiceA from PORT 1111 HTTP File\" }\n    },\n    {\n      \"serviceName\": \"ServiceFlows\",\n      \"path\": \"http://localhost:1111/services/serviceFlows.js\",\n      \"definition\": {\n        \"serviceName\": \"ServiceFlows\",\n        \"methods\": {}\n      },\n      \"config\": {\n        \"componentName\": \"web-component-a\"\n      }\n    },\n    {\n      \"serviceName\": \"RendererService\",\n      \"path\": \"https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-renderer/index.js\",\n      \"definition\": {\n        \"serviceName\": \"RendererService\",\n        \"methods\": {\n          \"renderLayouts\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItems\": { \"asyncModel\": \"requestResponse\" },\n          \"renderItem\": { \"asyncModel\": \"requestResponse\" }\n        }\n      },\n      \"config\": {}\n    }\n  ],\n  \"components\": {\n    \"layouts\": {\n      \"capsulahub-root\": {\n        \"componentName\": \"web-grid\",\n        \"path\": \"http://localhost:1111/widgets/Grid.js\",\n        \"config\": {\n          \"title\": \"Base Grid from PORT 1111 HTTP File\",\n          \"innerComponentId\": \"web-component-a\"\n        }\n      }\n    },\n    \"items\": {\n      \"web-component-a\": {\n        \"componentName\": \"web-component-a\",\n        \"path\": \"http://localhost:1111/widgets/ComponentA.js\",\n        \"config\": { \"name\": \"ComponentA(PORT 1111 HTTP File)\" }\n      }\n    }\n  }\n}\n```\n\n### Mount point\n\nPlease notice, that the first component, that is supposed to be mounted on the application, should\nhave the key **\"capsulahub-root\"** (as it is in configuration example).\n\n<!-- To put back later for local dev\nRun it locally\n--------------\n|        What to do    |   Command   |\n|----------------------|-------------|\n| To run the linter:   | `yarn lint` |\n| To run the tests:    | `yarn test` |\n| To generate the doc: | `yarn doc`  |\n\n\nDevelopment\n-----------\n- Clone the project then do `yarn` or `npm i`\n- Create a `capsulahub.json` file at the root with the following structure:\n    ```json\n    {\n      \"token\": \"your_token\"\n    }\n    ```\n- Run `yarn start` or `npm run start`.\n-->\n\n## License\n\n[CapsulaHub](https://github.com/capsulajs/capsula-hub) is released under [MIT License](./LICENSE).\n","readmeFilename":"README.md","_id":"@capsulajs/capsulahub-cli@0.0.2-next.35","_nodeVersion":"10.17.0","_npmVersion":"lerna/3.15.0/node@v10.17.0+x64 (linux)","dist":{"integrity":"sha512-h6gtL+6IltZPQ9Yb0ZOC7sfjwlYTM9Nc8DHtD1J3i0EFqSRMrxnxmOXd/eL01Tec7id96t7UGdFHsIn69BzuWg==","shasum":"fe46854fd007093ba62e75a5470fe03885193be9","tarball":"https://registry.npmjs.org/@capsulajs/capsulahub-cli/-/capsulahub-cli-0.0.2-next.35.tgz","fileCount":69,"unpackedSize":130058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6MkfCRA9TVsSAnZWagAAFAMP/2iGf3UF8GgznvstVxjA\nm/14bps9g10euqarrTt+j0EKAswLVXo0Lhm5coTCJmwf4RdVZnxCJjkEiToB\nF7WgRQgg9GxDCS9+GtqgculamQW6dc2+eZLcVzYXqbkVFtKLINF4eayRJMgS\nrZpDt/v0cwFpC1SrDQLx+pw4i/FAW1mWQnGTsJB7JoO/0qZ0ajZ6ApuNig3X\nOppBK2LQgBdW/FvqvG03kqWbQcOOqgVcgZ8tS1miB5XnMlNtOCbn95b2Ln43\nqVQvdTs21qNLijcDu3LZySl0H9Xv90JlJGaNGKjmp5yZu9KVVmRwOxmF/h5/\nyQLxd9crKcQsNVIcvJh3FFR9ypdTWAcIy8CjkhMBvdEKoUiVZhY6ennf2GCy\nIbKa9LwPSyl9qq4jTsCosnEnPbTP8fFaeYgzPnP47LB5vKpWJEL0V0ihdfth\nsEM1ywsY49AqaxPFuPDz8DMrBNLgl+UH37hk/wUcz8GTWJa5ohuyvZ0FO2JG\nczvyD/NBNjoqPbX0AXy3DsSjArGzDt9pAO/glyfrrsuVuPxkE922PeTmLIld\nw2aTLqOnQXujQ2a3lOb8LfLJJfjtZ9wK3J/dEG//Z5znfcToO1i9V7jFNTYN\nYC34KMNFDRxAs7/bSZXPm1SV7+jSfvnu4+y5pyv8OC2zCw5Wv1X8aShx+9no\nKQUv\r\n=9oi2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGSe7g5Ju30eXrJg4ex6jZhypXBJ+b6/63aLEK2EV7gQIgLkMCLvPbAhU+tZWzpPC0lqlgghTL4TjddbNcgdo9sas="}]},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"_npmUser":{"name":"capsulajsci","email":"CapsulaJS.CI@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capsulahub-cli_0.0.2-next.35_1575536927154_0.03051019899593288"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-02T12:42:29.927Z","0.0.1":"2019-07-02T12:42:30.295Z","modified":"2022-04-04T21:46:40.759Z","0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562074006.163":"2019-07-02T13:27:04.830Z","0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562078010.164":"2019-07-02T14:33:57.198Z","0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562082230.165":"2019-07-02T15:43:59.004Z","0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562136096.175":"2019-07-03T06:41:44.815Z","0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562141181.178":"2019-07-03T08:06:28.020Z","0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562142230.180":"2019-07-03T08:23:57.166Z","0.0.2-feature-Build-and-Run-commands-for-CapsulaHub-CLI.1562143917.183":"2019-07-03T08:52:05.788Z","0.0.2-alpha.0":"2019-07-03T09:59:27.251Z","0.0.2-alpha.1":"2019-07-03T11:07:29.216Z","0.0.2-feature-change-capsulahub-mount-point.1562225519.0":"2019-07-04T07:32:08.159Z","0.0.2-feature-change-capsulahub-mount-point.1562227752.0":"2019-07-04T08:09:18.680Z","0.0.2-feature-change-capsulahub-mount-point.1562231829.0":"2019-07-04T09:17:16.256Z","0.0.2-feature-change-capsulahub-mount-point.1562236696.1":"2019-07-04T10:38:22.618Z","0.0.2-feature-change-capsulahub-mount-point.1562238689.1":"2019-07-04T11:11:54.908Z","0.0.2-alpha.2":"2019-07-04T11:48:08.335Z","0.0.2-alpha.1562249457.0":"2019-07-04T14:11:00.183Z","0.0.2-next.0":"2019-07-04T14:52:08.122Z","0.0.2-alpha.1562256599.1":"2019-07-04T16:10:17.137Z","0.0.2-next.1":"2019-07-04T17:28:27.158Z","0.0.2-alpha.1562313281.2":"2019-07-05T07:54:43.788Z","0.0.2-alpha.1562587243.2":"2019-07-08T12:01:03.088Z","0.0.2-next.2":"2019-07-08T21:32:09.783Z","0.0.2-alpha.1563195000.3":"2019-07-15T12:50:08.508Z","0.0.2-alpha.1563196331.3":"2019-07-15T13:12:14.035Z","0.0.2-next.3":"2019-07-15T15:28:49.044Z","0.0.2-alpha.1565077029.6":"2019-08-06T07:37:15.667Z","0.0.2-alpha.1565077289.6":"2019-08-06T07:41:36.607Z","0.0.2-alpha.1565087923.6":"2019-08-06T10:39:05.026Z","0.0.2-alpha.1565089269.6":"2019-08-06T11:01:17.392Z","0.0.2-alpha.1565106263.6":"2019-08-06T15:46:56.738Z","0.0.2-alpha.1565166890.6":"2019-08-07T08:35:10.550Z","0.0.2-alpha.1565167388.6":"2019-08-07T08:44:20.352Z","0.0.2-alpha.1565180247.6":"2019-08-07T12:17:47.573Z","0.0.2-alpha.1565183327.6":"2019-08-07T13:09:04.865Z","0.0.2-alpha.1565184726.6":"2019-08-07T13:32:21.579Z","0.0.2-alpha.1565185979.6":"2019-08-07T13:53:19.310Z","0.0.2-next.6":"2019-08-07T14:30:15.065Z","0.0.2-alpha.1565263029.7":"2019-08-08T11:17:16.527Z","0.0.2-next.7":"2019-08-08T12:11:39.392Z","0.0.2-alpha.1565620192.8":"2019-08-12T14:29:55.995Z","0.0.2-next.8":"2019-08-13T13:19:21.430Z","0.0.2-alpha.1565771176.9":"2019-08-14T08:26:24.294Z","0.0.2-alpha.1565774694.9":"2019-08-14T09:25:01.929Z","0.0.2-alpha.1565780037.9":"2019-08-14T10:54:05.067Z","0.0.2-next.9":"2019-08-14T11:59:46.477Z","0.0.2-alpha.1565790701.10":"2019-08-14T13:51:58.753Z","0.0.2-alpha.1565944352.10":"2019-08-16T08:32:49.609Z","0.0.2-alpha.1565949238.10":"2019-08-16T09:54:02.898Z","0.0.2-alpha.1565950770.10":"2019-08-16T10:19:33.828Z","0.0.2-alpha.1566111779.10":"2019-08-18T07:03:05.967Z","0.0.2-alpha.1566203317.11":"2019-08-19T08:28:45.783Z","0.0.2-next.11":"2019-08-19T09:11:04.861Z","0.0.2-alpha.1567172799.14":"2019-08-30T13:46:49.505Z","0.0.2-alpha.1567234320.14":"2019-08-31T06:52:07.772Z","0.0.2-alpha.1567239233.14":"2019-08-31T08:14:00.002Z","0.0.2-alpha.1567240793.14":"2019-08-31T08:40:00.336Z","0.0.2-alpha.1567322639.14":"2019-09-01T07:24:06.970Z","0.0.2-alpha.1567330424.14":"2019-09-01T09:33:53.095Z","0.0.2-alpha.1567332840.14":"2019-09-01T10:14:07.874Z","0.0.2-alpha.1567335839.14":"2019-09-01T11:04:06.702Z","0.0.2-alpha.1567341061.14":"2019-09-01T12:31:09.290Z","0.0.2-alpha.1567414963.14":"2019-09-02T09:02:50.144Z","0.0.2-next.14":"2019-09-02T10:22:10.922Z","0.0.2-alpha.1575380902.32":"2019-12-03T13:48:37.007Z","0.0.2-next.32":"2019-12-03T14:31:56.203Z","0.0.2-next.34":"2019-12-04T11:18:14.653Z","0.0.3":"2019-12-04T14:07:40.868Z","0.0.2-next.35":"2019-12-05T09:08:47.287Z"},"maintainers":[{"email":"michael.paliukh@jivygroup.com","name":"95kach"},{"email":"capsulajs.bot@gmail.com","name":"capsulajsbot"},{"email":"CapsulaJS.CI@gmail.com","name":"capsulajsci"},{"email":"idan@ilt.co.il","name":"idanilt"},{"email":"michael.arbib@om2.com","name":"mikesquall"}],"description":"This package provides an ability to use CLI to run and build Capsulahub application.","author":{"name":"CapsulaJS"},"license":"MIT","readme":"","readmeFilename":""}