Skip to content

Commit ad5fb54

Browse files
committed
Fetch files via cgit.drupalcode.org directly (#38)
1 parent 594e0cb commit ad5fb54

File tree

10 files changed

+546
-1225
lines changed

10 files changed

+546
-1225
lines changed

README.md

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Composer plugin for automatically downloading Drupal scaffold files (like
66
It is recommended that the vendor directory be placed in its standard location
77
at the project root, outside of the Drupal root; however, the location of the
88
vendor directory and the name of the Drupal root may be placed in whatever
9-
location suits the project. Drupal-scaffold will generate the autoload.php
10-
file at the Drupal root to require the Composer-generated autoload file in the
9+
location suits the project. Drupal-scaffold will generate the autoload.php
10+
file at the Drupal root to require the Composer-generated autoload file in the
1111
vendor directory.
1212

1313
## Usage
@@ -28,7 +28,7 @@ of your root `composer.json`.
2828
{
2929
"extra": {
3030
"drupal-scaffold": {
31-
"source": "https://ftp.drupal.org/files/projects/drupal-{version}.tar.gz",
31+
"source": "http://cgit.drupalcode.org/drupal/plain/{path}?h={version}",
3232
"excludes": [
3333
"google123.html",
3434
"robots.txt"
@@ -47,37 +47,26 @@ scaffold files from; the default source is drupal.org. The literal string
4747
Drupal core being updated prior to download.
4848

4949
With the `drupal-scaffold` option `excludes`, you can provide additional paths
50-
that should not be copied or overwritten. Default excludes are provided by the
51-
plugin:
52-
```
53-
.gitkeep
54-
autoload.php
55-
composer.json
56-
composer.lock
57-
core
58-
drush
59-
example.gitignore
60-
LICENSE.txt
61-
README.txt
62-
vendor
63-
themes
64-
profiles
65-
modules
66-
sites/*
67-
sites/default/*
68-
```
50+
that should not be copied or overwritten. The plugin provides no excludes by
51+
default.
6952

70-
If there are some files inside of an excluded location that should be
71-
copied over, they can be individually selected for inclusion via the
72-
`includes` option. Default includes are provided by the plugin:
53+
Default includes are provided by the plugin:
7354
```
74-
sites
75-
sites/default
55+
.csslintrc
56+
.editorconfig
57+
.eslintignore
58+
.eslintrc
59+
.gitattributes
60+
.htaccess
61+
index.php
62+
robots.txt
7663
sites/default/default.settings.php
7764
sites/default/default.services.yml
7865
sites/development.services.yml
7966
sites/example.settings.local.php
8067
sites/example.sites.php
68+
update.php
69+
web.config
8170
```
8271

8372
When setting `omit-defaults` to `true`, neither the default excludes nor the
@@ -114,8 +103,7 @@ command callback to the `scripts`-section of your root `composer.json`, like thi
114103
After that you can manually download the scaffold files according to your
115104
configuration by using `composer drupal-scaffold`.
116105

117-
Note that drupal-scaffold does not automatically run after `composer install`.
118106
It is assumed that the scaffold files will be committed to the repository, to
119107
ensure that the correct files are used on the CI server (see **Limitation**,
120-
above). After running `composer install` for the first time, also run
121-
`composer drupal-scaffold`, and commit the scaffold files to your repository.
108+
above). After running `composer install` for the first time commit the scaffold
109+
files to your repository.

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
"license": "GPL-2.0+",
66
"require": {
77
"php": ">=5.4.5",
8-
"composer-plugin-api": "^1.0.0",
9-
"guzzlehttp/guzzle": "~6.1",
10-
"codegyre/robo": "^0.7.1",
11-
"pear/archive_tar": "~1.0",
12-
"ext-curl": "*",
13-
"ext-zlib": "*"
8+
"composer-plugin-api": "^1.0.0"
149
},
1510
"autoload": {
1611
"psr-4": {
@@ -20,7 +15,7 @@
2015
"extra": {
2116
"class": "DrupalComposer\\DrupalScaffold\\Plugin",
2217
"branch-alias": {
23-
"dev-master": "1.0.x-dev"
18+
"dev-master": "2.0.x-dev"
2419
}
2520
},
2621
"require-dev": {

0 commit comments

Comments
 (0)