Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Extract js package to another repo #919
Comments
This is a reasonable feature request to consider. It should be possible to accomplish this, but it would take a fair bit of implementation work (which is hard due to #894). It also has the downside of potentially creating churn (people updating As an alternative, have you considered using the |
|
(I will leave this issue open for some time, ok?) |
Probably |
Currently, while GopherJS API is presented in the package js (https://github.com/gopherjs/gopherjs/tree/master/js). And to use it every user needs to check out a quite heavy
github.com/gopherjs/gopherjs
repo.I'm proposing to extract
js
package to a new repo (probablygithub.com/gopherjs/js
) and alias its types ingithub.com/gopherjs/gopherjs/js
.The back compatibility will be safe, users will use(depend) on a much smaller package, we can introduce Go modules to the new package with out any problems(hopefully).
I hope I'm not missing something and it's possible to make. Thank you.
UPD: aliases were added in 1.9, I'm not sure what is the minimal supported version for gopherjs.