Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 900 Bytes

tasks.md

File metadata and controls

23 lines (16 loc) · 900 Bytes

Custom Tasks

IncludeResourceTask 🔗

Copies or symlinks a file or directory within your project.

Attributes

Name Type Description Default Required
mode string Either copy or symlink. Inherited from build.artifact_mode if available. symlink No
source string Path to the resource. n/a Yes
dest string Path where the resource should be included in your build. n/a Yes

Examples

<!-- Copy generated CSS into your theme. -->
<includeresource mode="copy" source="styleguide/src/content/assets/css" dest="web/themes/custom/my_theme/css" />

<!-- Use build properties to include a JS library in your Drupal libraries directory -->
<includeresource mode="${build.artifact_mode}" source="vendor/foo/somelibrary" dest="${drupal.root}/libraries/somelibrary" />