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

Create Build task to run on netlify deploy #8

Open
4 tasks
w3cj opened this issue Sep 27, 2022 · 1 comment
Open
4 tasks

Create Build task to run on netlify deploy #8

w3cj opened this issue Sep 27, 2022 · 1 comment

Comments

@w3cj
Copy link
Member

w3cj commented Sep 27, 2022

  • Generate metadata.json
  • Generate png images
  • Generate CSS library...
  • ETC...
@Joehoel
Copy link

Joehoel commented Sep 30, 2022

I think you can add this to you netlify.toml

[build]
  command = "node scripts/generateScaledPNG.mjs && node scripts/generateMetadataJSON.mjs" 

To make it cleaner you can create a single file that runs all the scripts and call that from the build command.

Disclaimer: Have not tested this

Docs for netlify.toml https://docs.netlify.com/configure-builds/file-based-configuration/

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

No branches or pull requests

2 participants