Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading grunt-karma npm task breaks grunt.log.subhead #195

Open
beebs93 opened this issue Aug 8, 2016 · 3 comments
Open

Loading grunt-karma npm task breaks grunt.log.subhead #195

beebs93 opened this issue Aug 8, 2016 · 3 comments

Comments

@beebs93
Copy link

beebs93 commented Aug 8, 2016

  • Installed latest version via npm install --save-dev grunt-karam => v2.0.0
  • grunt.log.subhead('Foobar') prints out Foobar as bold with a newline above it
  • Loaded the grunt-karma task in my Gruntfile via grunt.loadNpmTasks('grunt-karma');
  • grunt.log.subhead('Foobar') prints the newline, but no text appears (just a blank line instead)
@beebs93 beebs93 changed the title Loading grunt-karma npm task breaks grunt.log methods Loading grunt-karma npm task breaks grunt.log.subhead Aug 8, 2016
@beebs93
Copy link
Author

beebs93 commented Aug 8, 2016

It looks like it's not specifically grunt.log.subhead, but any method/manual attempt to reference the .bold property on strings.

// Gruntfile.js
var outputString = 'Foobar';

process.stdout.write("\n" + outputString.green + "\n"); // Outputs correctly to the log
process.stdout.write("\n" + outputString.green.bold + "\n"); // Does NOT output correctly to the log
process.stdout.write("\n" + outputString.bold + "\n"); // Does NOT output correctly to the log

@beebs93
Copy link
Author

beebs93 commented Oct 14, 2016

Hi there - just checking if there have been any updates on this issue.

@Krinkle
Copy link
Collaborator

Krinkle commented Aug 27, 2018

@beebs93 Can you also produce this issue in an empty directory with just a package.json and Gruntfile.js files where grunt-karma, karma and grunt are installed?

Also, which version of Node.js are you currently using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants