alessandro-barbieri / node-overlay Goto Github PK
View Code? Open in Web Editor NEWnodejs Gentoo overlay
nodejs Gentoo overlay
webtorrent-desktop is an electron app & uses babel.
This issue is just making a note that I would like to see it added to this overlay at some point
to build rollup you need rollup and some of it's plugins
to build the plugins you need rollup and other plugins
it's a complete madness
I can't bundle the plugins with the eclass because they are missing package-lock.json and they use pnpm instead of npm
Some packages depends on submodules not packaged elsewhere but as a folder in the main project (e.g. language-*
from atom
)
Here are 3 ways of packaging I've been thinking of:
one ebuild for submodule
pros: no need to change the eclass
cons: ebuild version and tarball version aren't the same, no way to check for updates
let npm manage them
pros: only one ebuild
cons: difficult to put the documentation where it should be, the eclass must take care of package.json
and list only the submodules in it before calling npm (currently the eclass clear the dependencies
inside package.json
). Complex bash/jq scripting needed
manually install the submodules
pros: one ebuild only
cons: Complex bash scripting needed, in the ebuild we need to cd module/folder
then run the configure compile install functions
* Error: circular dependencies:
(dev-node/gulp-4.0.2:0/0::node-overlay, ebuild scheduled for merge) depends on
(dev-node/gulp-cli-2.3.0:0/0::node-overlay, ebuild scheduled for merge) (runtime)
(dev-node/yargs-16.2.0:0/0::node-overlay, ebuild scheduled for merge) (runtime)
(dev-node/get-caller-file-2.0.5:0/0::node-overlay, ebuild scheduled for merge) (runtime)
(dev-node/typescript-4.1.3:0/0::node-overlay, ebuild scheduled for merge) (buildtime)
(dev-node/gulp-4.0.2:0/0::node-overlay, ebuild scheduled for merge) (buildtime)
node.eclass cant handle an ebuild without .tgz files in DISTDIR and will fail.
Relevant error:
npm ERR! code ENOENT
npm ERR! syscall stat
npm ERR! path /var/tmp/portage/dev-node/app-builder-bin-3.4.2_p20201214/distdir/*.tgz
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, stat '/var/tmp/portage/dev-node/app-builder-bin-3.4.2_p20201214/distdir/*.tgz'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Line 149-152 from node.eclass in function node_src_compile:
for file in "${DISTDIR}"/*.tgz; do
"${NPM}" cache add "${file}" || die
addfile "${file}" || die
done
This can be worked around with first checking if the files exists.
# Check that files exists before
if ls "${DISTDIR}"/*.tgz &> /dev/null; then
for file in "${DISTDIR}"/*.tgz; do
"${NPM}" cache add "${file}" || die
addfile "${file}" || die
done
fi
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.