Storybook Shennanegins

@wyrmisis I have a headcannon for you, one who also uses Storybook. What if we could load foundry's stylesheets and js into a storybook env?
C
Calego977d ago
I tried this a long time ago, I got the styling to load in, but the JS made my stack big mad. this was during like 0.6. I think
W
wyrmisis977d ago
That would be really helpful, especially since I was just faking it as well as I could in the default styles for component-pouch Even if just the styles What JS would you want to bring in?
C
Calego977d ago
how are the odds I committed and pushed this experiment somewhere I'd want foundry.js to be loaded, as though we were in a game. Reason being, I want to use storybook to do something like ActorSheet.render() and see/interact with that actor sheet no dice, dang.
W
wyrmisis977d ago
Being able to interact with/develop sheets without having to do so in Foundry would be POGGERS
C
Calego977d ago
RIGHT? because the next step is to use snapshots of the HTML to regression test. but that's like 6 steps from where we are IIRC I was able to pull in the CSS by simply import 'path/to/foundry/css' in the storybook setup even though it was outside the project .... oh hold on what if you symlinked that ln 'path/to/foundry.css' ./foundry.css might work? idk, something to play with if you get inspired (and want to subject yourself to even more webpack hell)
W
wyrmisis977d ago
On the upside, the Pouch (I'm going to have fun with that name) isn't using Webpack! Just rollup for bundling, babel for light transpiling of the stuff Foundry can't handle, and lerna to do the in-package symlinking. But yeah, that's def something I'd want to tool around with, about 40% of my dev time has been consumed by change, refresh, double-click token.
Want results from more Discord servers?
Add your server
More Posts
jsxDammit I want this...react librarySo far I've seen Vue 2, Vue 3, Alpine, and Svelte pulled into Foundry. No one has yet been crazy enoweb componentsA comment @n1xx1 made over in #development-basics (https://discord.com/channels/732325252788387980/7UI element JS Classeshttps://discord.com/channels/732325252788387980/734922093967310910/882979923483037696 @wyrmisis > Imid-milestone ping feedback@dnd5e **No Action Required** Wanted to ping you to make you aware that the 1.5.0 milestone is >50%Hot ReloadingIs there a way to do something like hot module reloading/live reloading on change for Foundry?Tagger Code ReviewWould anyone be keen to code review Tagger? I'd like to git better 😄 https://github.com/Haxxer/Founsocket woesnot the socket firingpreUpdateSo for some reason ItemPF#_preUpdate changes aren't sticking.. what is PF1 doing that prevents this?mergeObject`mergeObject` is a beast of a function which lets you smash two objects together and that options arselect in sheetAlso, is the data actually saved on the actor? You can inspect the data in the console opened with FIC 5e DocsI'm not looking to ping about this but for anyone who sees this: I'm interested to know if anyone hecustom hud elementMaybe I'm missing something simple here. I'm making my own custom hud element (NOT based on a FoundrCover@badgerwerks how does the cover application for 5e helpers work? I know you do black magic to calculGitpod WorkflowHas anyone figured out a codespaces workflow?Dynamically get Object property from user inputAnyone know how I can do this? I have an Actor (`myactor`) and I'd like to have an input box which autopublishI'm trying to use @varriount's AutoPublish, but I keep getting this error. Any ideas?https://github.symlinking foundry.js and vscodeIs this something you were able to do with vscode? I'm trying right now with both WSL2 symlinks and Releases to ChangelogI just automatically made a Changelog by going to https://github.com/arcanistzed/scs/releases and rucodespacesGo to any github repository and press `.` You'll get kicked over to a `github.dev` version of the re