Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129858

Add excludes for package.json build outputs

    Details

      Description

      Greg Hurrell: Is it possible to apply build.gradle configuration like the following at a global level?

      processResources {
      	exclude "**/*.d.js"
      	exclude "**/*.d.js.map"
      	exclude "**/*.ts"
      }
      

      they are all files that we would never want to be copied into a JAR.

      ".ts" files are typescript that we compile to ".js"; the browser doesn't care about the original ".ts" source, it only cares about the ".js"

      ".d.ts" files are generated from the ".ts" files; they contain type definitions only and no implementation; they are for the benefit of editors/IDEs and the build tooling itself

      so, given that we have ".d.ts" files, we get ".d.js" (compiled versions of the same), plus "d.js.map" files; these are effectively empty because like i said, their inputs are nothing but type information with no implementation

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            peter.shin Peter Shin
            Recent user:
            Enterprise Release HU
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X
                7.3.7 CE GA8
                7.3.X
                7.4.0 CE GA1 DXP 7,4
                Master