Skip to content

Composer.json

Within StoreFrame we have added few changes towards the default Magento 2 composer.json file:

composer.json
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": {
      "storeframe": {
          "type": "composer",
          "url": "https://repo.packagist.com/storeframe/masterpack/"
      },
      "packagist.org": false
},
"extra": {
    "magento-force": "override",
    "magento-deploy-ignore": {
        "*": [
            "/.gitignore"
        ]
    }
}

Full Composer.json running Magento 2.4.2-p1

composer.json
{
    "name": "storeframe/project",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    },
    "require": {
        "magento/product-community-edition": "2.4.2-p1",
        "storeframe/base-community-edition": "~242.0.0"
    },
    "require-dev": {
        "allure-framework/allure-phpunit": "~1.2.0",
        "friendsofphp/php-cs-fixer": "~2.14.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento-coding-standard": "~3.0.0",
        "pdepend/pdepend": "2.5.2",
        "phpmd/phpmd": "@stable",
        "phpunit/phpunit": "~6.5.0",
        "sebastian/phpcpd": "~3.0.0",
        "squizlabs/php_codesniffer": "~3.4.0"
    },
    "conflict": {
        "gene/bluefoot": "*"
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/",
            "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
        },
        "psr-0": {
            "": [
                "app/code/",
                "generated/code/"
            ]
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ],
        "exclude-from-classmap": [
            "**/dev/**",
            "**/update/**",
            "**/Test/**"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
            "Magento\\Tools\\": "dev/tools/Magento/Tools/",
            "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
            "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
            "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "repositories": {
        "storeframe": {
            "type": "composer",
            "url": "https://repo.packagist.com/storeframe/masterpack/"
        },
        "packagist.org": false
    },
    "archive": {
        "exclude": [
            "!vendor/*",
            "!setup/*",
            "!var/*",
            "!pub/*",
            "!app/",
            "!lib/*",
            "!dev/*",
            "!bin/*",
            ".*",
            "Dockerfile",
            "deploy.php",
            "SECURITY.md",
            "*.yml",
            "node_modules/",
            "yarn.lock"
        ]
    },
    "extra": {
        "magento-force": "override",
        "magento-deploy-ignore": {
            "*": [
                "/.gitignore"
            ]
        }
    }
}