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

Add support for cypress? #76

Open
Stupidism opened this issue Mar 27, 2020 · 2 comments
Open

Add support for cypress? #76

Stupidism opened this issue Mar 27, 2020 · 2 comments

Comments

@Stupidism
Copy link

No description provided.

@Roman-Lo
Copy link

Roman-Lo commented Mar 27, 2020

No description provided.

Cypress defines their mirror site to resolve install package by query param, pattern:

https://<mirror-site>/desktop/<version>?platform=<platform>&arch=<arch>

But taobao cypress mirror is stored in a folder-based pattern:

https://npm.taobao.org/mirrors/cypress/<version>/<platform>-<arch>/cypress.zip

So there should be an url rewrite/convert rule to make taobao npm work. Currently, I've built a local web service to do the url conversion and set the CYPRESS_DOWNLOAD_MIRROR to it.

I don't think by generating a .npmrc file can solve this problem. But it is okay if all the team members are using the same OS.

@fjc0k
Copy link

fjc0k commented May 9, 2020

tbify 支持 Cypress:

https://github.com/fjc0k/tbify

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

3 participants