This adds a new template mockup_pattern. It can be applied multiple times, resulting in multiple patterns in resources. All patterns are combined into a single bundle. For this purpose the pre_render() method keeps the existing imports if bundle.js already exists.
Replaces #507
Most notable changes to #507
Path for new patterns is resources/pat-NEW_PATTERN. Any extra JavaScript / SCSS / etc which needs extra compilation steps via Webpack or whatever should go into there.
Removed the extra CSS compilation scripts from package.json and CSS integration. Instead any SCSS code should be imported in the Pattern itself, which will then only be used if the pattern is loaded. Other CSS is theming stuff. We might need another CSS compilation step for the addon package itself, but that is slightly out of scope of the mockup pattern integration and should be added as another template which writes into the resources/ folder.
Changed compiled production paths from pattern to bundle
Register the bundle for all users - not only for logged-in
Simplified the package.json scripts. We only need to serve, watch and build.
This adds a new template
mockup_pattern
. It can be applied multiple times, resulting in multiple patterns inresources
. All patterns are combined into a single bundle. For this purpose thepre_render()
method keeps the existing imports if bundle.js already exists.Replaces #507
Most notable changes to #507
resources/pat-NEW_PATTERN
. Any extra JavaScript / SCSS / etc which needs extra compilation steps via Webpack or whatever should go into there.resources/
folder.pattern
tobundle
serve
,watch
andbuild
.