@rws-framework/client 2.19.1 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bin/add-v.sh +92 -10
- package/.bin/emerge.sh +0 -0
- package/.emerge-fast.yaml +0 -0
- package/.emerge-typescript-template.yaml +0 -0
- package/.emerge-vis-output/fast-element/emerge-file_result_dependency_graph.graphml +0 -0
- package/.emerge-vis-output/fast-element/emerge-filesystem_graph.graphml +0 -0
- package/.emerge-vis-output/fast-element/emerge-statistics-and-metrics.json +0 -0
- package/.emerge-vis-output/fast-element/emerge-statistics-metrics.txt +0 -0
- package/.emerge-vis-output/fast-element/html/emerge.html +0 -0
- package/.emerge-vis-output/fast-element/html/jsconfig.json +0 -0
- package/.emerge-vis-output/fast-element/html/resources/css/custom.css +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_common.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_data.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_git.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_graph.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_heatmap.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_hull.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_main.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_search.js +0 -0
- package/.emerge-vis-output/fast-element/html/resources/js/emerge_ui.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.js.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.min.js.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.js.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.min.js.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.js.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.min.js.map +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/d3/d3.v7.8.4.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/d3/d3.v7.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/dark-mode-switch/css/dark-mode.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/dark-mode-switch/js/dark-mode-switch.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/daterangepicker/daterangepicker.css +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/daterangepicker/daterangepicker.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/daterangepicker/moment.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/hull/hull.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/jquery/jquery-3.6.0.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/popper/popper.min.js +0 -0
- package/.emerge-vis-output/fast-element/html/vendors/simpleheat/simpleheat.js +0 -0
- package/.emerge-vis-output/fast-foundation/emerge-file_result_dependency_graph.graphml +0 -0
- package/.emerge-vis-output/fast-foundation/emerge-filesystem_graph.graphml +0 -0
- package/.emerge-vis-output/fast-foundation/emerge-statistics-and-metrics.json +0 -0
- package/.emerge-vis-output/fast-foundation/emerge-statistics-metrics.txt +0 -0
- package/.emerge-vis-output/fast-foundation/html/emerge.html +0 -0
- package/.emerge-vis-output/fast-foundation/html/jsconfig.json +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/css/custom.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_common.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_data.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_git.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_graph.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_heatmap.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_hull.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_main.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_search.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_ui.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.min.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.min.css.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.js.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.min.js.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.js.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.min.js.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.js.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.min.js.map +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/d3/d3.v7.8.4.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/d3/d3.v7.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/dark-mode-switch/css/dark-mode.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/dark-mode-switch/js/dark-mode-switch.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/daterangepicker/daterangepicker.css +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/daterangepicker/daterangepicker.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/daterangepicker/moment.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/hull/hull.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/jquery/jquery-3.6.0.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/popper/popper.min.js +0 -0
- package/.emerge-vis-output/fast-foundation/html/vendors/simpleheat/simpleheat.js +0 -0
- package/.emerge-vis-output/rws-client/emerge-file_result_dependency_graph.graphml +0 -0
- package/.emerge-vis-output/rws-client/emerge-filesystem_graph.graphml +0 -0
- package/.emerge-vis-output/rws-client/emerge-statistics-and-metrics.json +0 -0
- package/.emerge-vis-output/rws-client/emerge-statistics-metrics.txt +0 -0
- package/.emerge-vis-output/rws-client/html/emerge.html +0 -0
- package/.emerge-vis-output/rws-client/html/jsconfig.json +0 -0
- package/.emerge-vis-output/rws-client/html/resources/css/custom.css +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_common.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_data.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_git.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_graph.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_heatmap.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_hull.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_main.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_search.js +0 -0
- package/.emerge-vis-output/rws-client/html/resources/js/emerge_ui.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.min.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.min.css.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.js.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.min.js.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.js.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.min.js.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.js.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.min.js.map +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/d3/d3.v7.8.4.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/d3/d3.v7.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/dark-mode-switch/css/dark-mode.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/dark-mode-switch/js/dark-mode-switch.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/daterangepicker/daterangepicker.css +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/daterangepicker/daterangepicker.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/daterangepicker/moment.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/hull/hull.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/jquery/jquery-3.6.0.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/popper/popper.min.js +0 -0
- package/.emerge-vis-output/rws-client/html/vendors/simpleheat/simpleheat.js +0 -0
- package/.eslintrc.json +0 -0
- package/.gitmodules +0 -0
- package/.setup/.eslintrc.json +0 -0
- package/.setup/_base.eslintrc.json +0 -0
- package/.setup/tsconfig.json +0 -0
- package/PLUGINS.MD +188 -188
- package/README.md +1023 -1023
- package/_tools.js +396 -396
- package/builder/vite/index.ts +0 -0
- package/builder/vite/loaders/html.ts +0 -0
- package/builder/vite/loaders/index.ts +0 -0
- package/builder/vite/loaders/loader.type.ts +0 -0
- package/builder/vite/loaders/scss.ts +0 -0
- package/builder/vite/loaders/ts.ts +0 -0
- package/builder/vite/rws.vite.config.ts +0 -0
- package/builder/vite/rws_scss_plugin.ts +0 -0
- package/builder/vite/scss/_compiler.ts +0 -0
- package/builder/vite/scss/_fonts.ts +0 -0
- package/builder/vite/scss/_fs.ts +0 -0
- package/builder/vite/scss/_import.ts +0 -0
- package/builder/webpack/after/copy.js +0 -0
- package/builder/webpack/after/sw.js +0 -0
- package/builder/webpack/index.js +0 -0
- package/builder/webpack/loaders/rws_fast_html_loader.js +0 -0
- package/builder/webpack/loaders/rws_fast_scss_loader.js +0 -0
- package/builder/webpack/loaders/rws_fast_ts_loader.js +0 -0
- package/builder/webpack/loaders/ts/html_error.js +0 -0
- package/builder/webpack/rws.webpack.config.js +0 -0
- package/builder/webpack/rws_scss_plugin.js +0 -0
- package/builder/webpack/rws_webpack_plugin.js +0 -0
- package/builder/webpack/scss/_compiler.js +2 -0
- package/builder/webpack/scss/_fonts.js +0 -0
- package/builder/webpack/scss/_fs.js +0 -0
- package/builder/webpack/scss/_import.js +29 -18
- package/bun.lockb +0 -0
- package/cfg/_default.cfg.js +0 -0
- package/cfg/_storage.d.ts +0 -0
- package/cfg/_storage.js +0 -0
- package/cfg/build_steps/vite/_build_config.ts +0 -0
- package/cfg/build_steps/vite/_env_defines.ts +0 -0
- package/cfg/build_steps/vite/_loaders.ts +0 -0
- package/cfg/build_steps/vite/index.ts +0 -0
- package/cfg/build_steps/vite/types.ts +0 -0
- package/cfg/build_steps/webpack/_actions.js +0 -0
- package/cfg/build_steps/webpack/_aliases.js +0 -0
- package/cfg/build_steps/webpack/_build_config.js +0 -0
- package/cfg/build_steps/webpack/_cache.js +0 -0
- package/cfg/build_steps/webpack/_component_handling.js +0 -0
- package/cfg/build_steps/webpack/_env_defines.js +0 -0
- package/cfg/build_steps/webpack/_hot_reload.js +0 -0
- package/cfg/build_steps/webpack/_info.js +0 -0
- package/cfg/build_steps/webpack/_loaders.js +0 -0
- package/cfg/build_steps/webpack/_parser.js +0 -0
- package/cfg/build_steps/webpack/_plugins.js +0 -0
- package/cfg/build_steps/webpack/_production.js +0 -0
- package/cfg/build_steps/webpack/_rws_externals.js +0 -0
- package/cfg/build_steps/webpack/_timing.js +0 -0
- package/cfg/build_steps/webpack/_webpack_config.js +0 -0
- package/cfg/tsconfigSetup.js +0 -0
- package/console.js +86 -86
- package/docs/.nojekyll +0 -0
- package/docs/assets/26e93147f10415a0ed4a.svg +0 -0
- package/docs/assets/75c9471662e97ee24f29.svg +0 -0
- package/docs/assets/db90e4df2373980c497d.svg +0 -0
- package/docs/assets/hierarchy.css +0 -0
- package/docs/assets/hierarchy.js +0 -0
- package/docs/assets/highlight.css +0 -0
- package/docs/assets/main.js +0 -0
- package/docs/assets/navigation.js +0 -0
- package/docs/assets/search.js +0 -0
- package/docs/assets/style.css +0 -0
- package/docs/classes/ApiServiceInstance.html +0 -0
- package/docs/classes/ConfigServiceInstance.html +0 -0
- package/docs/classes/DOMServiceInstance.html +0 -0
- package/docs/classes/NotifyServiceInstance.html +0 -0
- package/docs/classes/RWSClientInstance.html +0 -0
- package/docs/classes/RWSPlugin.html +0 -0
- package/docs/classes/RWSService.html +0 -0
- package/docs/classes/RWSViewComponent.html +0 -0
- package/docs/classes/ServiceWorkerServiceInstance.html +0 -0
- package/docs/classes/UtilsServiceInstance.html +0 -0
- package/docs/functions/ApiService.html +0 -0
- package/docs/functions/ConfigService.html +0 -0
- package/docs/functions/DOMService.html +0 -0
- package/docs/functions/NotifyService.html +0 -0
- package/docs/functions/RWSClient.html +0 -0
- package/docs/functions/RWSContainer.html +0 -0
- package/docs/functions/RWSIgnore.html +0 -0
- package/docs/functions/RWSInject.html +0 -0
- package/docs/functions/RWSView.html +0 -0
- package/docs/functions/ServiceWorkerService.html +0 -0
- package/docs/functions/UtilsService.html +0 -0
- package/docs/functions/attr.html +0 -0
- package/docs/functions/declareRWSComponents.html +0 -0
- package/docs/functions/ngAttr.html +0 -0
- package/docs/functions/observable.html +0 -0
- package/docs/functions/provideRWSDesignSystem.html +0 -0
- package/docs/functions/sanitizedAttr.html +0 -0
- package/docs/hierarchy.html +0 -0
- package/docs/index.html +0 -0
- package/docs/interfaces/HTMLAttributes.html +0 -0
- package/docs/interfaces/HTMLTag.html +0 -0
- package/docs/interfaces/IRWSConfig.html +0 -0
- package/docs/interfaces/IRWSDecoratorOptions.html +0 -0
- package/docs/interfaces/IRWSHttpRoute.html +0 -0
- package/docs/interfaces/IRWSPrefixedHTTProutes.html +0 -0
- package/docs/interfaces/IRWSUser.html +0 -0
- package/docs/modules.html +0 -0
- package/docs/types/DOMOutputType.html +0 -0
- package/docs/types/DefaultRWSPluginOptionsType.html +0 -0
- package/docs/types/HTMLTagTransformerType.html +0 -0
- package/docs/types/IRWSAssetShowOptions.html +0 -0
- package/docs/types/IRWSBackendRoute.html +0 -0
- package/docs/types/NotifyLogType.html +0 -0
- package/docs/types/NotifyUiType.html +0 -0
- package/docs/types/RWSNotify.html +0 -0
- package/docs/types/RWSPluginEntry.html +0 -0
- package/docs/types/TagsProcessorType.html +0 -0
- package/foundation/index.js +0 -0
- package/foundation/rws-foundation.d.ts +0 -0
- package/foundation/rws-foundation.js +0 -0
- package/package.json +111 -111
- package/service_worker/src/_service_worker.ts +0 -0
- package/service_worker/tsconfig.json +0 -0
- package/service_worker/webpack.config.js +0 -0
- package/src/client/components.ts +0 -0
- package/src/client/config.ts +0 -0
- package/src/client/hotReload.ts +0 -0
- package/src/client/services.ts +0 -0
- package/src/client.ts +0 -0
- package/src/components/_attrs/_default_observable_accessor.ts +0 -0
- package/src/components/_attrs/_extended_accessor.ts +0 -0
- package/src/components/_attrs/_external_handler.ts +0 -0
- package/src/components/_attrs/_external_observable_accessor.ts +0 -0
- package/src/components/_attrs/angular-attr.ts +0 -0
- package/src/components/_attrs/external-attr.ts +0 -0
- package/src/components/_attrs/external-observable.ts +0 -0
- package/src/components/_attrs/sanitize-html.ts +0 -0
- package/src/components/_component.ts +0 -0
- package/src/components/_container.ts +0 -0
- package/src/components/_decorator.ts +0 -0
- package/src/components/_decorators/RWSFillBuild.ts +0 -0
- package/src/components/_decorators/RWSInject.ts +0 -0
- package/src/components/_decorators/RWSService.ts +0 -0
- package/src/components/_decorators/_di.ts +0 -0
- package/src/components/_definitions.ts +0 -0
- package/src/components/_event_handling.ts +0 -0
- package/src/components/index.ts +0 -0
- package/src/components/rws/line-splitter/component.ts +1 -3
- package/src/components/rws/line-splitter/styles/_tags.scss +0 -0
- package/src/components/rws/line-splitter/styles/layout.scss +0 -0
- package/src/components/rws/line-splitter/template.html +0 -0
- package/src/components/rws/loader/component.ts +0 -0
- package/src/components/rws/loader/styles/layout.scss +0 -0
- package/src/components/rws/loader/template.html +0 -0
- package/src/components/rws/progress/component.ts +0 -0
- package/src/components/rws/progress/styles/layout.scss +0 -0
- package/src/components/rws/progress/template.html +0 -0
- package/src/components/rws/reformer/component.ts +0 -0
- package/src/components/rws/reformer/fields/boolean/component.ts +0 -0
- package/src/components/rws/reformer/fields/boolean/styles/layout.scss +0 -0
- package/src/components/rws/reformer/fields/boolean/template.html +0 -0
- package/src/components/rws/reformer/fields/date/component.ts +0 -0
- package/src/components/rws/reformer/fields/date/styles/layout.scss +0 -0
- package/src/components/rws/reformer/fields/date/template.html +0 -0
- package/src/components/rws/reformer/fields/number/component.ts +0 -0
- package/src/components/rws/reformer/fields/number/styles/layout.scss +0 -0
- package/src/components/rws/reformer/fields/number/template.html +0 -0
- package/src/components/rws/reformer/fields/text/component.ts +0 -0
- package/src/components/rws/reformer/fields/text/styles/layout.scss +0 -0
- package/src/components/rws/reformer/fields/text/template.html +0 -0
- package/src/components/rws/reformer/styles/layout.scss +0 -0
- package/src/components/rws/reformer/template.html +0 -0
- package/src/components/rws/reformer/types/IReFormerTypes.ts +0 -0
- package/src/components/rws/rws-api-resource/component.ts +0 -0
- package/src/components/rws/rws-api-resource/styles/layout.scss +0 -0
- package/src/components/rws/rws-api-resource/template.html +0 -0
- package/src/components/rws/rws-api-resource/variants/form/component.ts +0 -0
- package/src/components/rws/rws-api-resource/variants/form/styles/layout.scss +0 -0
- package/src/components/rws/rws-api-resource/variants/form/template.html +0 -0
- package/src/components/rws/rws-api-resource/variants/list/component.ts +0 -0
- package/src/components/rws/rws-api-resource/variants/list/styles/layout.scss +0 -0
- package/src/components/rws/rws-api-resource/variants/list/template.html +0 -0
- package/src/components/rws/rws-modal/component.ts +0 -0
- package/src/components/rws/rws-modal/styles/layout.scss +0 -0
- package/src/components/rws/rws-modal/template.html +0 -0
- package/src/components/rws/rws-table/component.ts +0 -0
- package/src/components/rws/rws-table/styles/layout.scss +0 -0
- package/src/components/rws/rws-table/template.html +0 -0
- package/src/components/rws/uploader/component.ts +0 -0
- package/src/components/rws/uploader/styles/layout.scss +0 -0
- package/src/components/rws/uploader/template.html +0 -0
- package/src/index.d.ts +0 -0
- package/src/index.ts +0 -0
- package/src/plugins/_builder.js +0 -0
- package/src/plugins/_plugin.ts +0 -0
- package/src/services/ApiService.ts +0 -0
- package/src/services/ConfigService.ts +0 -0
- package/src/services/DOMService.ts +0 -0
- package/src/services/NotifyService.ts +0 -0
- package/src/services/ServiceWorkerService.ts +0 -0
- package/src/services/UtilsService.ts +0 -0
- package/src/services/_api/backend.ts +0 -0
- package/src/services/_api/calls.ts +0 -0
- package/src/services/_service.ts +0 -0
- package/src/styles/README.md +0 -0
- package/src/styles/_darkreader.scss +0 -0
- package/src/styles/_grid.scss +0 -0
- package/src/styles/_grid_legacy.scss +0 -0
- package/src/styles/_misc.scss +0 -0
- package/src/styles/_scrollbars.scss +0 -0
- package/src/styles/includes.scss +0 -0
- package/src/types/IBackendCore.ts +0 -0
- package/src/types/IRWSConfig.ts +0 -0
- package/src/types/IRWSPlugin.ts +0 -0
- package/src/types/IRWSResource.ts +0 -0
- package/src/types/IRWSUser.ts +0 -0
- package/src/types/IRWSViewComponent.ts +0 -0
- package/src/types/IReFormerField.ts +0 -0
- package/src/types/RWSNotify.ts +0 -0
- package/src/types/RWSWindow.ts +0 -0
- package/tsconfig.json +18 -18
- package/typedoc.json +13 -13
- package/types/declarations.d.ts +0 -0
- package/types/docs-typings.d.ts +0 -0
package/_tools.js
CHANGED
|
@@ -1,397 +1,397 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const ts = require('typescript');
|
|
4
|
-
const { spawn } = require('child_process');
|
|
5
|
-
const JSON5 = require('json5');
|
|
6
|
-
|
|
7
|
-
const { setupTsConfig } = require('./cfg/tsconfigSetup');
|
|
8
|
-
const LoadersHelper = require('./cfg/build_steps/webpack/_loaders');
|
|
9
|
-
|
|
10
|
-
const { rwsPath } = require('@rws-framework/console');
|
|
11
|
-
|
|
12
|
-
function findRootWorkspacePath(currentPath) {
|
|
13
|
-
const parentPackageJsonPath = path.join(currentPath + '/..', 'package.json');
|
|
14
|
-
const parentPackageDir = path.dirname(parentPackageJsonPath);
|
|
15
|
-
|
|
16
|
-
if (fs.existsSync(parentPackageJsonPath)) {
|
|
17
|
-
const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
|
|
18
|
-
|
|
19
|
-
if (packageJson.workspaces) {
|
|
20
|
-
return this.findRootWorkspacePath(parentPackageDir);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return currentPath;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function findPackageDir() {
|
|
28
|
-
return path.resolve(path.dirname(module.id));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function getActiveWorkSpaces(currentPath, mode = 'all') {
|
|
32
|
-
if (!currentPath) {
|
|
33
|
-
throw new Error(`[_tools.js:getActiveWorkSpaces] "currentPath" argument is required.`);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (!(['all', 'frontend', 'backend'].includes(mode))) {
|
|
37
|
-
throw new Error(`[_tools.js:getActiveWorkSpaces] "mode" argument can be only: "frontend", "backend" or "all".`);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const rootPkgDir = findRootWorkspacePath(currentPath)
|
|
41
|
-
const parentPackageJsonPath = path.join(rootPkgDir, 'package.json');
|
|
42
|
-
const parentPackageDir = path.dirname(parentPackageJsonPath);
|
|
43
|
-
|
|
44
|
-
if (fs.existsSync(parentPackageJsonPath)) {
|
|
45
|
-
const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
|
|
46
|
-
|
|
47
|
-
if (packageJson.workspaces) {
|
|
48
|
-
return packageJson.workspaces.map((workspaceName) => path.join(rootPkgDir, workspaceName)).filter((workspaceDir) => {
|
|
49
|
-
if (mode === 'all') {
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
let rwsPkgName = '@rws-framework/server';
|
|
54
|
-
|
|
55
|
-
if (mode === 'frontend') {
|
|
56
|
-
rwsPkgName = '@rws-framework/client';
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
let hasDesiredPackage = false;
|
|
60
|
-
|
|
61
|
-
const workspaceWebpackFilePath = path.join(workspaceDir, 'package.json');
|
|
62
|
-
const workspacePackageJson = JSON.parse(fs.readFileSync(workspaceWebpackFilePath, 'utf-8'));
|
|
63
|
-
|
|
64
|
-
if (workspacePackageJson.dependencies && (!!workspacePackageJson.dependencies[rwsPkgName])) {
|
|
65
|
-
hasDesiredPackage = true;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return hasDesiredPackage;
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return [currentPath];
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
async function runCommand(command, cwd = null, silent = false, extraArgs = { env: {} }) {
|
|
77
|
-
return new Promise((resolve, reject) => {
|
|
78
|
-
const [cmd, ...args] = command.split(' ');
|
|
79
|
-
|
|
80
|
-
if (!cwd) {
|
|
81
|
-
console.log(`[RWS] Setting default CWD for "${command}"`);
|
|
82
|
-
cwd = process.cwd();
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
const env = { ...process.env, ...extraArgs.env };
|
|
87
|
-
|
|
88
|
-
console.log(`[RWS] Running command "${command}" from "${cwd}"`);
|
|
89
|
-
|
|
90
|
-
const spawned = spawn(cmd, args, { stdio: silent ? 'ignore' : 'inherit', cwd, env });
|
|
91
|
-
|
|
92
|
-
spawned.on('exit', (code) => {
|
|
93
|
-
if (code !== 0) {
|
|
94
|
-
return reject(new Error(`Command failed with exit code ${code}`));
|
|
95
|
-
}
|
|
96
|
-
resolve();
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
spawned.on('error', (error) => {
|
|
100
|
-
reject(error);
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function findSuperclassFilePath(entryFile) {
|
|
106
|
-
const program = ts.createProgram([entryFile], {
|
|
107
|
-
target: ts.ScriptTarget.ES5,
|
|
108
|
-
module: ts.ModuleKind.CommonJS
|
|
109
|
-
});
|
|
110
|
-
const checker = program.getTypeChecker();
|
|
111
|
-
|
|
112
|
-
for (const sourceFile of program.getSourceFiles()) {
|
|
113
|
-
if (!sourceFile.isDeclarationFile) {
|
|
114
|
-
ts.forEachChild(sourceFile, visit);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function visit(node) {
|
|
119
|
-
if (ts.isClassDeclaration(node) && node.heritageClauses) {
|
|
120
|
-
for (const clause of node.heritageClauses) {
|
|
121
|
-
if (clause.token === ts.SyntaxKind.ExtendsKeyword) {
|
|
122
|
-
for (const type of clause.types) {
|
|
123
|
-
const symbol = checker.getSymbolAtLocation(type.expression);
|
|
124
|
-
if (symbol && symbol.declarations) {
|
|
125
|
-
const declaration = symbol.declarations[0];
|
|
126
|
-
const sourceFile = declaration.getSourceFile();
|
|
127
|
-
return sourceFile.fileName; // Returns the file path of the first superclass it finds
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
ts.forEachChild(node, visit);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return null; // Return null if no superclass or file path is found
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function findServiceFilesWithClassExtend(dir, classPath) {
|
|
141
|
-
const files = fs.readdirSync(dir);
|
|
142
|
-
let results = []
|
|
143
|
-
|
|
144
|
-
files.forEach(file => {
|
|
145
|
-
const filePath = path.join(dir, file);
|
|
146
|
-
const fileStat = fs.statSync(filePath);
|
|
147
|
-
|
|
148
|
-
if (fileStat.isDirectory()) {
|
|
149
|
-
results = [...results, ...findServiceFilesWithClassExtend(filePath, classPath)];
|
|
150
|
-
} else if (fileStat.isFile() && filePath.endsWith('.ts')) {
|
|
151
|
-
const foundPath = findSuperclassFilePath(filePath);
|
|
152
|
-
if (foundPath === classPath) {
|
|
153
|
-
results = [...results, filePath];
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
return results;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function findComponentFilesWithText(dir, text, ignored = [], fileList = []) {
|
|
162
|
-
const files = fs.readdirSync(dir);
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
files.forEach(file => {
|
|
166
|
-
const filePath = path.join(dir, file);
|
|
167
|
-
const fileStat = fs.statSync(filePath);
|
|
168
|
-
|
|
169
|
-
if (fileStat.isDirectory() && !ignored.includes(file)) {
|
|
170
|
-
findComponentFilesWithText(filePath, text, ignored, fileList);
|
|
171
|
-
} else if (fileStat.isFile() && filePath.endsWith('component.ts')) {
|
|
172
|
-
const content = fs.readFileSync(filePath, 'utf8');
|
|
173
|
-
if (content.includes(text)) {
|
|
174
|
-
try {
|
|
175
|
-
const compInfo = extractComponentInfo(content);
|
|
176
|
-
|
|
177
|
-
if (compInfo) {
|
|
178
|
-
|
|
179
|
-
const { tagName, className, options } = compInfo;
|
|
180
|
-
|
|
181
|
-
if (options?.ignorePackaging) {
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
fileList.push({
|
|
186
|
-
filePath,
|
|
187
|
-
tagName,
|
|
188
|
-
className,
|
|
189
|
-
sanitName: className.toLowerCase(),
|
|
190
|
-
content,
|
|
191
|
-
isDebugged: options?.debugPackaging,
|
|
192
|
-
isIgnored: options?.ignorePackaging,
|
|
193
|
-
isOreo: options?.oreoMode
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
}catch(e){
|
|
198
|
-
console.log('ERRORER', e);
|
|
199
|
-
throw new Error(`findComponentFilesWithText('${dir}', '${text}') error`)
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
return fileList;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
function extractRWSViewArguments(sourceFile) {
|
|
210
|
-
let argumentsExtracted = {
|
|
211
|
-
className: null,
|
|
212
|
-
tagName: null,
|
|
213
|
-
options: null
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
let foundDecorator = false;
|
|
217
|
-
let className = null;
|
|
218
|
-
function visit(node) {
|
|
219
|
-
if (ts.isClassDeclaration(node)) {
|
|
220
|
-
className = node.name ? node.name.getText(sourceFile) : null;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
|
|
224
|
-
const expression = node.expression;
|
|
225
|
-
const decoratorName = expression.expression.getText(sourceFile);
|
|
226
|
-
|
|
227
|
-
if (decoratorName === 'RWSView') {
|
|
228
|
-
|
|
229
|
-
argumentsExtracted.className = className;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
foundDecorator = true;
|
|
233
|
-
const args = expression.arguments;
|
|
234
|
-
let tagName = null;
|
|
235
|
-
let options = null;
|
|
236
|
-
|
|
237
|
-
if (args.length > 0 && ts.isStringLiteral(args[0])) {
|
|
238
|
-
tagName = args[0].text;
|
|
239
|
-
argumentsExtracted.tagName = tagName;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
if (args.length > 1 && ts.isObjectLiteralExpression(args[1])) {
|
|
243
|
-
const argText = args[1].getText();
|
|
244
|
-
options = JSON5.parse(argText);
|
|
245
|
-
argumentsExtracted.options = options;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
ts.forEachChild(node, visit);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
visit(sourceFile);
|
|
255
|
-
|
|
256
|
-
if (!foundDecorator) {
|
|
257
|
-
return null;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
return argumentsExtracted;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
function extractRWSIgnoreArguments(sourceFile) {
|
|
264
|
-
let argumentsExtracted = {
|
|
265
|
-
params: null,
|
|
266
|
-
};
|
|
267
|
-
let foundDecorator = false;
|
|
268
|
-
let ignored = false;
|
|
269
|
-
|
|
270
|
-
function visit(node) {
|
|
271
|
-
if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
|
|
272
|
-
const expression = node.expression;
|
|
273
|
-
const decoratorName = expression.expression.getText(sourceFile);
|
|
274
|
-
if (decoratorName === 'RWSView') {
|
|
275
|
-
foundDecorator = true;
|
|
276
|
-
const args = expression.arguments;
|
|
277
|
-
|
|
278
|
-
if (args.length) {
|
|
279
|
-
// Assuming the second argument is an object literal
|
|
280
|
-
if (ts.isObjectLiteralExpression(args[0])) {
|
|
281
|
-
const argVal = args[0].getText(sourceFile);
|
|
282
|
-
argumentsExtracted.options = argVal;
|
|
283
|
-
|
|
284
|
-
if (argVal.ignorePackaging === true) {
|
|
285
|
-
ignored = true;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
ts.forEachChild(node, visit);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
visit(sourceFile);
|
|
296
|
-
|
|
297
|
-
if (!foundDecorator) {
|
|
298
|
-
return true;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
return ignored;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
function extractComponentInfo(componentCode) {
|
|
305
|
-
const decoratorData = LoadersHelper.extractRWSViewArgs(componentCode, true);
|
|
306
|
-
|
|
307
|
-
if(!decoratorData){
|
|
308
|
-
return null;
|
|
309
|
-
}
|
|
310
|
-
// console.log(decoratorData, componentCode);
|
|
311
|
-
|
|
312
|
-
return {
|
|
313
|
-
tagName: decoratorData.viewDecoratorData.tagName,
|
|
314
|
-
className: decoratorData.viewDecoratorData.className,
|
|
315
|
-
options: decoratorData.viewDecoratorData.decoratorArgs
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
function getAllFilesInFolder(folderPath, ignoreFilenames = [], recursive = false) {
|
|
320
|
-
const files = [];
|
|
321
|
-
function traverseDirectory(currentPath) {
|
|
322
|
-
const entries = fs.readdirSync(currentPath, { withFileTypes: true });
|
|
323
|
-
entries.forEach(entry => {
|
|
324
|
-
const entryPath = path.join(currentPath, entry.name);
|
|
325
|
-
if (entry.isFile()) {
|
|
326
|
-
let pass = true;
|
|
327
|
-
ignoreFilenames.forEach((regEx) => {
|
|
328
|
-
if (regEx.test(entryPath)) {
|
|
329
|
-
pass = false;
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
if (pass) {
|
|
333
|
-
files.push(entryPath);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
else if (entry.isDirectory() && recursive) {
|
|
337
|
-
traverseDirectory(entryPath);
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
traverseDirectory(folderPath);
|
|
342
|
-
return files;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
function getRndInteger(min, max) {
|
|
346
|
-
return Math.floor(Math.random() * (max - min + 1) ) + min;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
function printAddJs(scriptFileName, partedDirUrlPrefix, partedPrefix, onload = ''){
|
|
350
|
-
const sriptVarName = 'script' + getRndInteger(0, 1000);
|
|
351
|
-
return `
|
|
352
|
-
const ${sriptVarName} = document.createElement('script');
|
|
353
|
-
${sriptVarName}.src = '${partedDirUrlPrefix}/${partedPrefix}.${scriptFileName}.js';
|
|
354
|
-
${sriptVarName}.type = 'text/javascript';
|
|
355
|
-
|
|
356
|
-
document.body.appendChild(${sriptVarName});
|
|
357
|
-
|
|
358
|
-
${onload}
|
|
359
|
-
`
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
function getPartedModeVendorsBannerParams(partedDirUrlPrefix, partedPrefix, isDev = true) {
|
|
363
|
-
let code = `if(!window.RWS_PARTS_LOADED){
|
|
364
|
-
${printAddJs('vendors', partedDirUrlPrefix, partedPrefix, `
|
|
365
|
-
window.RWS_PARTS_LOADED = true;
|
|
366
|
-
console.log('\x1b[1m[RWS]\x1b[0m', 'vendors injected for parted mode');
|
|
367
|
-
`)}
|
|
368
|
-
}`;
|
|
369
|
-
|
|
370
|
-
if(!isDev){
|
|
371
|
-
code = code.replace(/\n\s+/g, '');
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
return {
|
|
375
|
-
banner: code,
|
|
376
|
-
raw: true,
|
|
377
|
-
entryOnly: true,
|
|
378
|
-
include: `${partedPrefix}.client.js`
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
module.exports = {
|
|
384
|
-
findRootWorkspacePath,
|
|
385
|
-
findPackageDir,
|
|
386
|
-
getActiveWorkSpaces,
|
|
387
|
-
runCommand,
|
|
388
|
-
findComponentFilesWithText,
|
|
389
|
-
extractComponentInfo,
|
|
390
|
-
extractRWSViewArguments,
|
|
391
|
-
extractRWSIgnoreArguments,
|
|
392
|
-
findServiceFilesWithClassExtend,
|
|
393
|
-
findSuperclassFilePath,
|
|
394
|
-
getAllFilesInFolder,
|
|
395
|
-
setupTsConfig,
|
|
396
|
-
getPartedModeVendorsBannerParams
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const ts = require('typescript');
|
|
4
|
+
const { spawn } = require('child_process');
|
|
5
|
+
const JSON5 = require('json5');
|
|
6
|
+
|
|
7
|
+
const { setupTsConfig } = require('./cfg/tsconfigSetup');
|
|
8
|
+
const LoadersHelper = require('./cfg/build_steps/webpack/_loaders');
|
|
9
|
+
|
|
10
|
+
const { rwsPath } = require('@rws-framework/console');
|
|
11
|
+
|
|
12
|
+
function findRootWorkspacePath(currentPath) {
|
|
13
|
+
const parentPackageJsonPath = path.join(currentPath + '/..', 'package.json');
|
|
14
|
+
const parentPackageDir = path.dirname(parentPackageJsonPath);
|
|
15
|
+
|
|
16
|
+
if (fs.existsSync(parentPackageJsonPath)) {
|
|
17
|
+
const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
|
|
18
|
+
|
|
19
|
+
if (packageJson.workspaces) {
|
|
20
|
+
return this.findRootWorkspacePath(parentPackageDir);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return currentPath;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function findPackageDir() {
|
|
28
|
+
return path.resolve(path.dirname(module.id));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function getActiveWorkSpaces(currentPath, mode = 'all') {
|
|
32
|
+
if (!currentPath) {
|
|
33
|
+
throw new Error(`[_tools.js:getActiveWorkSpaces] "currentPath" argument is required.`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (!(['all', 'frontend', 'backend'].includes(mode))) {
|
|
37
|
+
throw new Error(`[_tools.js:getActiveWorkSpaces] "mode" argument can be only: "frontend", "backend" or "all".`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const rootPkgDir = findRootWorkspacePath(currentPath)
|
|
41
|
+
const parentPackageJsonPath = path.join(rootPkgDir, 'package.json');
|
|
42
|
+
const parentPackageDir = path.dirname(parentPackageJsonPath);
|
|
43
|
+
|
|
44
|
+
if (fs.existsSync(parentPackageJsonPath)) {
|
|
45
|
+
const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
|
|
46
|
+
|
|
47
|
+
if (packageJson.workspaces) {
|
|
48
|
+
return packageJson.workspaces.map((workspaceName) => path.join(rootPkgDir, workspaceName)).filter((workspaceDir) => {
|
|
49
|
+
if (mode === 'all') {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
let rwsPkgName = '@rws-framework/server';
|
|
54
|
+
|
|
55
|
+
if (mode === 'frontend') {
|
|
56
|
+
rwsPkgName = '@rws-framework/client';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
let hasDesiredPackage = false;
|
|
60
|
+
|
|
61
|
+
const workspaceWebpackFilePath = path.join(workspaceDir, 'package.json');
|
|
62
|
+
const workspacePackageJson = JSON.parse(fs.readFileSync(workspaceWebpackFilePath, 'utf-8'));
|
|
63
|
+
|
|
64
|
+
if (workspacePackageJson.dependencies && (!!workspacePackageJson.dependencies[rwsPkgName])) {
|
|
65
|
+
hasDesiredPackage = true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return hasDesiredPackage;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return [currentPath];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async function runCommand(command, cwd = null, silent = false, extraArgs = { env: {} }) {
|
|
77
|
+
return new Promise((resolve, reject) => {
|
|
78
|
+
const [cmd, ...args] = command.split(' ');
|
|
79
|
+
|
|
80
|
+
if (!cwd) {
|
|
81
|
+
console.log(`[RWS] Setting default CWD for "${command}"`);
|
|
82
|
+
cwd = process.cwd();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
const env = { ...process.env, ...extraArgs.env };
|
|
87
|
+
|
|
88
|
+
console.log(`[RWS] Running command "${command}" from "${cwd}"`);
|
|
89
|
+
|
|
90
|
+
const spawned = spawn(cmd, args, { stdio: silent ? 'ignore' : 'inherit', cwd, env });
|
|
91
|
+
|
|
92
|
+
spawned.on('exit', (code) => {
|
|
93
|
+
if (code !== 0) {
|
|
94
|
+
return reject(new Error(`Command failed with exit code ${code}`));
|
|
95
|
+
}
|
|
96
|
+
resolve();
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
spawned.on('error', (error) => {
|
|
100
|
+
reject(error);
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function findSuperclassFilePath(entryFile) {
|
|
106
|
+
const program = ts.createProgram([entryFile], {
|
|
107
|
+
target: ts.ScriptTarget.ES5,
|
|
108
|
+
module: ts.ModuleKind.CommonJS
|
|
109
|
+
});
|
|
110
|
+
const checker = program.getTypeChecker();
|
|
111
|
+
|
|
112
|
+
for (const sourceFile of program.getSourceFiles()) {
|
|
113
|
+
if (!sourceFile.isDeclarationFile) {
|
|
114
|
+
ts.forEachChild(sourceFile, visit);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function visit(node) {
|
|
119
|
+
if (ts.isClassDeclaration(node) && node.heritageClauses) {
|
|
120
|
+
for (const clause of node.heritageClauses) {
|
|
121
|
+
if (clause.token === ts.SyntaxKind.ExtendsKeyword) {
|
|
122
|
+
for (const type of clause.types) {
|
|
123
|
+
const symbol = checker.getSymbolAtLocation(type.expression);
|
|
124
|
+
if (symbol && symbol.declarations) {
|
|
125
|
+
const declaration = symbol.declarations[0];
|
|
126
|
+
const sourceFile = declaration.getSourceFile();
|
|
127
|
+
return sourceFile.fileName; // Returns the file path of the first superclass it finds
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
ts.forEachChild(node, visit);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return null; // Return null if no superclass or file path is found
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function findServiceFilesWithClassExtend(dir, classPath) {
|
|
141
|
+
const files = fs.readdirSync(dir);
|
|
142
|
+
let results = []
|
|
143
|
+
|
|
144
|
+
files.forEach(file => {
|
|
145
|
+
const filePath = path.join(dir, file);
|
|
146
|
+
const fileStat = fs.statSync(filePath);
|
|
147
|
+
|
|
148
|
+
if (fileStat.isDirectory()) {
|
|
149
|
+
results = [...results, ...findServiceFilesWithClassExtend(filePath, classPath)];
|
|
150
|
+
} else if (fileStat.isFile() && filePath.endsWith('.ts')) {
|
|
151
|
+
const foundPath = findSuperclassFilePath(filePath);
|
|
152
|
+
if (foundPath === classPath) {
|
|
153
|
+
results = [...results, filePath];
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
return results;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function findComponentFilesWithText(dir, text, ignored = [], fileList = []) {
|
|
162
|
+
const files = fs.readdirSync(dir);
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
files.forEach(file => {
|
|
166
|
+
const filePath = path.join(dir, file);
|
|
167
|
+
const fileStat = fs.statSync(filePath);
|
|
168
|
+
|
|
169
|
+
if (fileStat.isDirectory() && !ignored.includes(file)) {
|
|
170
|
+
findComponentFilesWithText(filePath, text, ignored, fileList);
|
|
171
|
+
} else if (fileStat.isFile() && filePath.endsWith('component.ts')) {
|
|
172
|
+
const content = fs.readFileSync(filePath, 'utf8');
|
|
173
|
+
if (content.includes(text)) {
|
|
174
|
+
try {
|
|
175
|
+
const compInfo = extractComponentInfo(content);
|
|
176
|
+
|
|
177
|
+
if (compInfo) {
|
|
178
|
+
|
|
179
|
+
const { tagName, className, options } = compInfo;
|
|
180
|
+
|
|
181
|
+
if (options?.ignorePackaging) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
fileList.push({
|
|
186
|
+
filePath,
|
|
187
|
+
tagName,
|
|
188
|
+
className,
|
|
189
|
+
sanitName: className.toLowerCase(),
|
|
190
|
+
content,
|
|
191
|
+
isDebugged: options?.debugPackaging,
|
|
192
|
+
isIgnored: options?.ignorePackaging,
|
|
193
|
+
isOreo: options?.oreoMode
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
}catch(e){
|
|
198
|
+
console.log('ERRORER', e);
|
|
199
|
+
throw new Error(`findComponentFilesWithText('${dir}', '${text}') error`)
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
return fileList;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
function extractRWSViewArguments(sourceFile) {
|
|
210
|
+
let argumentsExtracted = {
|
|
211
|
+
className: null,
|
|
212
|
+
tagName: null,
|
|
213
|
+
options: null
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
let foundDecorator = false;
|
|
217
|
+
let className = null;
|
|
218
|
+
function visit(node) {
|
|
219
|
+
if (ts.isClassDeclaration(node)) {
|
|
220
|
+
className = node.name ? node.name.getText(sourceFile) : null;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
|
|
224
|
+
const expression = node.expression;
|
|
225
|
+
const decoratorName = expression.expression.getText(sourceFile);
|
|
226
|
+
|
|
227
|
+
if (decoratorName === 'RWSView') {
|
|
228
|
+
|
|
229
|
+
argumentsExtracted.className = className;
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
foundDecorator = true;
|
|
233
|
+
const args = expression.arguments;
|
|
234
|
+
let tagName = null;
|
|
235
|
+
let options = null;
|
|
236
|
+
|
|
237
|
+
if (args.length > 0 && ts.isStringLiteral(args[0])) {
|
|
238
|
+
tagName = args[0].text;
|
|
239
|
+
argumentsExtracted.tagName = tagName;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (args.length > 1 && ts.isObjectLiteralExpression(args[1])) {
|
|
243
|
+
const argText = args[1].getText();
|
|
244
|
+
options = JSON5.parse(argText);
|
|
245
|
+
argumentsExtracted.options = options;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
ts.forEachChild(node, visit);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
visit(sourceFile);
|
|
255
|
+
|
|
256
|
+
if (!foundDecorator) {
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return argumentsExtracted;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function extractRWSIgnoreArguments(sourceFile) {
|
|
264
|
+
let argumentsExtracted = {
|
|
265
|
+
params: null,
|
|
266
|
+
};
|
|
267
|
+
let foundDecorator = false;
|
|
268
|
+
let ignored = false;
|
|
269
|
+
|
|
270
|
+
function visit(node) {
|
|
271
|
+
if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
|
|
272
|
+
const expression = node.expression;
|
|
273
|
+
const decoratorName = expression.expression.getText(sourceFile);
|
|
274
|
+
if (decoratorName === 'RWSView') {
|
|
275
|
+
foundDecorator = true;
|
|
276
|
+
const args = expression.arguments;
|
|
277
|
+
|
|
278
|
+
if (args.length) {
|
|
279
|
+
// Assuming the second argument is an object literal
|
|
280
|
+
if (ts.isObjectLiteralExpression(args[0])) {
|
|
281
|
+
const argVal = args[0].getText(sourceFile);
|
|
282
|
+
argumentsExtracted.options = argVal;
|
|
283
|
+
|
|
284
|
+
if (argVal.ignorePackaging === true) {
|
|
285
|
+
ignored = true;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
ts.forEachChild(node, visit);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
visit(sourceFile);
|
|
296
|
+
|
|
297
|
+
if (!foundDecorator) {
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
return ignored;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function extractComponentInfo(componentCode) {
|
|
305
|
+
const decoratorData = LoadersHelper.extractRWSViewArgs(componentCode, true);
|
|
306
|
+
|
|
307
|
+
if(!decoratorData){
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
// console.log(decoratorData, componentCode);
|
|
311
|
+
|
|
312
|
+
return {
|
|
313
|
+
tagName: decoratorData.viewDecoratorData.tagName,
|
|
314
|
+
className: decoratorData.viewDecoratorData.className,
|
|
315
|
+
options: decoratorData.viewDecoratorData.decoratorArgs
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
function getAllFilesInFolder(folderPath, ignoreFilenames = [], recursive = false) {
|
|
320
|
+
const files = [];
|
|
321
|
+
function traverseDirectory(currentPath) {
|
|
322
|
+
const entries = fs.readdirSync(currentPath, { withFileTypes: true });
|
|
323
|
+
entries.forEach(entry => {
|
|
324
|
+
const entryPath = path.join(currentPath, entry.name);
|
|
325
|
+
if (entry.isFile()) {
|
|
326
|
+
let pass = true;
|
|
327
|
+
ignoreFilenames.forEach((regEx) => {
|
|
328
|
+
if (regEx.test(entryPath)) {
|
|
329
|
+
pass = false;
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
if (pass) {
|
|
333
|
+
files.push(entryPath);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
else if (entry.isDirectory() && recursive) {
|
|
337
|
+
traverseDirectory(entryPath);
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
traverseDirectory(folderPath);
|
|
342
|
+
return files;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
function getRndInteger(min, max) {
|
|
346
|
+
return Math.floor(Math.random() * (max - min + 1) ) + min;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
function printAddJs(scriptFileName, partedDirUrlPrefix, partedPrefix, onload = ''){
|
|
350
|
+
const sriptVarName = 'script' + getRndInteger(0, 1000);
|
|
351
|
+
return `
|
|
352
|
+
const ${sriptVarName} = document.createElement('script');
|
|
353
|
+
${sriptVarName}.src = '${partedDirUrlPrefix}/${partedPrefix}.${scriptFileName}.js';
|
|
354
|
+
${sriptVarName}.type = 'text/javascript';
|
|
355
|
+
|
|
356
|
+
document.body.appendChild(${sriptVarName});
|
|
357
|
+
|
|
358
|
+
${onload}
|
|
359
|
+
`
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
function getPartedModeVendorsBannerParams(partedDirUrlPrefix, partedPrefix, isDev = true) {
|
|
363
|
+
let code = `if(!window.RWS_PARTS_LOADED){
|
|
364
|
+
${printAddJs('vendors', partedDirUrlPrefix, partedPrefix, `
|
|
365
|
+
window.RWS_PARTS_LOADED = true;
|
|
366
|
+
console.log('\x1b[1m[RWS]\x1b[0m', 'vendors injected for parted mode');
|
|
367
|
+
`)}
|
|
368
|
+
}`;
|
|
369
|
+
|
|
370
|
+
if(!isDev){
|
|
371
|
+
code = code.replace(/\n\s+/g, '');
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return {
|
|
375
|
+
banner: code,
|
|
376
|
+
raw: true,
|
|
377
|
+
entryOnly: true,
|
|
378
|
+
include: `${partedPrefix}.client.js`
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
module.exports = {
|
|
384
|
+
findRootWorkspacePath,
|
|
385
|
+
findPackageDir,
|
|
386
|
+
getActiveWorkSpaces,
|
|
387
|
+
runCommand,
|
|
388
|
+
findComponentFilesWithText,
|
|
389
|
+
extractComponentInfo,
|
|
390
|
+
extractRWSViewArguments,
|
|
391
|
+
extractRWSIgnoreArguments,
|
|
392
|
+
findServiceFilesWithClassExtend,
|
|
393
|
+
findSuperclassFilePath,
|
|
394
|
+
getAllFilesInFolder,
|
|
395
|
+
setupTsConfig,
|
|
396
|
+
getPartedModeVendorsBannerParams
|
|
397
397
|
}
|