mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Updated Gruntfile to handle new ember-cli logging format (#11253)
refs https://github.com/TryGhost/Ghost-Admin/pull/1335 - ember-cli now has a build progress spinner and some updated messages - updates Gruntfile stdout/stderr handling to ignore certain error output so that we continue to output the periodic "building admin client..." notifications
This commit is contained in:
parent
334bdc3f10
commit
4da73f3a32
1 changed files with 16 additions and 2 deletions
18
Gruntfile.js
18
Gruntfile.js
|
@ -168,8 +168,22 @@ const configureGrunt = function (grunt) {
|
|||
}
|
||||
},
|
||||
stderr: function (chunk) {
|
||||
hasBuiltClient = true;
|
||||
grunt.log.error(chunk);
|
||||
const skipFilter = grunt.option('client') ? false : [
|
||||
/- building/
|
||||
].some(function (regexp) {
|
||||
return regexp.test(chunk);
|
||||
});
|
||||
|
||||
const errorFilter = grunt.option('client') ? false : [
|
||||
/^>>/
|
||||
].some(function (regexp) {
|
||||
return regexp.test(chunk);
|
||||
});
|
||||
|
||||
if (!skipFilter) {
|
||||
hasBuiltClient = errorFilter ? hasBuiltClient : true;
|
||||
grunt.log.error(chunk);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue