-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
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. |
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 |
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. |
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? |
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). |
@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 |
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 |
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
The text was updated successfully, but these errors were encountered: