Ticket T733409
Visible to All Users

How to add DevExtreme CDN services to the Libman package manager

created 6 years ago

The unpkg package provider is very unstable; when using DevExtreme through libman (which is the out-of-the-box method for recent VS 2017 templates) the restore process often takes up to 10 minutes waiting for unpkg to time out, or fails because unpkg returns errors for individual files. This is apparently a known issue with unpkg, as referenced in this libman GitHub issue:

https://github.com/aspnet/LibraryManager/issues/370

"I'm finding that the libman restore command works reliably with cdnjs, but referencing the provider unpkg (which works within the IDE), consistently fails via the restore command"

Would it be possible to host DevExtreme on cdnjs, or some other libman-compatible package provider, instead of unpkg?

Answers approved by DevExpress Support

created 6 years ago

Hello,

DevExtreme files are available through a Content Delivery Network (CDN). See the CDN Services documentation article.

We don't host our packages on Unpkg. The Unpkg provider gets DevExtreme packages from the Npm repository.

>>Would it be possible to host DevExtreme on cdnjs, or some other libman-compatible package provider
Libman supports adding any file from a file system, network share or remote URL. The libman.json file may look as follows:

XML
{ "version": "1.0", "defaultProvider": "cdnjs", "libraries": [ { "provider": "cdnjs", "library": "jquery@3.4.0", "destination": "wwwroot/lib/jquery/" }, { "provider": "filesystem", "library": "https://cdn3.devexpress.com/jslib/18.2.7/js/dx.all.js", "destination": "wwwroot/lib/DevExtreme/js" }, { "provider": "filesystem", "library": "https://cdn3.devexpress.com/jslib/18.2.7/css/dx.common.css", "destination": "wwwroot/lib/DevExtreme/css" }, { "provider": "filesystem", "library": "https://cdn3.devexpress.com/jslib/18.2.7/css/dx.light.css", "destination": "wwwroot/lib/DevExtreme/css" } ] }

Regards,
Romeo

    Show previous comments (1)
    DevExpress Support Team 6 years ago

      Hello,

      Thank you for sharing your thoughts with us. We will consider publishing our packages on CDNJS in future releases.

      Regards,
      Romeo

        Have you had sufficitent time to consider this yet?

        DevExpress Support Team 5 years ago

          Hello Andy,

          We don't plan to publish DevExtreme packages on cdnjs in the near future.

          Please stay tuned to our news:
          blogs
          GitHub
          Roadmap
          https://js.devexpress.com/New/

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.