Skip to content

Commit

Permalink
Added composer project template
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-sereda committed Jun 15, 2022
0 parents commit 68bf10c
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# gitignore template for Drupal 9 projects
#
# earlier versions of Drupal are tracked in `community/PHP/`

# Ignore configuration files that may contain sensitive information
/web/sites/*/settings.local.php
/web/sites/*/services*.yml

# Ignore paths that may contain user-generated content
/web/sites/*/files
/web/sites/*/public
/web/sites/*/private
/web/sites/*/files-public
/web/sites/*/files-private

# Ignore paths that may contain temporary files
/web/sites/*/translations
/web/sites/*/tmp
/web/sites/*/cache

# Ignore testing related files
/web/sites/simpletest

# Ignore drupal core (if not versioning drupal sources)
/web/core
/web/modules/README.txt
/web/profiles/README.txt
/web/sites/README.txt
/web/sites/development.services.yml
/web/themes/README.txt
/vendor
/web/.csslintrc
/.editorconfig
/.gitattributes
/web/.eslintignore
/web/.eslintrc.json
/web/.gitattributes
/web/.htaccess
/web/autoload.php
/web/example.gitignore
/web/index.php
/web/LICENSE.txt
/web/README.txt
/web/INSTALL.txt
/web/robots.txt
/web/update.php
/web/web.config
/web/.ht.router.php

# Ignore directories generated by Composer
/drush/contrib/
/web/core/
/web/modules/contrib/
/web/themes/contrib/
/web/profiles/contrib/
/web/libraries/

# Ignore files generated by PhpStorm
/.idea/

# MacOS specific stuff.
.DS_Store

/composer.lock
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Quick start

`$ composer create-project dom-digital-online-media/living-spaces-composer-template YOUR_PROJECT_NAME`

Composer will create a new directory called YOUR_PROJECT_NAME,
then you will need to install Living Spaces like you would any other Drupal site.
148 changes: 148 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"name": "dom-digital-online-media/living-spaces-composer-template",
"description": "Project template for Drupal 9 projects with living_spaces distribution.",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "",
"role": ""
}
],
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/lenient"
},
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "package",
"package": {
"name": "dom-digital-online-media/dom_faq",
"type": "drupal-module",
"version": "1.4",
"dist": {
"url": "https://github.com/dom-digital-online-media/dom_faq/archive/v1.4.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "valve/fingerprintjs2",
"type": "drupal-library",
"version": "2.1.0",
"dist": {
"url": "https://github.com/fingerprintjs/fingerprintjs/archive/2.1.0.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "fullcalendar/fullcalendar",
"version": "4.4.0",
"type": "drupal-library",
"dist": {
"url": "https://github.com/fullcalendar/fullcalendar/releases/download/v4.4.0/fullcalendar-4.4.0.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "dom-digital-online-media/dom_bootstrap",
"type": "drupal-module",
"version": "1.1",
"dist": {
"url": "https://github.com/dom-digital-online-media/dom_bootstrap/archive/1.1.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "dom-digital-online-media/dom_field_extra",
"type": "drupal-module",
"version": "1.0",
"dist": {
"url": "https://github.com/dom-digital-online-media/dom_field_extra/archive/1.0.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "dom-digital-online-media/dom_paragraphs_extra",
"type": "drupal-module",
"version": "1.1",
"dist": {
"url": "https://github.com/dom-digital-online-media/dom_paragraphs_extra/archive/1.1.zip",
"type": "zip"
}
}
}
],
"require": {
"composer/installers": "^1.9",
"dom-digital-online-media/living_spaces": "^1.0@alpha",
"drupal/backup_migrate": "^5.0",
"drupal/console": "~1.0",
"drupal/core-composer-scaffold": "^9.3",
"drupal/core-project-message": "^9.3",
"drupal/core-recommended": "^9.3",
"drush/drush": "^10.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"drupal/coder": "^8.3",
"drupal/core-dev": "^9.3"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"drupal/console-extend-plugin": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
},
"file-mapping": {
"[web-root]/sites/default/default.services.yml": false,
"[web-root]/sites/default/default.settings.php": false
}
},
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"],
"web/modules/custom/{$name}": ["type:drupal-custom-module"],
"web/profiles/custom/{$name}": ["type:drupal-custom-profile"],
"web/themes/custom/{$name}": ["type:drupal-custom-theme"]
},
"enable-patching": true
}
}

0 comments on commit 68bf10c

Please sign in to comment.