bem / bem/themekit

Support hooks

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
feat RFC
Dominant language
TypeScript
Stars
75
Forks
11
PR merge metrics
No merged PRs in 30d

Description

## Proposal

Add hooks for run process for each files, example:

```json
{
"hooks": {
"afterOneFileWrite": ["prettier --write"]
}
}
```

### Hooks

* beforeAllFileWrite
* beforeOneFileWrite
* afterOneFileWrite
* afterAllFileWrite

Contributor guide

Open the contributing guide

Research direction

The proposal defines four hook points—beforeAllFileWrite, beforeOneFileWrite, afterOneFileWrite, and afterAllFileWrite—and shows a hooks configuration with a command. Start by locating the file-writing pipeline and configuration entry point, then determine how each command should be run and what completion means for every lifecycle stage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.