Skip to content
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

[WIP] Scaffold assets #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

greg-1-anderson
Copy link
Contributor

This is the code used to produce greg-1-anderson/drupal-scaffold-assets. See greg-1-anderson/drupal-drupal-composer for motivation and comparison with drupal-composer/drupal-project.

The .yml file that goes with the code is:

packages:
  greg-1-anderson/drupal-scaffold-assets:
    source: https://git.drupalcode.org/project/drupal.git
    target: https://github.com/greg-1-anderson/drupal-scaffold-assets.git
    git:
      author:
        name: Greg Anderson
        email: greg.1.anderson@greeknowe.org
    builder: \PackageGeneratorDrupal\DrupalScaffoldAssetsBuilder
    composer:
      metadata:
        name: greg-1-anderson/drupal-scaffold-assets
        type: library
        description: Scaffold assets from drupal/drupal
        license: GPL-2.0-or-later
      file-mapping:
        "[web-root]/.csslintrc": "assets/csslintrc"
        "[web-root]/.editorconfig": "assets/editorconfig"
        "[web-root]/.eslintignore": "assets/eslintignore"
        "[web-root]/.eslintrc.json": "assets/eslintrc.json"
        "[web-root]/.gitattributes": "assets/gitattributes"
        "[web-root]/.ht.router.php": "assets/ht.router.php"
        "[web-root]/.htaccess": "assets/htaccess"
        "[web-root]/example.gitignore": "assets/example.gitignore"
        "[web-root]/index.php": "assets/index.php"
        "[web-root]/robots.txt": "assets/robots.txt"
        "[web-root]/update.php": "assets/update.php"
        "[web-root]/web.config": "assets/web.config"
        "[web-root]/sites/default/default.services.yml": "assets/default.services.yml"
        "[web-root]/sites/default/default.settings.php": "assets/default.settings.php"
        "[web-root]/sites/example.settings.local.php": "assets/example.settings.local.php"
        "[web-root]/sites/development.services.yml": "assets/development.services.yml"
        "[web-root]/sites/default/settings.php":
            shadow: "[web-root]/sites/default/default.settings.php"
            path: "assets/default.settings.php"
            overwrite: false
        "[web-root]/sites/example.sites.php": "assets/example.sites.php"
        "[web-root]/modules/README.txt": "assets/modules.README.txt"
        "[web-root]/profiles/README.txt": "assets/profiles.README.txt"
        "[web-root]/sites/README.txt": "assets/sites.README.txt"
        "[web-root]/themes/README.txt": "assets/themes.README.txt"
        "[web-root]/INSTALL.txt": "assets/INSTALL.txt"
        "[web-root]/README.txt": "assets/README.txt"

Requires webflo/package-generator#1.

You will not necessarily want to take this PR, but it might be useful for supporting the workflow from the Composer in Core initiative in Drupal 8.7.x and earlier, if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant