Skip to content

Composer project bare minimum #3690

Closed
Closed
@jsakars

Description

@jsakars

composer.json like such should be enough to have fully functional M2 CE.

{
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com/"
        }
    ],
    "require": {
        "magento/product-community-edition": "2.0.2"
    },
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "setup/src/Magento/Setup/",
            "Magento\\": "app/code/Magento/"
        },
        "files": [
            "app/etc/NonComposerComponentRegistration.php"
        ]
    },
    "minimum-stability": "alpha"
}

However one of documented CRON jobs must execute update/cron.php.
update/ directory is part of the magento2-community-edition library itself and obviously would not be downloaded during composer install/update. It seems that the only option is to have a copy of it along side Your composer.json. Having copy of it doesn't make sense because:

  • they are M2 files not "Yours"
  • You would need to regularly sync(copy-paste) it from original source to make sure You have latest version

Would like to understand what is the clean, bare minimum of files required to have M2 Composer based project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions