Skip to content

Commit

Permalink
Add recipe for master theme
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfisis committed Nov 19, 2024
1 parent 9299d59 commit 493ec60
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"controllers": [],
"entrypoints": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Controller } from '@hotwired/stimulus';

/*
* This is an example Stimulus controller!
*
* Any element with a data-controller="hello" attribute will cause
* this controller to be executed. The name "hello" comes from the filename:
* hello_controller.js -> "hello"
*
* Delete this file or adapt it for your use!
*/
export default class extends Controller {
connect() {
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
resource: '@MonsieurBizSyliusMasterThemePlugin/Resources/config/config.yaml'
9 changes: 9 additions & 0 deletions monsieurbiz/sylius-master-theme-plugin/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bundles": {
"MonsieurBiz\\SyliusMasterThemePlugin\\MonsieurBizSyliusMasterThemePlugin": ["all"]
},
"copy-from-recipe": {
"assets/": "assets/",
"config/": "%CONFIG_DIR%/"
}
}

0 comments on commit 493ec60

Please sign in to comment.