Conversion to a Vendor Module (#40)

This commit is contained in:
Ed Chipman 2018-03-20 16:24:06 -03:00 committed by Jono Menz
parent 39d1aed274
commit cd9c2083c8
3 changed files with 10 additions and 5 deletions

View File

@ -4,7 +4,7 @@ After: 'framework/*, cms/*'
---
SilverStripe\Admin\LeftAndMain:
extra_requirements_javascript:
- 'betternavigator/javascript/BN.LeftAndMain.Preview.js'
- 'jonom/silverstripe-betternavigator: javascript/BN.LeftAndMain.Preview.js'
SilverStripe\CMS\Controllers\ContentController:
extensions:
- JonoM\BetterNavigator\Extension\BetterNavigatorExtension

View File

@ -1,7 +1,7 @@
{
"name": "jonom/silverstripe-betternavigator",
"description": "Front-end utility menu for SilverStripe websites featuring administration and development tools",
"type": "silverstripe-module",
"type": "silverstripe-vendormodule",
"keywords": [
"silverstripe",
"navigator",
@ -19,7 +19,12 @@
"silverstripe/framework": "^4.0"
},
"extra": {
"installer-name": "betternavigator"
"installer-name": "betternavigator",
"expose": [
"css",
"images",
"javascript"
]
},
"autoload": {
"psr-4": {

View File

@ -1,5 +1,5 @@
<% require javascript("betternavigator/javascript/betternavigator.js") %>
<% require css("betternavigator/css/betternavigator.css") %>
<% require javascript("jonom/silverstripe-betternavigator: javascript/betternavigator.js") %>
<% require css("jonom/silverstripe-betternavigator: css/betternavigator.css") %>
<div id="BetterNavigator" class="collapsed">