Plugin scaffold
This commit is contained in:
parent
1197b8af73
commit
04a2c243b2
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,7 +8,7 @@ coverage
|
||||
|
||||
# production
|
||||
dist
|
||||
build
|
||||
assets
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
|
||||
19
Plugin.php
Normal file
19
Plugin.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php namespace GermanAirlinesVa\React;
|
||||
|
||||
use Config;
|
||||
use System\Classes\PluginBase;
|
||||
|
||||
class Plugin extends PluginBase
|
||||
{
|
||||
public function registerComponents()
|
||||
{
|
||||
}
|
||||
|
||||
public function registerSettings()
|
||||
{
|
||||
}
|
||||
|
||||
public function boot()
|
||||
{
|
||||
}
|
||||
}
|
||||
6
lang/en/lang.php
Normal file
6
lang/en/lang.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php return [
|
||||
'plugin' => [
|
||||
'name' => 'GA React',
|
||||
'description' => '',
|
||||
],
|
||||
];
|
||||
@ -49,12 +49,12 @@
|
||||
"typescript": "^4.2.4"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rimraf ./build && parcel build src/index.html --dist-dir build --public-url 'plugins/germanairlinesva/react/assets' --log-level verbose",
|
||||
"clean": "rimraf ./build ./dist ./.parcel-cache",
|
||||
"build": "rimraf ./assets && parcel build src/index.html --dist-dir assets --public-url 'plugins/germanairlinesva/react/assets' --log-level verbose",
|
||||
"clean": "rimraf ./assets ./dist ./.parcel-cache",
|
||||
"format": "prettier --write 'src/**/*.{ts,tsx,scss}'",
|
||||
"lint": "eslint ./src --fix",
|
||||
"start": "parcel serve src/index.html --open --log-level verbose",
|
||||
"demo": "cd ./build && python3 -m http.server 1234"
|
||||
"demo": "cd ./assets && python3 -m http.server 1234"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Kilian Kurt Hofmann",
|
||||
|
||||
6
plugin.yaml
Normal file
6
plugin.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
plugin:
|
||||
name: 'germanairlinesva.react::lang.plugin.name'
|
||||
description: 'germanairlinesva.react::lang.plugin.description'
|
||||
author: 'German Airlines VA'
|
||||
icon: oc-icon-plane
|
||||
homepage: ''
|
||||
2
updates/version.yaml
Normal file
2
updates/version.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
1.0.1:
|
||||
- 'Initialize plugin.'
|
||||
Loading…
x
Reference in New Issue
Block a user