Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23128

As a developer, I want to be able to install PlatformUIBundle with composer without warning

    Details

      Description

      Current status

      The composer post install scripts are failing, this is happening because, the scripts are trying to dump the assets which are not there yet (needs to be generated with js tools first).

      $ ./composer.phar install
      Loading composer repositories with package information
      Installing dependencies (including require-dev)
        - Installing ezsystems/platform-ui-bundle (dev-master fa2d6f7)
          Cloning fa2d6f7a91a5074e0ae5c5184c3d1d5675cbd1eb
       
      Writing lock file
      Generating autoload files
      Updating the "ezpublish/config/parameters.yml" file
      Clearing the cache for the dev environment with debug true
      Clearing All cache: 
      Content view cache, Global INI cache, INI cache, Codepage cache, Class identifier cache, Sort key cache, URL alias cache, Character transformation cache, Image alias, Template cache, Template block cache, Template override cache, Text to image cache, RSS cache, User info cache, Content tree menu (browser cache), State limitations cache, Content Language cache, Design base cache, Active extensions cache, TS Translation cache, SSL Zones cache, REST Application cache, REST Routes memory cache, eZJSCore Public Packer cache
      Installing assets using the symlink option
      Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
      Installing assets for Tedivm\StashBundle into web/bundles/tedivmstash
      Installing assets for EzSystems\DemoBundle into web/bundles/ezdemo
      Installing assets for WhiteOctober\PagerfantaBundle into web/bundles/whiteoctoberpagerfanta
      Installing assets for EzSystems\PlatformUIBundle into web/bundles/ezplatformui
      Installing assets for EzSystems\AdminBundle into web/bundles/ezadmin
      Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
      Installing eZ Publish legacy assets from /home/dp/dev/ezpublish-community/ezpublish/../ezpublish_legacy using the symlink option
      Installing wrappers for eZ Publish legacy front controllers (rest & cluster)
      Dumping all prod assets.
      Debug mode is off.
       
      14:25:26 [file+] web/css/3c5fbcb.css
      14:25:26 [file+] web/js/f110395.js
       
       
                                                                                                       
        [InvalidArgumentException]                                                                     
        Unable to find file "@eZPlatformUIBundle/Resources/public/vendors/pure/base-context-min.css".  
                                                                                                       
       
       
      assetic:dump [--watch] [--force] [--period="..."] [write_to]
       
       
      Script eZ\Bundle\EzPublishCoreBundle\Composer\ScriptHandler::dumpAssets handling the post-install-cmd event terminated with an exception
       
       
                                                                                               
        [RuntimeException]                                                                     
        An error occurred when executing the "'assetic:dump --env=prod '\''web'\'''" command.  
                                                                                               
      

        Issue Links

          Activity

          Hide
          Damien Pobel (Inactive) added a comment - - edited
          Show
          Damien Pobel (Inactive) added a comment - - edited Potential ways of solving that: https://github.com/francoispluchino/composer-asset-plugin http://bowerphp.org/
          Hide
          Damien Pobel (Inactive) added a comment -

          Better way, have a bundle with external dependencies

          Show
          Damien Pobel (Inactive) added a comment - Better way, have a bundle with external dependencies
          Show
          Damien Pobel (Inactive) added a comment - Review: https://github.com/ezsystems/PlatformUIBundle/pull/136
          Show
          Damien Pobel (Inactive) added a comment - Merged in https://github.com/ezsystems/PlatformUIBundle/commit/343fa1c62b57b7cc5dedfc17cb9dc9c70f234628
          Hide
          Damien Pobel (Inactive) added a comment -

          @Doc: the default REST auth method is now Session (see commit in EZP-23742). I don't know if the doc mentions the bundle installed by default, but if it's the case, PlatformUIBundle and PlatformUIAssetsBundle should be added.

          Show
          Damien Pobel (Inactive) added a comment - @Doc: the default REST auth method is now Session (see commit in EZP-23742 ). I don't know if the doc mentions the bundle installed by default, but if it's the case, PlatformUIBundle and PlatformUIAssetsBundle should be added.
          Hide
          André Rømcke added a comment -

          Moved doc task to dedicated issue: EZP-23857

          Show
          André Rømcke added a comment - Moved doc task to dedicated issue: EZP-23857

            People

            • Assignee:
              Unassigned
              Reporter:
              Damien Pobel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile