wails
wails copied to clipboard
Implementing directory and file Ignore for dev command
Description
#1031
When using the Dev command, you may not want to trigger a rebuild when a file or directory changes that are not related to the app
{
"name": "app name",
...
+ "ignore": [
+ "*_test.go",
+ "*_generated.go",
+ "internal/cmd/test"
+ ],
...
}
In project, already using the github.com/sabhiram/go-gitignore package, so I use it, so the syntax is the same as that of gitignore.
Does have any other thoughts on that implementation, or a problem sword? @leaanthony
@Ironpark - I'm happy to move ahead with this. Are you able to
address the merge conflicts and add an entry to the changelog located at website/src/pages/changelog.mdx?
@leaanthony Updated some missing code and the changelog :)
Thanks for doing this 👍 Sorry, I realised I should have asked you to update a couple of other files too! 😅
- https://github.com/wailsapp/wails/blob/master/website/static/schemas/config.v2.json has the project schema
- https://github.com/wailsapp/wails/blob/master/website/docs/reference/project-config.mdx
I just updated the config.v2.json, project-config.mdx files.
"ignore": {
"type": "array",
"description": "Specifies a matching folder or file path that should not trigger a reload when changed. Each pattern follows gitignore's matching rules.",
"examples": [
["*_test.go", "/cmd/cli/*.go"]
]
}
Bah, I'm really sorry this has slipped so far. If you are keen to get this in, could you please resolve the conflict and we'll get this merged in
@Ironpark - ping