Plugin scaffold

This commit is contained in:
Kilian Hofmann 2021-08-02 15:50:59 +02:00
parent 1197b8af73
commit 04a2c243b2
6 changed files with 37 additions and 4 deletions

2
.gitignore vendored
View File

@ -8,7 +8,7 @@ coverage
# production
dist
build
assets
# misc
.DS_Store

19
Plugin.php Normal file
View 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
View File

@ -0,0 +1,6 @@
<?php return [
'plugin' => [
'name' => 'GA React',
'description' => '',
],
];

View File

@ -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
View 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
View File

@ -0,0 +1,2 @@
1.0.1:
- 'Initialize plugin.'