commit 37fff25f0d1807e06fc503e6fbe9ce3b812bba7b Author: Kilian Hofmann Date: Sat Aug 14 12:51:26 2021 +0200 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/.hooks/pre-commit b/.hooks/pre-commit new file mode 100755 index 0000000..0b3203c --- /dev/null +++ b/.hooks/pre-commit @@ -0,0 +1,12 @@ +#!/bin/sh +FILES=$(git diff --cached --name-only --diff-filter=ACMR -- '*.php' '*.html' '*.yaml' | sed 's| |\\ |g') +[ -z "$FILES" ] && exit 0 + +# Prettify all selected files +echo "$FILES" | xargs ./node_modules/.bin/prettier --ignore-unknown --write + +# Add back the modified/prettified files to staging +echo "$FILES" | xargs git add + +exit 0 + diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..22d0d82 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +vendor diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..2a038b8 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "printWidth": 120, + "tabWidth": 2, + "singleQuote": true, + + "semi": true, + "trailingComma": "es5", + "arrowParens": "always", + + "phpVersion": "7.1" +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..fe2202d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,16 @@ +{ + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[php]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "search.exclude": { + "**/vendor": true, + "**/node_modules": true, + "yarn.lock": true, + "package.json": true, + "tsconfig.json": true, + ".*": true + } +} diff --git a/Plugin.php b/Plugin.php new file mode 100644 index 0000000..4e9f754 --- /dev/null +++ b/Plugin.php @@ -0,0 +1,14 @@ + [ + 'name' => 'GA Social', + 'description' => '', + ], +]; diff --git a/package.json b/package.json new file mode 100644 index 0000000..c5533d7 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "social", + "version": "1.0.0", + "main": "Plugin.php", + "repository": "https://git.hofmannnet.myhome-server.de/GermanAirlines/GermanAirlinesVA-Social.git", + "author": "German Airlines VA", + "license": "MIT", + "devDependencies": { + "@prettier/plugin-php": "^0.17.3", + "prettier": "^2.3.2" + }, + "scripts": { + "preinstall": "git config core.hooksPath .hooks", + "format": "prettier --write './**/*.{php,html,yaml}'" + } +} diff --git a/plugin.yaml b/plugin.yaml new file mode 100644 index 0000000..6e0667f --- /dev/null +++ b/plugin.yaml @@ -0,0 +1,6 @@ +plugin: + name: 'germanairlinesva.social::lang.plugin.name' + description: 'germanairlinesva.social::lang.plugin.description' + author: 'German Airlines VA' + icon: oc-icon-group + homepage: '' diff --git a/updates/version.yaml b/updates/version.yaml new file mode 100644 index 0000000..1894fd0 --- /dev/null +++ b/updates/version.yaml @@ -0,0 +1,2 @@ +1.0.1: + - Initialize plugin. diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..61e15f7 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,51 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@prettier/plugin-php@^0.17.3": + version "0.17.3" + resolved "https://registry.yarnpkg.com/@prettier/plugin-php/-/plugin-php-0.17.3.tgz#193a18e308db7416f26f6e1dc0d2605d1ff01416" + integrity sha512-kD5IrGyKWF/p3XActVZ+GfbMl9knoK3XKBTG2bytpOtCO0+Q8eozimSgk/493rgFkXL3W2Ap/4GKgZf7u64+ow== + dependencies: + linguist-languages "^7.5.1" + mem "^8.0.0" + php-parser "https://github.com/glayzzle/php-parser#e61e26102144f267ecf5e09020865a9baa6ca2f1" + +linguist-languages@^7.5.1: + version "7.15.0" + resolved "https://registry.yarnpkg.com/linguist-languages/-/linguist-languages-7.15.0.tgz#a93bed6b93015d8133622cb05da6296890862bfa" + integrity sha512-qkSSNDjDDycZ2Wcw+GziNBB3nNo3ddYUInM/PL8Amgwbd9RQ/BKGj2/1d6mdxKgBFnUqZuaDbkIwkE4KUwwmtQ== + +map-age-cleaner@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" + integrity sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w== + dependencies: + p-defer "^1.0.0" + +mem@^8.0.0: + version "8.1.1" + resolved "https://registry.yarnpkg.com/mem/-/mem-8.1.1.tgz#cf118b357c65ab7b7e0817bdf00c8062297c0122" + integrity sha512-qFCFUDs7U3b8mBDPyz5EToEKoAkgCzqquIgi9nkkR9bixxOVOre+09lbuH7+9Kn2NFpm56M3GUWVbU2hQgdACA== + dependencies: + map-age-cleaner "^0.1.3" + mimic-fn "^3.1.0" + +mimic-fn@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-3.1.0.tgz#65755145bbf3e36954b949c16450427451d5ca74" + integrity sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ== + +p-defer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" + integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww= + +"php-parser@git+https://github.com/glayzzle/php-parser.git#e61e26102144f267ecf5e09020865a9baa6ca2f1": + version "3.0.2" + resolved "git+https://github.com/glayzzle/php-parser.git#e61e26102144f267ecf5e09020865a9baa6ca2f1" + +prettier@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d" + integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==