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:
Kevin Ansfield 2020-01-20 09:42:50 +00:00 committed by GitHub
parent 334bdc3f10
commit 4da73f3a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -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);
}
}
}
},