Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dist instead source #10

Open
edpittol opened this issue May 5, 2016 · 2 comments
Open

Use dist instead source #10

edpittol opened this issue May 5, 2016 · 2 comments

Comments

@edpittol
Copy link

edpittol commented May 5, 2016

The clone of the WordPress package is heavy. It's not necessary download the package. I used another solution that is lighter. Use a dist package referencing the WordPress zip package.

This is the README example using zip dist package.

{
    "name": "fancyguy/www-fancyguy-com",
    "description": "Package to build www.fancyguy.com",
    "authors": [
        {
            "name": "Steve Buzonas",
            "email": "[email protected]"
        }
    ],
    "repositories": [
        {
            "type" : "package",
            "package" : {
                "name" : "wordpress/wordpress",
                "type" : "webroot",
                "version" : "4.5.1",
                "dist" : {
                    "type" : "zip",
                    "url" : "https://wordpress.org/wordpress-4.5.1.zip"
                },
                "require" : {
                    "fancyguy/webroot-installer" : "^1.0"
                }
            }
        }
    ],
    "require": {
        "wordpress/wordpress": "4.5.*"
    },
    "extra": {
        "webroot-dir": "content",
        "webroot-package": "wordpress/wordpress"
    }
}

Another option is use the no-content package. This package not download the defaults plugins and themes.

https://wordpress.org/wordpress-4.5.1-no-content.zip

@sbuzonas
Copy link
Member

sbuzonas commented Jun 8, 2018

Thanks, I didn't know about the no-content dists. I've updated https://github.com/fancyguy/composer-wordpress-plugin to use that url.

I'll update the readme. Using WordPress was just an arbitrary example, but many people have copied it verbatim.

@edpittol
Copy link
Author

Cool.

The no-content package hasn't the default dist themes and plugins. Which is better when it's used the Composer to manage the dependencies. If some these default packages are necessary, they must be added in the composer.json files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants