Giter VIP home page Giter VIP logo

Comments (12)

razvanphp avatar razvanphp commented on May 22, 2024 1

I don't know, saw those discussions and you mentioning it in the OP 🙂

from asset-packagist.

hiqsol avatar hiqsol commented on May 22, 2024

You propose to make something like bower-packagist.org and npm-packagist.org ?
Did I get you correctly?
It is possible of course.
But I didn't get any profit for anybody.
Could you please clarify?

from asset-packagist.

schmunk42 avatar schmunk42 commented on May 22, 2024

Don't need to be separate domains, URLs would be fine:

https://asset-packagist.org/bower
https://asset-packagist.org/npm

As outlined in the linked foxy issue, there's a way to convert requirements like npm-asset into native package.json entries, while still keeping the existing syntax (and ability to use ap) in composer.json. This won't be supported for bower.

I'd like to have the option to use asset-packagist for bower, but not for npm.

from asset-packagist.

hiqsol avatar hiqsol commented on May 22, 2024

Ok, now I see. Good idea.
Need time to investigate it more.

from asset-packagist.

hiqsol avatar hiqsol commented on May 22, 2024

It's only necessary to return only bower packages on bower url.
Or more?

from asset-packagist.

francoispluchino avatar francoispluchino commented on May 22, 2024

@schmunk42 Good idea! In this case, I can add automatically the asset-packagist repository in Composer with the Composer Asset Plugin Legacy. If @hiqsol accepts.

from asset-packagist.

francoispluchino avatar francoispluchino commented on May 22, 2024

@hiqsol In connection with my comment on the problem to create a bridge between CAP/Asset-Packagist and Foxy.

Is it possible for asset-packagist to return a mock for NPM packages, as well as a ZIP archive containing only a package.json file with the minimum information?

from asset-packagist.

hiqsol avatar hiqsol commented on May 22, 2024

@francoispluchino Yes, it is possible.
But I'm a bit busy right now and can't spend enough time to read all the given links thoroughly, so I feel that I lose enough understanding what do you want to achieve.

How this mock should look?
If you are ready to make a PR I'll be glad to help.

from asset-packagist.

francoispluchino avatar francoispluchino commented on May 22, 2024

A package.json file containing only the name in the ZIP archive. I think it may be generic (like composer-asset-package-mock). This is only for Composer to not throw an exception for NPM packages.

Regarding the resolution of package dependencies, I don't know how your server work, but to make it simple, a Composer package mock must be created for each asset package version required during the resolution (retrieved from the true package.json file, but with empty lists for dependencies and devDependencies sections of the converted package.json file to composer.json file).

Regarding the ZIP archive downloading, return a ZIP archive for any versions of any packages (without checking).

from asset-packagist.

github-actions avatar github-actions commented on May 22, 2024

Stale issue message

from asset-packagist.

razvanphp avatar razvanphp commented on May 22, 2024

Can we reopen this? Seems to be necessary for some improvements in foxy.

from asset-packagist.

schmunk42 avatar schmunk42 commented on May 22, 2024

Can we reopen this? Seems to be necessary for some improvements in foxy.

@razvanphp How is asset-packagist related to foxy?

from asset-packagist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.