adrexia

@Admonish this is what we do now: https://github.com/dnadesign/dna-recipe/blob/master/composer.json

Show 1 attachment(s)
composer.json

{
    "name": "dnadesign/basic-recipe",
    "description": "DNA Basic Recipe metapackage",
    "type": "silverstripe-recipe",
    "keywords": [
        "silverstripe",
        "dna",
        "recipe"
    ],
    "require": {
        "php": ">=7.0.0",
        "silverstripe/recipe-plugin": "^1.3",
        "silverstripe/recipe-cms": "^4",
        "stevie-mayhew/silverstripe-svg": "^2.1",
        "benmanu/silverstripe-styleguide": "0.1.1",
        "jonom/silverstripe-betternavigator": "^4.1.1",
        "adrexia/standardsediting": "^2.0",
        "symbiote/silverstripe-gridfieldextensions": "^3.2",
        "silverstripe/environmentcheck": "^2.0",
        "silverstripe/raygun": "2.1.0"
    },
    "require-dev": {
        "phpunit/PHPUnit": "^5.7",
        "silverstripe/testsession": "^2.0"
    },
    "extra": {
        "project-files": [
            "app/_config/*",
            "app/css/*",
            "app/src/*",
            "app/images/*",
            "app/tests/*",
            "app/styleguide/*",
            "public/*",
            "./.editorconfig",
            "./.example.env",
            "./.gitignore",
            "./.htaccess",
            "./Makefile",
            "phpunit.xml.dist",
            "theme-default/*"
        ],
        "public-files": [
            "assets/*",
            "theme-default/dist/css/*",
            "theme-default/dist/fonts/*",
            "theme-default/dist/images/*",
            "theme-default/dist/js/*",
            "theme-default/dist/svg/*"
        ],
        "expose": [
            "theme-default/dist/css",
            "theme-default/dist/fonts",
            "theme-default/dist/images",
            "theme-default/dist/js",
            "theme-default/dist/svg"
        ]
    },
    "config": {
        "process-timeout": 600
    },
    "prefer-stable": true,
    "minimum-stability": "dev"
}
Hide attachment content
nightjarnz

just it has all the necessary bootstrapping things (_config, etc)

adrexia

It does work as a theme, but there’s a lot of stuff that ends up in your composer file once its installed that seems a bit … messy

nightjarnz

because that's what installer is intended to be (your code, not a module)

nightjarnz

your project should essentially be "installer" customised.