Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: prebuild, etc #319

Closed
kingsleyh opened this issue Feb 6, 2020 · 2 comments
Closed

scripts: prebuild, etc #319

kingsleyh opened this issue Feb 6, 2020 · 2 comments

Comments

@kingsleyh
Copy link

Hi,

I'd like to run a script before build occurs - so what do you think about an extra hook:

scripts:
  postinstall: make 
  prebuild: touch foo.txt

Other helpful hooks could be:

  • preinstall
  • postbuild
@straight-shoota
Copy link
Member

I don't think shards should be expanded to do such build system tasks. It's better to focus on its main features instead of reinventing the wheel. Why not use make as the main tool for organising build recipes instead of calling make from shards Postinstall script?

@ysbaddaden
Copy link
Contributor

Yes, your Makefile or any other build tool (shell script or whatever) would be better suited for this. For example:

scripts:
  postinstall: make shards
all:
  # ...

prebuild:
  touch foo.txt

shards: prebuild all

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

No branches or pull requests

3 participants