-
Notifications
You must be signed in to change notification settings - Fork 50
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
Special handling for composer-based workflows #284
Changes from all commits
4087b73
cd48089
e515118
d367892
d546cf4
eee347d
446de97
f718c0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,53 @@ | ||
{ | ||
"name": "client/project", | ||
"description": "{Project} drupal codebase for {client}.", | ||
"require-dev": { | ||
"behat/mink-zombie-driver": "~1.2", | ||
"drupal/drupal-extension": "~3.0", | ||
"drush/drush": "^8", | ||
"drupal/coder": "^8.2", | ||
"phpmd/phpmd": "~2.1" | ||
}, | ||
"require": { | ||
"roave/security-advisories": "dev-master" | ||
"name": "client/project", | ||
"description": "{Project} drupal codebase for {client}.", | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://packages.drupal.org/8" | ||
} | ||
], | ||
"require": { | ||
"composer/installers": "^1.0.20", | ||
"drupal-composer/drupal-scaffold": "^2.0.1", | ||
"cweagans/composer-patches": "~1.0", | ||
"drupal/core": "~8.1", | ||
"roave/security-advisories": "dev-master" | ||
}, | ||
"require-dev": { | ||
"behat/mink-zombie-driver": "~1.2", | ||
"drupal/drupal-extension": "~3.0", | ||
"drush/drush": "~8.0", | ||
"drupal/console": "~0.10", | ||
"phpmd/phpmd": "~2.1", | ||
"phpunit/phpunit": "~4.8", | ||
"drupal/coder": "^8.2" | ||
}, | ||
"conflict": { | ||
"drupal/drupal": "*" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"scripts": { | ||
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold" | ||
}, | ||
"extra": { | ||
"installer-paths": { | ||
"build/html/core": [ | ||
"type:drupal-core" | ||
], | ||
"build/html/modules/contrib/{$name}": [ | ||
"type:drupal-module" | ||
], | ||
"build/html/profiles/contrib/{$name}": [ | ||
"type:drupal-profile" | ||
], | ||
"build/html/themes/contrib/{$name}": [ | ||
"type:drupal-theme" | ||
], | ||
"drush/contrib/{$name}": [ | ||
"type:drupal-drush" | ||
] | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,16 @@ module.exports = function(grunt) { | |
], | ||
} | ||
}); | ||
grunt.config(['composer', 'update'], { | ||
options: { | ||
flags: [ | ||
'no-interaction', | ||
'no-progress', | ||
'prefer-dist' | ||
], | ||
} | ||
}); | ||
grunt.config(['composer', 'drupal-scaffold'], {}); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think our use of composer is now getting complicated enough that we need some more documentation on what's going on. In the pre-v1.0 branch we have a significant refactor to documentation, so it should be based on the work there. I assume There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that is correct. Since |
||
|
||
Help.add({ | ||
task: 'composer', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"domain": "http://127.0.0.1:8080", | ||
"srcPaths": { | ||
"make": "src/project.make", | ||
"drupal": "src" | ||
}, | ||
"siteUrls": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?php | ||
/** | ||
* @file | ||
* A doc comment for coding standards. | ||
*/ | ||
|
||
$x = 10; | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to manually run
composer drupal-scaffold
here too, or go figure out why Drupal Scaffold removed it.