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 manifest.json file when deploying #4

Open
steppsr opened this issue Nov 13, 2023 · 7 comments
Open

Create manifest.json file when deploying #4

steppsr opened this issue Nov 13, 2023 · 7 comments

Comments

@steppsr
Copy link

steppsr commented Nov 13, 2023

Is it possible for the 'sprout deploy' command to make a 'manifest.json' file that contains all the images and metadata files? Even better if they are pair together in one json object. I've attached a mocked up example.

manifest.json

@RytekDigital
Copy link
Contributor

Here is my draft to address your request. Do you think this is enough, or is the intent to also push that file to datalayer? My assumption is it for offline use.

Just a quick idea to wedge the file output into the existing structure.

#5

@MichaelTaylor3D
Copy link
Owner

wow thanks for looking into this for me, i was just thinking i needed to work on it :)

we need it in datalayer, but should be very easy to do by running the utility function as the first step in deploy command. Just got to make sure the manifest.json is being generated in the deploy directory thats specified in sprout.config.json

@steppsr
Copy link
Author

steppsr commented Nov 16, 2023

Awesome! Yes, what i'm hoping to do is build a 'generic' index.html that would consume that manifest.json file and build a galley for an nft collection. Something that people would be able to just drop in there datalayer folder for a collection, deploy and it's has a nice webpage gallery for it.

@RytekDigital
Copy link
Contributor

Would that be something we just want to include in the utility itself? Seems like we could just drop an index.html into each storeId and always have a basic thumbnail view for each store synced with each deploy. I could add that with this WIP PR. Both updates would take place in same location of script(s), no?

@steppsr
Copy link
Author

steppsr commented Nov 17, 2023

That may be the best option long term. I can get the CSS file loaded from local but not any JSON. Even trying to use XMLHttpRequest(). For my own collections (for now) I'm just going to write some Bash to build the index.html. But long-term for the Sprout project, I think that is an excellent idea. I just don't have the Javascript chops to do it (yet).

@MichaelTaylor3D
Copy link
Owner

@RytekDigital no we don't want to include index.html generation in the utility. @steppsr is making a custom gallery for his collection. The datalayer link service already generates a generic index.html if ones not provided from the store.

Not every store is an NFt collection also

@MichaelTaylor3D
Copy link
Owner

The manifest.json however would be good for anyone that want to make a custom index.html file that uses the manifest to populate the index.html they create

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

3 participants