Skip to content

Conversation

@timdeschryver
Copy link
Contributor

Closes #125

].join('|');
var ansiRegex = new RegExp(ansiPattern, 'g');

function stripAnsi(value) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be better to move this to gulp-test-tools if possible?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tdeschryver I also think it's good and welcome to send a pr to gulp-test-tools.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll try to open a PR later today!

Copy link
Contributor Author

@timdeschryver timdeschryver Aug 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or even better, I think we should use strip-color.
If thats OK.

@phated
Copy link
Member

phated commented Aug 23, 2017

I like where this is going but maybe we should combine it with the work on #63 - @sttk what do you think?

@sttk
Copy link
Contributor

sttk commented Aug 24, 2017

@phated Please merge this first. I'll address #63 later.

@sttk
Copy link
Contributor

sttk commented Aug 24, 2017

Does ansi-* support --no-color flag?

@timdeschryver
Copy link
Contributor Author

timdeschryver commented Aug 24, 2017

@sttk it does has a ansi-reset and it also has a ansi-wrap.
If this is what you're looking for 😄

@sttk
Copy link
Contributor

sttk commented Aug 25, 2017

@tdeschryver chalk has a feature to disable coloring by --no-color flag, and gulp-cli publishes this flag as its command line option. So we should support this flag even when using ansi-*.

@phated
Copy link
Member

phated commented Sep 26, 2017

Looks like this still needs to support --no-color and there are some files that got changed (fixture package.json files)

@timdeschryver
Copy link
Contributor Author

Oops, totally forgot about this 😅, I'll add during this week!

@phated
Copy link
Member

phated commented Sep 26, 2017

Thanks! I'm guessing you won't need the strip-ansi stuff in the tests once that's supported

@timdeschryver
Copy link
Contributor Author

Hmmm weird, seems like those fixtures which were added got changed from CRLF to LF? 😕
Anyways, I reverted the fixture changes.

@phated
Copy link
Member

phated commented Dec 6, 2017

@tdeschryver https://github.com/doowb/ansi-colors now inlines all the colors. This will likely be the best solution for us. I can look into making those changes if you don't have time.

@timdeschryver
Copy link
Contributor Author

@phated I'm currently a bit busy, if you need it right now it would be best if someone else takes this.
If you can wait a week, 2 at max, I can take it.

@phated
Copy link
Member

phated commented Dec 13, 2017

Closed by #138

@phated phated closed this Dec 13, 2017
@timdeschryver timdeschryver deleted the pr/replace-chalk branch December 15, 2017 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants