gruntjs / gruntjs/grunt

Why is grunt precommit not detecting changes files, but all?

Open
#1,672 3 comments 0 reactions 0 assignees View on GitHub
Type: Question
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Our Project is build with **react and typescript**.
We can't control the code style of everyone. So we used grunt task for precommit, but I found it would used more time bcs our project is so huge.

**So I would like to ask you how to use the configuration file to decide that precommit only detects modified files, not all.**

There is my grunt task config and my grunt version.

![image](https://user-images.githubusercontent.com/20939839/55770510-2bb04c80-5ab7-11e9-88c0-eb23d7b0c494.png)

![image](https://user-images.githubusercontent.com/20939839/55770536-4387d080-5ab7-11e9-9e52-5f503d3157fe.png)

Thx for you watching and giving me some suggest.

Contributor guide

Open the contributing guide

Research direction

Review the Grunt task configuration shown in the issue and trace how the precommit task selects files. No source file or test is named, so first identify the relevant task entry point and existing tests; done means establishing whether the configuration can scope checks to modified files and documenting or implementing that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.