Silence Rollup output
Rollup typically prints lots of information to stdout
, which we don't use for anything.
In the context of gitlab-development-kit!1896 (merged), it adds a lot to already voluminous debug output.
The documentation: https://rollupjs.org/guide/en/#--silent implies errors would still be returned.
-
Before:
yarn run v1.22.5 $ rollup --config rollup.config.js content/frontend/404/404.js → public/frontend/404/404.js... created public/frontend/404/404.js in 3.7s content/frontend/default/default.js → public/frontend/default/default.js... created public/frontend/default/default.js in 3.9s content/frontend/default/directives/stick_to_footer.js → public/frontend/default/directives/stick_to_footer.js... created public/frontend/default/directives/stick_to_footer.js in 35ms content/frontend/default/setup_table_of_contents.js → public/frontend/default/setup_table_of_contents.js... created public/frontend/default/setup_table_of_contents.js in 987ms content/frontend/feedback/feedback.js → public/frontend/feedback/feedback.js... created public/frontend/feedback/feedback.js in 28ms content/frontend/header/index.js → public/frontend/header/index.js... created public/frontend/header/index.js in 24ms content/frontend/search/index.js → public/frontend/search/index.js... created public/frontend/search/index.js in 2s content/frontend/shared/constants.js → public/frontend/shared/constants.js... created public/frontend/shared/constants.js in 24ms content/frontend/shared/dom.js → public/frontend/shared/dom.js... created public/frontend/shared/dom.js in 23ms content/frontend/shared/toc/flatten_items.js → public/frontend/shared/toc/flatten_items.js... created public/frontend/shared/toc/flatten_items.js in 140ms content/frontend/shared/toc/parse_toc.js → public/frontend/shared/toc/parse_toc.js... created public/frontend/shared/toc/parse_toc.js in 53ms ✨ Done in 12.63s.
-
After (
ROLLUP_OPTIONS
not set):yarn run v1.22.5 $ if [ -z $ROLLUP_OPTIONS ]; then echo INFO: ROLLUP_OPTIONS is not set; else echo INFO: ROLLUP_OPTIONS = ${ROLLUP_OPTIONS}; fi && rollup --config rollup.config.js ${ROLLUP_OPTIONS} INFO: ROLLUP_OPTIONS is not set content/frontend/404/404.js → public/frontend/404/404.js... created public/frontend/404/404.js in 3.7s content/frontend/default/default.js → public/frontend/default/default.js... created public/frontend/default/default.js in 3.9s content/frontend/default/directives/stick_to_footer.js → public/frontend/default/directives/stick_to_footer.js... created public/frontend/default/directives/stick_to_footer.js in 40ms content/frontend/default/setup_table_of_contents.js → public/frontend/default/setup_table_of_contents.js... created public/frontend/default/setup_table_of_contents.js in 1s content/frontend/feedback/feedback.js → public/frontend/feedback/feedback.js... created public/frontend/feedback/feedback.js in 24ms content/frontend/header/index.js → public/frontend/header/index.js... created public/frontend/header/index.js in 24ms content/frontend/search/index.js → public/frontend/search/index.js... created public/frontend/search/index.js in 1.9s content/frontend/shared/constants.js → public/frontend/shared/constants.js... created public/frontend/shared/constants.js in 22ms content/frontend/shared/dom.js → public/frontend/shared/dom.js... created public/frontend/shared/dom.js in 24ms content/frontend/shared/toc/flatten_items.js → public/frontend/shared/toc/flatten_items.js... created public/frontend/shared/toc/flatten_items.js in 141ms content/frontend/shared/toc/parse_toc.js → public/frontend/shared/toc/parse_toc.js... created public/frontend/shared/toc/parse_toc.js in 45ms ✨ Done in 12.56s.
-
After (
ROLLUP_OPTIONS set to
--silent`):yarn run v1.22.5 $ if [ -z $ROLLUP_OPTIONS ]; then echo INFO: ROLLUP_OPTIONS is not set; else echo INFO: ROLLUP_OPTIONS = ${ROLLUP_OPTIONS}; fi && rollup --config rollup.config.js ${ROLLUP_OPTIONS} INFO: ROLLUP_OPTIONS = --silent ✨ Done in 12.17s.
Edited by Evan Read