Skip to content

How to not have cwd hard code #24

@franz-josef-kaiser

Description

@franz-josef-kaiser

I was just trying this plugin and playing around with it. I couldn't wrap my head around.

Hard coded cwd in newly added hook

How would we share a Gruntfile.js with a team when the path is bound to our local hard drive? (Code below from Issue #11 ). Other team members might have a completely different setup. Is this plugin meant to be used by a single person on a single machine only?

exec( 'grunt jshint', {
    cwd: 'C:\Users\etc\'
}, function ( err, stdout, stderr ) {} )

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions