Skip to content

Instantly share code, notes, and snippets.

@mortenson
Last active August 20, 2023 10:39
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mortenson/a5390d99013b5b8c0254081e89bb4d47 to your computer and use it in GitHub Desktop.
Save mortenson/a5390d99013b5b8c0254081e89bb4d47 to your computer and use it in GitHub Desktop.
Example composer.json file for File Browser
{
"name": "mortenson/example",
"minimum-stability": "dev",
"authors": [
{
"name": "Samuel Mortenson",
"email": "samuel.mortenson@acquia.com"
}
],
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "package",
"package": {
"name": "desandro/masonry",
"version": "3.3.1",
"type": "drupal-library",
"dist": {
"url": "https://github.com/desandro/masonry/archive/v3.3.1.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "desandro/imagesloaded",
"version": "3.1.8",
"type": "drupal-library",
"dist": {
"url": "https://github.com/desandro/imagesloaded/archive/v3.1.8.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "enyo/dropzone",
"version": "4.2.0",
"type": "drupal-library",
"source": {
"url": "https://github.com/enyo/dropzone",
"type": "git",
"reference": "origin/master"
}
}
}
],
"extra": {
"installer-paths": {
"libraries/{$name}": [
"type:drupal-library"
],
"modules/contrib/{$name}": [
"type:drupal-module"
]
}
},
"require": {
"composer/installers": "^1.0.20",
"drupal/file_browser": "dev-1.x",
"drupal/entity_embed": "dev-1.x",
"drupal/entity_browser": "dev-1.x",
"drupal/dropzonejs": "dev-1.x",
"enyo/dropzone": "4.2.0",
"desandro/masonry": "3.3.1",
"desandro/imagesloaded": "3.1.8"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment