File: composer.json

Recommend this page to a friend!
  Classes of Francesco Danti  >  ATK4 i18next PHP  >  composer.json  >  Download  
File: composer.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: ATK4 i18next PHP
Translate application texts like il8next-PHP
Author: By
Last change:
Date: 1 year ago
Size: 4,470 bytes
 

Contents

Class file image Download
{
    "name": "abbadon1334/atk4-i18next-php",
    "description": "description",
    "type": "library",
    "license": "MIT",
    "authors": [
        {
            "name": "Francesco Danti",
            "email": "fdanti@gmail.com"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "php": ">=7.2",
        "atk4/core": "dev-develop"
    },
    "require-dev": {
        "atk4/data": "dev-develop",
        "thecodingmachine/phpstan-safe-rule": "0.1.3",
        "codacy/coverage": "dev-master@dev",
        "evert/phpdoc-md": "dev-master@dev",
        "friendsofphp/php-cs-fixer": "dev-master@dev",
        "phpmd/phpmd": "2.6.1",
        "phpmetrics/phpmetrics": "dev-master@dev",
        "phpstan/phpstan": "0.11.12",
        "phpunit/phpunit": "8.2.4",
        "squizlabs/php_codesniffer": "3.4.2",
        "victorjonsson/markdowndocs": "1.3.8"
    },
    "config": {
        "sort-packages": true
    },
    "autoload": {
        "psr-4": {
            "I18Next\\": "src/I18Next/",
            "atk4\\core\\": "src/I18Next/atk4/core/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "I18Next\\Tests\\": "tests/"
        }
    },
    "scripts": {
        "fix": "php-cs-fixer fix src",
        "stan": "phpstan analyse src",
        "stan1": "phpstan analyse --level 1 src",
        "stan2": "phpstan analyse --level 2 src",
        "stan3": "phpstan analyse --level 3 src",
        "stan4": "phpstan analyse --level 4 src",
        "stan5": "phpstan analyse --level 5 src",
        "stan6": "phpstan analyse --level 6 src",
        "stan7": "phpstan analyse --level 7 src",
        "metrics": [
            "mkdir -p ./build/report",
            "mv ./build/report ./build/report_$(date +\"%Y.%m.%d_%H%M%S\")",
            "phpmetrics --config=./.phpmetrics.json ."
        ],
        "metrics-web": [
            "composer run metrics",
            "firefox ./build/report/phpmetrics.html/index.html"
        ],
        "metrics-clear": [
            "rm -rf ./build/report_*",
            "rm -rf ./build/report"
        ],
        "unit": [
            "mkdir -p ./build/coverage",
            "mv ./build/coverage ./build/coverage_$(date +\"%Y.%m.%d_%H%M%S\")",
            "phpunit --configuration phpunit.xml"
        ],
        "unit-coverage": [
            "mkdir -p ./build/coverage",
            "mv ./build/coverage ./build/coverage_$(date +\"%Y.%m.%d_%H%M%S\")",
            "phpunit --configuration phpunit.xml --coverage-html ./build/coverage"
        ],
        "coverage-web": [
            "composer run unit-coverage",
            "firefox ./build/coverage/index.html"
        ],
        "unit-clear": [
            "rm -rf ./build/coverage_*",
            "rm -rf ./build/coverage"
        ],
        "doc-setup": [
            "mkdir -p phpdocs",
            "cd phpdocs && echo \"APP_ENV=dev\nAPP_SECRET=3f48b02b6f8e6ad6e8c07d0b03762d31\" > .env",
            "wget -P phpdocs https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar",
            "wget -P phpdocs https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar.pubkey",
            "chmod +x phpdocs/phpDocumentor.phar",
            "wget -P phpdocs https://github.com/abbadon1334/phpdoc-to-rst/releases/download/1.0/phpdoc-to-rst.phar",
            "chmod +x phpdocs/phpdoc-to-rst.phar"

        ],
        "doc-build": [
            "mkdir -p ./docs/api",
            "mkdir -p ./docs/md",
            "phpdocs/phpDocumentor.phar  --config=\".phpdoc.xml\" --template=\"xml\" -t ./docs ./src",
            "vendor/bin/phpdocmd --index index.md docs/structure.xml docs/md",
            "phpdocs/phpdoc-to-rst.phar generate --repo-base \"$PWD\" --repo-github https://github.com/abbadon1334/atk4-i18next-php -t docs/source/api src/",
            "cd docs && sphinx-build -b html source ."
        ],
        "doc-clear": [
            "mkdir -p ./docs",
            "rm -rf ./docs"
        ],
        "doc-setdown": [
            "mkdir -p ./phpdocs",
            "rm -rf ./phpdocs"
        ],
        "build-all": [
            "composer run doc-build",
            "composer run unit-coverage",
            "cp -r build/coverage docs/coverage",
            "composer run metrics",
            "cp -r build/report/phpmetrics.html docs/metrics"
        ],
        "config": {
            "process-timeout":6000
        }
    }
}

For more information send a message to info at phpclasses dot org.