Skip to content

Add -w option for watching files#2

Open
rniii wants to merge 2 commits into
mainfrom
watch-files
Open

Add -w option for watching files#2
rniii wants to merge 2 commits into
mainfrom
watch-files

Conversation

@rniii

@rniii rniii commented Aug 16, 2024

Copy link
Copy Markdown
Owner

Pretty rudimentary for now. Could have been done with watchexec, but I think its useful as a builtin feature.

Example dev task:

### dev

```sh
maid -w src build &
maid -w src -w public serve &
wait
```

TODO

  • Ignoring file patterns
  • Handle .gitignore etc
  • Option to restart process instead of waiting

@rniii

rniii commented Aug 17, 2024

Copy link
Copy Markdown
Owner Author

The Windows build is already a bit of a large size, so I'm curious if this makes it worse. -split-objs doesn't work on it, so only entire libraries are linked with it, but I think most of it might be base alone

@rniii

rniii commented Aug 17, 2024

Copy link
Copy Markdown
Owner Author

Hm, strip seems to reduce it to 18mb, and upx reduces it further to a more reasonable 4mb

@rniii

rniii commented Aug 17, 2024

Copy link
Copy Markdown
Owner Author

-r is randomly getting stuck on a loop now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant