craigwh10 / dependency_install_swapper Goto Github PK
View Code? Open in Web Editor NEWLightweight google chrome extension which changes the install field in npmjs.com or yarnpkg.com to your preferred package manager.
Lightweight google chrome extension which changes the install field in npmjs.com or yarnpkg.com to your preferred package manager.
currently, this listens to changes to the main of the yarnpkg.com/packages/* site, including its subtrees, content, and attributes.
this isn't optimal, but it works effectively - some work needs to be done to find a more reliable point to observe from which captures when the DOM has finished changing, as with CSR the DOM modifies many times before it is "done".
how to reproduce:
definition of done:
dependency_install_swapper/packages/chrome/popup.html
Lines 15 to 46 in e38fe2b
Current behaviour
Desired behaviour
This could possibly show as a placeholder, some behaviour to be wary of is if it selects npm if you go npm for first time, then if you go to yarn it should not transform it to npm, but be yarn
I have made an initial attempt on https://github.com/craigwh10/dependency_install_swapper/pull/18/files
I'll be bringing more attention to this on the weekend but the questions are currently:
Open questions:
Resolved
Notes
Would be nice to have https://www.npmjs.com/package/axe-core or similar running inside one of the git jobs in the case of changing any of the HTML/CSS.
Currently, this is only done manually, assumedly this would require some functional script writing which falls back onto the issue of using Puppeteer, so minimally the linting rules would be good for this.
We have:
dependency_install_swapper/.github/workflows/health-check.js.yml
Lines 29 to 44 in c278444
Shows the commented out jobs, the first uses a shared job to install chrome - which shows to be visible inside the tests.
Currently, the only targets that are being picked up are page and browser, and the tests hang waiting for target.
Have tried increasing timeouts.
https://github.com/marketplace/actions/puppeteer-headful is an option I've tried without much success but is still a viable option
Useful resouce
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.