Skip to content
Snippets Groups Projects
  1. Jun 13, 2024
  2. Jun 12, 2024
  3. Jun 11, 2024
  4. Jun 10, 2024
  5. Jun 07, 2024
  6. Jun 06, 2024
  7. Jun 05, 2024
  8. Jun 03, 2024
  9. May 27, 2024
  10. May 25, 2024
  11. May 22, 2024
  12. May 21, 2024
  13. May 17, 2024
  14. May 14, 2024
  15. May 11, 2024
  16. May 10, 2024
  17. May 06, 2024
  18. May 03, 2024
  19. May 02, 2024
  20. Apr 23, 2024
  21. Apr 16, 2024
  22. Apr 15, 2024
  23. Apr 10, 2024
  24. Apr 08, 2024
    • Stefan Bürk's avatar
      [TASK] Add `npm` command dispatcher to `Build/Scripts/runTests.sh` · e72382d2
      Stefan Bürk authored
      `Build/Scripts/runTests.sh` is the monorepo main dispatcher of
      script and tools to ensure same working state across developer
      host system and installation by using well defined containers.
      This mitigates issues with missing dependencies or wrong version
      of tools on develper machines.
      
      Until now local installation of `node` and `npm` in the matching
      version was mandatory to work with the node ecosystem like manage
      dependencies, executing node based tools or the build chain for
      CSS and TypeScript/JavaScript.
      
      This change adds now a `npm` dispatcher to `runTests.sh` similar
      to the `composer` command dispatcher introduced with #103045 to
      allow executing npm commands and defined scripts in `package.json`
      in a well-defined environment and removes the hard-requirement of
      installing it locally for new contributors.
      
      Added `runTests.sh` suite:
      
      * ./Build/Scripts/runTests.sh -s npm --  <npm-command-arguments>
      
      which allows now to using npm commands always with the correct
      npm and node version defined for the mono-repository state.
      
      Some examples:
      
        ./Build/Scripts/runTests.sh -s npm -- audit
        ./Build/Scripts/runTests.sh -s npm -- ci
        ./Build/Scripts/runTests.sh -s npm -- run build
        ./Build/Scripts/runTests.sh -s npm -- run watch:build
        ./Build/Scripts/runTests.sh -s npm -- install \
          --save bootstrap@^5.3.2
      
      Resolves: #103552
      Related: #103045
      Releases: main, 12.4, 11.5
      Change-Id: Ie9de71f24dfd4805a98be7dc1b1604e5d0146eec
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83664
      
      
      Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
      e72382d2