Suppress copying of all resources, just allow the creation via task

Open
#362 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
build-system, cli

Research direction

Start with the ui5 build entry point and the ui5-builder handling for --exclude-task, then run ui5 build --exclude-task '*' to observe resource copying. Check how resources are currently included when all tasks are excluded. Done means resources are not copied by default in that case and can instead be created or transformed by an explicit task.

Written by the indexing model from the issue text.

Description

module/ui5-builder

Expected Behavior

When excluding all tasks I would also expect that the resources are not copied by default.

Current Behavior

When using the exclude-task option to suppress all tasks in the library build type then the resources are still copied to the dest directory.

By using a task to copy the resources which could be excluded I can implement an own task which does this and where I maybe change the names and locations of the source files. E.g. while copying I want to read source hbs files and create dest lit.js files without changing the one hbs resource to set a new path and new content.

Steps to reproduce the issue

Just run ui5 build --exclude-task *

Context

Not related

Affected components (if known)

Dominant language
JavaScript
Stars
511
Forks
83
Avg merge
1d 5h
Merged PRs (30d)
55

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UI5/cli

All issues in UI5/cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.