composer.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "name": "aaemnnosttv/wp-sqlite-db",
  3. "description": "SQLite drop-in database driver for WordPress",
  4. "type": "wordpress-dropin",
  5. "license": "GPL-2.0-or-later",
  6. "authors": [
  7. {
  8. "name": "Evan Mattson",
  9. "email": "me@aaemnnost.tv",
  10. "role": "Developer"
  11. },
  12. {
  13. "name": "Kojima Toshiyasu",
  14. "homepage": "https://profiles.wordpress.org/kjmtsh",
  15. "role": "Author of SQLite Integration"
  16. }
  17. ],
  18. "autoload": {
  19. "psr-4": {
  20. "WP_SQLite_DB\\": "src"
  21. },
  22. "classmap": [
  23. "src/WP_SQLite_DB__Main.php",
  24. "./wordpress/wp-includes/wp-db.php"
  25. ]
  26. },
  27. "autoload-dev": {
  28. "psr-4": {
  29. "Tests\\": "tests/src"
  30. }
  31. },
  32. "require": {
  33. "php": ">=5.6",
  34. "ext-PDO": "*",
  35. "composer/installers": "^1.0"
  36. },
  37. "require-dev": {
  38. "phpunit/phpunit": "^5 || ^6 || ^7",
  39. "roots/wordpress": "^5",
  40. "wp-phpunit/wp-phpunit": "^5",
  41. "classpreloader/classpreloader": "^4.1",
  42. "classpreloader/console": "^3.1"
  43. },
  44. "scripts": {
  45. "compile": "classpreloader compile --config=scripts/classloader-config.php --strip_comments=1 --output=dist/compiled.php",
  46. "generate-dropin": [
  47. "@compile",
  48. "@php scripts/generate-dropin.php"
  49. ],
  50. "test": "phpunit"
  51. },
  52. "scripts-descriptions": {
  53. "compile": "Compiles WP SQlite DB classes together into dist/compiled.php",
  54. "generate-dropin": "Generates the db.php dropin file from compiled classes and other partials into dist/db.php",
  55. "test": "Runs PHPUnit tests"
  56. }
  57. }