Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to npm install | yarn install the router? #478

Open
edhgoose opened this issue Apr 2, 2024 · 1 comment
Open

Is it possible to npm install | yarn install the router? #478

edhgoose opened this issue Apr 2, 2024 · 1 comment

Comments

@edhgoose
Copy link

edhgoose commented Apr 2, 2024

We're using the router in the context of an existing Typescript module.

We've done the install script of:

yarn add -D ./vendor/friendsofsymfony/jsrouting-bundle/Resources/

And now we can do:

import Routing from "fos-router"

But, the bit of our CI infrastructure that runs our Jest tests doesn't have PHP on it. So we can't execute composer install.

I'd love to be able to install the dependency via yarn remotely. Is it hosted on npm?

It looks like this could be it: https://www.npmjs.com/package/fos-router so yarn install fos-router would work, but I'm wondering if the version is the same?

Thanks!

@SkipTheDragon
Copy link

Hi, the package is outdated on npm. You could write your own CI script to pull the necesary files from this repository, build the assets if not already built and use them as a path or upload them to your own private package manager.

You can find the files you need here https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/tree/master/Resources, the webpack, ts, public folders and package.json file should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants