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 2802367
Show file tree
Hide file tree
Showing 4 changed files with 38 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';
}
}
16 changes: 16 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,16 @@
{
"bundles": {
"MonsieurBiz\\SyliusMasterThemePlugin\\MonsieurBizSyliusMasterThemePlugin": ["all"]
},
"copy-from-recipe": {
"assets/": "assets/"
},
"add-lines": [
{
"file": "composer.json",
"content": "\n \"vendor/monsieurbiz/sylius-master-theme-plugin/scripts/replace_intl_extension.php\": \"php-script\",\n",
"position": "after_target",
"target": "\"auto-scripts\": {"
}
]
}

0 comments on commit 2802367

Please sign in to comment.