From b29d287f771f31d8c7f7797f379a7d325e5cea3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 31 Jul 2018 10:59:14 +0200 Subject: [PATCH] integrate composer --- .gitignore | 3 +- www/{_lib => _vendor}/.htaccess | 0 www/composer.json | 8 +++++ www/composer.lock | 63 +++++++++++++++++++++++++++++++++ www/index.php | 2 +- 5 files changed, 73 insertions(+), 3 deletions(-) rename www/{_lib => _vendor}/.htaccess (100%) create mode 100644 www/composer.json create mode 100644 www/composer.lock diff --git a/.gitignore b/.gitignore index 1a824bc..d676cc4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,7 @@ pile.db docs -vendor -_lib +_vendor *.woff error_log diff --git a/www/_lib/.htaccess b/www/_vendor/.htaccess similarity index 100% rename from www/_lib/.htaccess rename to www/_vendor/.htaccess diff --git a/www/composer.json b/www/composer.json new file mode 100644 index 0000000..6c10150 --- /dev/null +++ b/www/composer.json @@ -0,0 +1,8 @@ +{ + "config": { + "vendor-dir": "_vendor" + }, + "require": { + "erusev/parsedown": "^1.7" + } +} diff --git a/www/composer.lock b/www/composer.lock new file mode 100644 index 0000000..f65749b --- /dev/null +++ b/www/composer.lock @@ -0,0 +1,63 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "f493960dbf3229f8998effb35c5e910d", + "packages": [ + { + "name": "erusev/parsedown", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/erusev/parsedown.git", + "reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/6678d59be48c4be64eaca6ce70bea48a09488cc2", + "reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35" + }, + "type": "library", + "autoload": { + "psr-0": { + "Parsedown": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Emanuil Rusev", + "email": "hello@erusev.com", + "homepage": "http://erusev.com" + } + ], + "description": "Parser for Markdown.", + "homepage": "http://parsedown.org", + "keywords": [ + "markdown", + "parser" + ], + "time": "2018-02-28T11:41:37+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/www/index.php b/www/index.php index 01b469b..51229bf 100644 --- a/www/index.php +++ b/www/index.php @@ -1,7 +1,7 @@