Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (21 loc) · 693 Bytes

File metadata and controls

36 lines (21 loc) · 693 Bytes

rush-print-log-if-error-plugin

Rush plugin for print entire log if error log exists

Prerequisite

Rush.js >= 5.57.0

Quick Start

  1. Enabling this rush plugin

Please follow the official doc to enable this plugin in your repo.

  1. Print log if error log exists
rush print-log-if-error

If <package_name>.build.error.log exists, print the content of <package_name>.build.log

Advance Usage

#!/bin/bash

# logout if error
trap "node common/scripts/install-run-rush.js print-log-if-error" ERR

node common/scripts/install-run-rush.js build

LICENSE

MIT @chengcyber