Skip to content

Instantly share code, notes, and snippets.

@ataylorme
Created February 3, 2017 17:18
Show Gist options
  • Select an option

  • Save ataylorme/d1dac2a4d25c2486458fe84a56aa0aa5 to your computer and use it in GitHub Desktop.

Select an option

Save ataylorme/d1dac2a4d25c2486458fe84a56aa0aa5 to your computer and use it in GitHub Desktop.

Revisions

  1. ataylorme created this gist Feb 3, 2017.
    54 changes: 54 additions & 0 deletions pantheon-wordpress-composer.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    {
    "name": "WordPress-Composer-Example",
    "description": "",
    "repositories": [
    {
    "type": "composer",
    "url": "https://wpackagist.org"
    },
    {
    "type": "package",
    "package": {
    "name": "pantheon-systems/wordpress",
    "version": "4.7.2",
    "dist": {
    "url": "https://github.com/pantheon-systems/WordPress/archive/4.7.2.zip",
    "type": "zip"
    },
    "source": {
    "url": "[email protected]:pantheon-systems/WordPress.git",
    "type": "git",
    "reference": "4.7.2"
    },
    "type": "wordpress-core",
    "require": {
    "johnpbloch/wordpress-core-installer": "~0.1"
    },
    "extra": {
    "wordpress-install-dir": "web/wp"
    }
    }
    }
    ],
    "require": {
    "composer/installers": "~1.0",
    "pantheon-systems/wordpress": "^4.7.2",
    "wpackagist-theme/twentyseventeen": "^1.1",
    "wpackagist-plugin/wp-cfm": "^1.4.5"
    },
    "config": {
    "vendor-dir": "vendor",
    "preferred-install": "dist",
    "secure-http": false
    },
    "extra": {
    "installer-paths": {
    "web/wp-content/plugins/{$name}/": [
    "type:wordpress-plugin"
    ],
    "web/wp-content/themes/{$name}/": [
    "type:wordpress-theme"
    ]
    }
    }
    }