Tuleap 16 est là ! Assistez à l'événement virtuel le 17 octobre à 10h30. Inscrivez-vous ici !

    •  
      request #14652 Hoist webpack configs at plugins root folders
    Infos
    #14652
    Joris MASSON (jmasson)
    2020-04-02 15:10
    2020-03-06 15:17
    15902
    Details
    Hoist webpack configs at plugins root folders

    This is a follow-up of request #14384

    Now that even legacy files are concatenated with Webpack, we should harmonize plugins. /plugins/<plugin-name> should be the "entrypoint" for all plugins. It should contain:

    • package.json & package-lock.json. As long as it makes sense. Some dependencies still need to be scoped per-application, for example in agiledashboard: kanban and planning-v2 should not share dependencies.
    • jest.config.js
    • tsconfig.json
    • webpack.(common|dev|prod).js

    This setup will make it easier for everyone to know where they should run "npm" commands. It also lets us unify themes and scripts builds by having only one command to build / watch both.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2020-03-26
    Attachments
    Empty
    References
    Referencing request #14652

    Git commit

    tuleap/tuleap/stable

    Move tracker script assets out of www/ 036a05f811
    Always remove the scripts and themes folders of the plugins from the RPMs 2e65590efd
    Unify themes and scripts build for admindelegation e93a3bbb54
    Unify themes and scripts build for crosstracker 8ed7ce3ec5
    Unify themes and scripts build for document a9716497c7
    Unify themes and scripts builds for projectmilestones b1d5c44174
    Unify themes and scripts builds for timetracking 2409f34aaa
    Unify themes and scripts builds for FRS 30814e64a0
    Unify themes and scripts builds for forumml 9174a5a001
    Unify themes and scripts builds for graphontrackersv5 4a7f4e6838
    Add forgotten legacy scripts to webpack configuration 7e4d2f65b1
    Unify themes and scripts builds for label 9d3bd77739
    Fix cypress tests b3fab437bb
    Unify themes and scripts builds for hudson_svn a647b4bbf4
    Unify themes and scripts builds for hudson 451fd38424
    Unify themes and scripts builds for ldap bce9481f33
    Unify themes and scripts builds for mediawiki 01732686c5
    Unify themes and scripts builds for pluginsadministration 6698ba52ce
    Unify themes and scripts builds for proftpd 9bb96cff46
    Unify themes and scripts builds for project_ownership 99759ea01e
    Unify themes and scripts builds for projectlinks 94848712e8
    Unify themes and scripts builds for pullrequest 3030c90268
    Unify themes and scripts builds for tuleap_synchro 639242018d
    Unify themes and scripts builds for velocity 92dfde81b9
    Assets are built twice when building the RPM 8766b6d710
    Unify themes and scripts builds for testmanagement cfe6258c38
    Assets are built twice when building the RPM b66445f887
    Unify themes and scripts builds for baseline 5f384d117b

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2020-03-26 14:38
    Patch for TestManagement has been merged.

    • Status changed from Reopen to Closed
    • Close date set to 2020-03-26