-
Notifications
You must be signed in to change notification settings - Fork 5
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
Hot reload for components and importmap #2
Conversation
e90f3f2
to
912b569
Compare
src/Command/DumpImportMapCommand.php
Outdated
/** | ||
* @author Nicolas Rigaud <[email protected]> | ||
*/ | ||
class DumpImportMapCommand extends Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elle apporte quoi cette commande par rapport à un php bin/console debug:asset-map
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est pas une commande de debug, ça permet de générer le module JS pour l'importmap. Je vais documenter en commentaires pour être plus explicite. Peut-être aussi changer le nom ?
En suivant t'as doc j'ai eu une erreur: SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: @storybook/symfony-webpack5/preset.
Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.
If you believe this is a bug, please open an issue on Github.
Error: Cannot find module 'fast-xml-parser'
Require stack:
- /Users/matheodaninos/Project/contributing/StorybookBundle/storybook/dist/preset.js
- ./node_modules/@storybook/core-common/dist/index.js
- ./node_modules/@storybook/telemetry/dist/index.js
- ./node_modules/@storybook/cli/dist/generate.js
- ./node_modules/@storybook/cli/bin/index.js
- ./node_modules/storybook/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (/Users/matheodaninos/Project/contributing/StorybookBundle/storybook/dist/preset.js:10:21)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._compile (./node_modules/esbuild-register/dist/node.js:2258:26)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Object.newLoader (./node_modules/esbuild-register/dist/node.js:2262:9)
at extensions..js (./node_modules/esbuild-register/dist/node.js:4838:24)
at loadPreset (./node_modules/@storybook/core-common/dist/index.js:15:82)
|
31bc17d
to
0541acd
Compare
2666d12
to
411a263
Compare
Add hot reload for Twig Components by loading templates as JS dependencies of stories modules.
Add hot reload for AssetMapper assets by generating a virtual importmap module.
Add tests for PHP and JS source codes.