GithubHelp home page GithubHelp logo

thalesvb / ui5-task-nuke Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21 KB

Remove files from your UI5 build, including those generated by standard tasks.

License: MIT License

JavaScript 100.00%
builder ui5

ui5-task-nuke's Introduction

Nuke files during UI5 build process

Ahhh... much better.

Normally you exclude resources files from build process with resources\excludes rule, but that applies to your own project files, not the ones generated by build process itself.

This task let you tell builder which files it should not write to output directory on build. It should be the last task processed on build chain.

Parental advisory: misconfiguration can lead to broken UI5 builds (ie.: runtime errors when you deploy the resulting project). Use it at your own discretion.

Configuration options

  • nukes: a glob string or an array of glob strings to identify files that should be nuked from output directory.

The glob expressions accepted are the same ones that @ui5/fs.DuplexCollection.byGlob accepts. It relies on implementation that UI5 builder uses for glob handling.

Usage

  1. Add it to your project development dependencies (either manually or through package managers) and also on ui5 dependencies on package.json.
"devDependencies": {
  "@thalesvb/ui5-task-nuke": "<version>"
},
"ui5": {
  "dependencies": [
    "@thalesvb/ui5-task-nuke"
  ]
}
  1. Configure it on your ui5.yaml under builder \ customTasks section. The task is named thalesvb/nuke.

Example

A Component-preload.js only build would likely be achieved by:

builder:
  customTasks:
    - name: thalesvb/nuke
      afterTask: generateVersionInfo
      configuration:
        nukes:
          - "**/*.properties"
          - "**/*.xml"
          - "**/*.js"
          - "!**/Component-preload.js"

ui5-task-nuke's People

Contributors

thalesvb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.