Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add generateResourcesJson task #390

Merged
merged 88 commits into from
Aug 24, 2020
Merged

Commits on Aug 19, 2020

  1. Configuration menu
    Copy the full SHA
    cdd459f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    caf6393 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0770dc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4f229bb View commit details
    Browse the repository at this point in the history
  5. add size information

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    492e267 View commit details
    Browse the repository at this point in the history
  6. Add additional information to resources.json

    * requiresTopLevelScope
    * exposedGlobalNames
    * format
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    9faf8ce View commit details
    Browse the repository at this point in the history
  7. Fix size for compressed files

    Use always buffer bytelength because this reflect the correct size
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    97cd12b View commit details
    Browse the repository at this point in the history
  8. Refactoring

    Refactored LocatorResource and LocatorResourcePool into
    separate files under lbt folder
    
    removed unused getProject function
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    071c3e3 View commit details
    Browse the repository at this point in the history
  9. Add function getProject

    used by
    lib/lbt/utils/escapePropertiesFile.js:14:27
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    092f884 View commit details
    Browse the repository at this point in the history
  10. fixed import

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    cc53063 View commit details
    Browse the repository at this point in the history
  11. updated size retrieval

    use buffer.length instead of Buffer.byteLength(string)
    for more performance
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    ee70a85 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fc54d2b View commit details
    Browse the repository at this point in the history
  13. Implement missing handling for orphaned resources.

    This part was left out in the initial commit, but it is required when
    building sap.ui.core (where many resources exist outside the library's
    namespace).
    
    More TODOs:
    - migrate all logs to template strings
    - filter options of the processor should accept arrays of filter
      strings, not comma separated strings as in the original Maven
      implementation
    codeworrior authored and tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    de860ac View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f92aeee View commit details
    Browse the repository at this point in the history
  15. refactoring

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    47675e2 View commit details
    Browse the repository at this point in the history
  16. remove dependency resources

    resources.json is per library and should not
    contain dependency resources.
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    231d3e0 View commit details
    Browse the repository at this point in the history
  17. remove commented out code

    Use size property of resource statInfo
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    518910b View commit details
    Browse the repository at this point in the history
  18. Adjusted order of json content

    add module for .properties files
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    34971fb View commit details
    Browse the repository at this point in the history
  19. add resources.json entry to the resources.json

    size for it is good, hits most of the time the right
    value.
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    03462f0 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    34e6e30 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    1ce41e9 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    e6b4a28 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    7dd45ee View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    ed38d14 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    d009f47 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    02bd83b View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    79dce88 View commit details
    Browse the repository at this point in the history
  28. Add conditional require to relative module library.n

    Add logic to ensure requires are resolved with an
    absolute path
    e.g. "./Log.js" -> "sap/base/Log.js"
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    a6a11b3 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    b5aebfe View commit details
    Browse the repository at this point in the history
  30. ensure that ResourceInfo#format is also copied from

    original to dbg resource
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    a5f3957 View commit details
    Browse the repository at this point in the history
  31. restore adding the debug information

    the original and the debug resources should be the same.
    This was changed because sap-ui-core-dbg.js is not the
    same as its source sap-ui-core.js.
    sap-ui-core-dbg.js is a bundle and not the corresponding
    debug file of sap-ui-core.js
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    d567d54 View commit details
    Browse the repository at this point in the history
  32. Make terser leave @ui5-bundle-raw-include comment

    @ui5-bundle-raw-include comment is required to identify
    the module as raw-include.
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    538e9c1 View commit details
    Browse the repository at this point in the history
  33. Add hard coded sap-ui-core-dbg.js analysis

    sap-ui-core-dbg.js is a bundle with different content
    than source file
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    c28add2 View commit details
    Browse the repository at this point in the history
  34. Improve analysis for sap.ui.require calls

    use depths to distinguish nested sap.ui.require calls from
    top level ones
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    c9cff74 View commit details
    Browse the repository at this point in the history
  35. Adjust Analysis logic

    Identify ui5 modules base don module declaration
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    2ab91f6 View commit details
    Browse the repository at this point in the history
  36. refactored and fixed tests

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    df86c75 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    71d0c58 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    7c2c423 View commit details
    Browse the repository at this point in the history
  39. remove excludes

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    6bcc7f1 View commit details
    Browse the repository at this point in the history
  40. restored file not.js

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    dfd54b2 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    85ed400 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    eb1c949 View commit details
    Browse the repository at this point in the history
  43. improves documentation

    add ui5-bundle to the preserved comments
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    5bd062a View commit details
    Browse the repository at this point in the history
  44. use byGlob instead of a combination of byGlobSource and byGlob

    the logic for adding resource infos made the assumption that
    debug files were at the end of the list and they copied their
    information from the non-debug ones.
    This logic is adjusted such that it does not depend on the
    order of the resources.
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    91a8077 View commit details
    Browse the repository at this point in the history
  45. Refactoring separated classes into separate files

    separated each class in resourceListCreator into own file.
    This not only makes it more fine granular but also
    dependencies become clear.
    ResourcesList <-> ResourceInfo: dependency is now one way
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    d64046c View commit details
    Browse the repository at this point in the history
  46. add unit tests for ResourcesList

    use setter and getter instead of private fields
    in ResourceInfo
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    e102acf View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    dcac57c View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    97e9336 View commit details
    Browse the repository at this point in the history
  49. add ResourceCollector unit tests

    * groupResourcesByComponents
    * visitResource
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    2ab8868 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    2b8409d View commit details
    Browse the repository at this point in the history
  51. Add tests for ResourceCollector

    Fix regexps by using the explicit point
    instead of single character
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    ed1e9d1 View commit details
    Browse the repository at this point in the history
  52. Add tests for Resource

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    bfd0a04 View commit details
    Browse the repository at this point in the history
  53. Add tests for ResourceInfo

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    27d69e2 View commit details
    Browse the repository at this point in the history
  54. Add tests for ResourceListCreator

    Added resources.json entry for theme resources.json file
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    487609a View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    5286cf1 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    f22be4a View commit details
    Browse the repository at this point in the history
  57. removed generateResourcesJson task from excludes

    it not part of the default tasks anymore
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    eae29fc View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    132ef33 View commit details
    Browse the repository at this point in the history
  59. refactored code for eslint

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    b36f8f6 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    45aa4e4 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    d1adff8 View commit details
    Browse the repository at this point in the history
  62. Added example to task

    code cleanup
    * ensure that async function resolves with undefined
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    f1ac55c View commit details
    Browse the repository at this point in the history
  63. fix tests for return type

    remove resources.json from library.i
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    ebb0aca View commit details
    Browse the repository at this point in the history
  64. removed unnecessary duplicate test

    removed integration test for library preload
    with resources.json
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    46bce5b View commit details
    Browse the repository at this point in the history
  65. removed unnecessary duplicate test

    removed integration test for collection
    with resources.json
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    e9fc145 View commit details
    Browse the repository at this point in the history
  66. fixed tests

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    7ad646b View commit details
    Browse the repository at this point in the history
  67. Add ModuleInfo tests

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    4e8c876 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    d0190bb View commit details
    Browse the repository at this point in the history
  69. Refactoring I

    sap.ui.requireSync remove relative path resolve logic
    test file, unnecessary code removal
    Rename ResourcesList to ResourceInfoList
    link to doku in generateResourcesJson
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    c95007b View commit details
    Browse the repository at this point in the history
  70. Refactoring II

    Moved size retrieval from listCreator to collector
    Avoid unnecessary join/split by directly using the array
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    7a88642 View commit details
    Browse the repository at this point in the history
  71. version info exclude

    Excluded version info files since they are not
    part of the resources.json
    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    393a775 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    b416715 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    241dbfe View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    af96c08 View commit details
    Browse the repository at this point in the history
  75. Refactored comments

    tobiasso85 committed Aug 19, 2020
    Configuration menu
    Copy the full SHA
    2aad5fe View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    711192c View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    b731011 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    86bd41e View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    176d76f View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    c8f3a80 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2020

  1. Configuration menu
    Copy the full SHA
    7d41128 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9acba6 View commit details
    Browse the repository at this point in the history
  3. removed unnecessary tests

    tobiasso85 committed Aug 20, 2020
    Configuration menu
    Copy the full SHA
    5bbe036 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. [INTERNAL] Move test files into tests as strings

    Reduce test fixtures by using the file content
    string in the tests directly.
    tobiasso85 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    c7db153 View commit details
    Browse the repository at this point in the history
  2. [INTERNAL] Reduce test files

    * move i18n files to separate folder
    * revert some.js
    * put global export logic into newly
      introduced library.designtime.js file
    tobiasso85 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    423858d View commit details
    Browse the repository at this point in the history
  3. Add integration test for uglifier

    ensure @ui5-bundle-raw-include comment is also preserved in Builder.js
    tobiasso85 committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    a3963b9 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2020

  1. Add support information

    Not supported with generateStandaloneAppBundle task.
    tobiasso85 committed Aug 24, 2020
    Configuration menu
    Copy the full SHA
    01a5634 View commit details
    Browse the repository at this point in the history
  2. JSDoc round off

    matz3 committed Aug 24, 2020
    Configuration menu
    Copy the full SHA
    a58c11e View commit details
    Browse the repository at this point in the history