-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Introduce an argument --update-scripts to write all the maid tasks to the package.json file.
So ## clean -> "scripts: { "clean": "maid clean" }
This will allow users to use yarn clean or npm run clean as they may likely already be doing, but having the source of truth be their maid file. I envision that the --update-scripts arg would be used with something like lint-staged to automatically update the scripts when there were changes. It would only update the scripts whose commands start with maid.
One issue with this approach is the pre, post task hooks that maid supports. These would suddenly be ran twice. Will need to figure out a solution for that.
tunnckoCore and morewry
Metadata
Metadata
Assignees
Labels
No labels