mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
start npm! data-files package
This commit is contained in:
24
README.adoc
24
README.adoc
@@ -14411,7 +14411,9 @@ Examples:
|
||||
|
||||
==== Node.js
|
||||
|
||||
Build and install the interpreter with:
|
||||
Host installation shown at: https://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm/971612#971612
|
||||
|
||||
Build and install the interpreter in Buildroot with:
|
||||
|
||||
....
|
||||
./build-buildroot --config 'BR2_PACKAGE_NODEJS=y'
|
||||
@@ -14436,6 +14438,26 @@ Examples:
|
||||
** link:rootfs_overlay/lkmc/nodejs/file_write_read.js[]
|
||||
** link:rootfs_overlay/lkmc/nodejs/read_stdin_to_string.js[] Question: https://stackoverflow.com/questions/30441025/read-all-text-from-stdin-to-a-string
|
||||
|
||||
===== NPM
|
||||
|
||||
https://en.wikipedia.org/wiki/Npm_(software)
|
||||
|
||||
Some sample packages can be found under: link:npm[].
|
||||
|
||||
Local testing of those packages can be done as shown at: https://stackoverflow.com/questions/59389027/how-to-interactively-test-the-executable-of-an-npm-node-js-package-during-develo
|
||||
|
||||
The packages will also be published to the NPM registry, so you can also play with them as:
|
||||
|
||||
....
|
||||
npm install cirosantilli-<directory-name>
|
||||
....
|
||||
|
||||
====== NPM data-files
|
||||
|
||||
Illustrates how to add extra non-code data files to an NPM package, and then use those files at runtime:
|
||||
|
||||
https://stackoverflow.com/questions/10111163/in-node-js-how-can-i-get-the-path-of-a-module-i-have-loaded-via-require-that-is
|
||||
|
||||
==== Java
|
||||
|
||||
No OpenJDK package as of 2018.08: https://stackoverflow.com/questions/28874150/buildroot-with-jamvm-2-0-for-java-8/59290927#59290927 partly because their build system is shit like the rest of the project's setup.
|
||||
|
||||
Reference in New Issue
Block a user