Configuration in ui5.yaml file for the createDebugFiles Task

Open
#383 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start in the ui5-builder implementation of the createDebugFiles task and review how it relates to the createBundle task and ui5.yaml configuration. Define configuration that skips selected source files and selects bundle outputs for debug files; done means both cases are supported through ui5.yaml.

Written by the indexing model from the issue text.

Description

module/ui5-builder

Expected Behavior

I would like to be able to write additional configuration in the ui5.yaml file for the createDebugFiles task to:

  1. skip a source file from being created with debug file
    • Example: there's a source file in our library, let's call it bootstrap.js. The file is used only for development time. Once the library is built, the content of this file is replaced completely but saved still under the same path. We also create a bundle for being used under debug mode. This means that we create two bundles, bootstrap.js and bootstrap-dbg.js. We need a configuration to skip the creation of the bootstrap-dbg.js otherwise the dbg file is created by copy the content of the bootstrap.js bundle which is different than the bootstrap-dbg.js bundle.
  2. specify the bundles which are created in createBundle task to be created with debug files
    • some of our bundle files should also be created with debug files. Because they don't appear as source files but only be created in the createBundle task, they are currently not being considered in the createdDebugFiles task.

Current Behavior

Debug files are created for each and every javascript source file. There's no way to add additional and to skip the existing source files.

Affected components

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.