From 04a2c243b2bd533b0d8748a8806ce274d9dbfd9a Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Mon, 2 Aug 2021 15:50:59 +0200 Subject: [PATCH] Plugin scaffold --- .gitignore | 2 +- Plugin.php | 19 +++++++++++++++++++ lang/en/lang.php | 6 ++++++ package.json | 6 +++--- plugin.yaml | 6 ++++++ updates/version.yaml | 2 ++ 6 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 Plugin.php create mode 100644 lang/en/lang.php create mode 100644 plugin.yaml create mode 100644 updates/version.yaml diff --git a/.gitignore b/.gitignore index eea1d45..f30e59b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ coverage # production dist -build +assets # misc .DS_Store diff --git a/Plugin.php b/Plugin.php new file mode 100644 index 0000000..8447939 --- /dev/null +++ b/Plugin.php @@ -0,0 +1,19 @@ + [ + 'name' => 'GA React', + 'description' => '', + ], +]; diff --git a/package.json b/package.json index e61d06f..a2265dd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/plugin.yaml b/plugin.yaml new file mode 100644 index 0000000..b9e942d --- /dev/null +++ b/plugin.yaml @@ -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: '' diff --git a/updates/version.yaml b/updates/version.yaml new file mode 100644 index 0000000..9cecd21 --- /dev/null +++ b/updates/version.yaml @@ -0,0 +1,2 @@ +1.0.1: + - 'Initialize plugin.'