Magento-lts: What's the recommended way to start a new Magento project from scratch?

Created on 14 Dec 2017  路  2Comments  路  Source: OpenMage/magento-lts

Hi,

I want to try the magento-lts project and I'm wondering how's the recommended way to start a "blank project".
I don't like the idea of checking out or forking the whole project if it's a composer-based package.

I thought about something like:

  1. create an empty folder
  2. add a new composer.json file (see below)
  3. run composer install

composer.json file example:

{
    "name": "maxacarvalho/magento-lts",
    "type": "project",
    "require": {
        "aydin-hassan/magento-core-composer-installer": "*",
        "openmage/magento-lts": "1.9.3.x-dev"
    },
    "extra": {
        "magento-core-package-type": "magento-source",
        "magento-root-dir": "."
    }
}

Thanks!!!!

Documentation Question

Most helpful comment

I use this setup, that also works nicely with deployer:

{
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.firegento.com"
        }
    ],
    "require": {
        "magento-hackathon/magento-composer-installer": "~3.0",
        "aydin-hassan/magento-core-composer-installer": "~1.2",
        "openmage/magento-lts": "1.9.3.x-dev",
        "symfony/console": "^2.5",
        "n98/magerun": "^1.100",
        "deployer/deployer": "^6.0"
    },
    "extra": {
        "magento-root-dir": "htdocs",
        "magento-core-package-type": "magento-source",
        "magento-deploystrategy-dev": "symlink",
        "magento-deploystrategy": "copy",
        "magento-force": "true"
    },
    "require-dev": {
        "webgriffe/deployer-magento": "dev-master"
    }
}

All 2 comments

That looks about right. I use a different installer package, but it's mostly the same in the end.

{
    "name": "company/magento",
    "minimum-stability": "dev",
    "require": {
        "aoepeople/composer-installers": "*",
        "openmage/magento-lts": "1.9.3.x-dev"
    },
    "require-dev": {
        "squizlabs/php_codesniffer": "2.*",
        "ivanchepurnyi/ecomdev_phpunit": "dev-dev"
    }
}

I use this setup, that also works nicely with deployer:

{
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.firegento.com"
        }
    ],
    "require": {
        "magento-hackathon/magento-composer-installer": "~3.0",
        "aydin-hassan/magento-core-composer-installer": "~1.2",
        "openmage/magento-lts": "1.9.3.x-dev",
        "symfony/console": "^2.5",
        "n98/magerun": "^1.100",
        "deployer/deployer": "^6.0"
    },
    "extra": {
        "magento-root-dir": "htdocs",
        "magento-core-package-type": "magento-source",
        "magento-deploystrategy-dev": "symlink",
        "magento-deploystrategy": "copy",
        "magento-force": "true"
    },
    "require-dev": {
        "webgriffe/deployer-magento": "dev-master"
    }
}
Was this page helpful?
0 / 5 - 0 ratings